]> git.decadent.org.uk Git - ion3.git/blob - mod_tiling/splitfloat.h
8d51b595991f9910a5e2788f7c612e3f370f6dee
[ion3.git] / mod_tiling / splitfloat.h
1 /*
2  * ion/mod_tiling/splitfloat.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * Ion is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  */
11
12 #ifndef ION_MOD_TILING_SPLITFLOAT_H
13 #define ION_MOD_TILING_SPLITFLOAT_H
14
15 #include <ioncore/common.h>
16 #include <ioncore/gr.h>
17 #include "split.h"
18 #include "tiling.h"
19
20 INTRCLASS(WSplitFloat);
21
22 #include "panehandle.h"
23
24 DECLCLASS(WSplitFloat){
25     WSplitSplit ssplit;
26     WPaneHandle *tlpwin, *brpwin;
27 };
28
29
30 extern bool splitfloat_init(WSplitFloat *split, const WRectangle *geom,
31                             WTiling *ws, int dir);
32
33 extern WSplitFloat *create_splitfloat(const WRectangle *geom, 
34                                       WTiling *ws, int dir);
35
36 extern void splitfloat_deinit(WSplitFloat *split);
37
38 extern void splitfloat_update_handles(WSplitFloat *split, 
39                                       const WRectangle *tlg,
40                                       const WRectangle *brg);
41 extern void splitfloat_tl_pwin_to_cnt(WSplitFloat *split, WRectangle *g);
42 extern void splitfloat_br_pwin_to_cnt(WSplitFloat *split, WRectangle *g);
43 extern void splitfloat_tl_cnt_to_pwin(WSplitFloat *split, WRectangle *g);
44 extern void splitfloat_br_cnt_to_pwin(WSplitFloat *split, WRectangle *g);
45
46 extern void splitfloat_flip(WSplitFloat *split);
47
48 extern WSplit *load_splitfloat(WTiling *ws, const WRectangle *geom, 
49                                ExtlTab tab);
50
51 extern WSplitRegion *splittree_split_floating(WSplit *node, int dir, 
52                                               int primn, int nmins, 
53                                               WRegionSimpleCreateFn *fn, 
54                                               WTiling *ws);
55
56 #endif /* ION_MOD_TILING_SPLITFLOAT_H */