2 * ion/panews/splitfloat.h
4 * Copyright (c) Tuomo Valkonen 1999-2006.
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.
12 #ifndef ION_PANEWS_SPLITFLOAT_H
13 #define ION_PANEWS_SPLITFLOAT_H
15 #include <ioncore/common.h>
16 #include <ioncore/gr.h>
20 INTRCLASS(WSplitFloat);
22 #include "panehandle.h"
24 DECLCLASS(WSplitFloat){
26 WPaneHandle *tlpwin, *brpwin;
30 extern bool splitfloat_init(WSplitFloat *split, const WRectangle *geom,
31 WTiling *ws, int dir);
33 extern WSplitFloat *create_splitfloat(const WRectangle *geom,
34 WTiling *ws, int dir);
36 extern void splitfloat_deinit(WSplitFloat *split);
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);
46 extern void splitfloat_flip(WSplitFloat *split);
48 extern WSplit *load_splitfloat(WTiling *ws, const WRectangle *geom,
51 extern WSplitRegion *splittree_split_floating(WSplit *node, int dir,
53 WRegionSimpleCreateFn *fn,
56 #endif /* ION_PANEWS_SPLITFLOAT_H */