]> git.decadent.org.uk Git - ion3.git/blob - mod_panews/panews.h
140252365505e75f1ab2d8f18e89acf1a2fa851d
[ion3.git] / mod_panews / panews.h
1 /*
2  * ion/panews/panews.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2006. 
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_PANEWS_PANEWS_H
13 #define ION_PANEWS_PANEWS_H
14
15 #include <ioncore/common.h>
16 #include <ioncore/region.h>
17 #include <ioncore/screen.h>
18 #include <libextl/extl.h>
19 #include <ioncore/rectangle.h>
20
21 #include <mod_tiling/tiling.h>
22
23
24 INTRCLASS(WPaneWS);
25 DECLCLASS(WPaneWS){
26     WTiling tiling;
27 };
28
29
30 extern void panews_deinit(WPaneWS *ws);
31 extern bool panews_init(WPaneWS *ws, WWindow *parent, const WFitParams *fp,
32                         bool cu);
33 extern WPaneWS *create_panews(WWindow *parent, const WFitParams *fp, bool cu);
34 extern WPaneWS *create_panews_simple(WWindow *parent, const WFitParams *fp);
35 extern WRegion *panews_load(WWindow *par, const WFitParams *fp, ExtlTab tab);
36
37 /* Dynfun implementations */
38
39 extern bool panews_managed_may_destroy(WPaneWS *ws, WRegion *reg);
40 extern void panews_managed_remove(WPaneWS *ws, WRegion *reg);
41 extern bool panews_managed_add(WPaneWS *ws, WRegion *reg);
42 extern WRegion *panews_managed_control_focus(WPaneWS *ws, WRegion *reg);
43
44 extern ExtlTab panews_get_configuration(WPaneWS *ws);
45 extern WRegion *panews_load(WWindow *par, const WFitParams *fp, ExtlTab tab);
46
47 #endif /* ION_PANEWS_PANEWS_H */