2 * ion/mod_tiling/splitfloat.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
9 #ifndef ION_MOD_TILING_SPLITFLOAT_H
10 #define ION_MOD_TILING_SPLITFLOAT_H
12 #include <ioncore/common.h>
13 #include <ioncore/gr.h>
17 INTRCLASS(WSplitFloat
);
19 #include "panehandle.h"
21 DECLCLASS(WSplitFloat
){
23 WPaneHandle
*tlpwin
, *brpwin
;
27 extern bool splitfloat_init(WSplitFloat
*split
, const WRectangle
*geom
,
28 WTiling
*ws
, int dir
);
30 extern WSplitFloat
*create_splitfloat(const WRectangle
*geom
,
31 WTiling
*ws
, int dir
);
33 extern void splitfloat_deinit(WSplitFloat
*split
);
35 extern void splitfloat_update_handles(WSplitFloat
*split
,
36 const WRectangle
*tlg
,
37 const WRectangle
*brg
);
38 extern void splitfloat_tl_pwin_to_cnt(WSplitFloat
*split
, WRectangle
*g
);
39 extern void splitfloat_br_pwin_to_cnt(WSplitFloat
*split
, WRectangle
*g
);
40 extern void splitfloat_tl_cnt_to_pwin(WSplitFloat
*split
, WRectangle
*g
);
41 extern void splitfloat_br_cnt_to_pwin(WSplitFloat
*split
, WRectangle
*g
);
43 extern void splitfloat_flip(WSplitFloat
*split
);
45 extern WSplit
*load_splitfloat(WTiling
*ws
, const WRectangle
*geom
,
48 extern WSplitRegion
*splittree_split_floating(WSplit
*node
, int dir
,
50 WRegionSimpleCreateFn
*fn
,
53 #endif /* ION_MOD_TILING_SPLITFLOAT_H */