]> Dogcows Code - chaz/openbox/blob - cwmcc/root_props.h
pass the number of bytes, not characters to the xft draw functions
[chaz/openbox] / cwmcc / root_props.h
1 /*#ifndef __cwmcc_root_props_h
2 #define __cwmcc_root_props_h*/
3
4 #include <X11/Xlib.h>
5 #include <glib.h>
6
7 void cwmcc_root_get_supported(Window win, Atom **atoms, gulong *num);
8
9 void cwmcc_root_get_client_list(Window win, Window **windows, gulong *num);
10
11 void cwmcc_root_get_client_list_stacking(Window win, Window **windows,
12 gulong *num);
13
14 void cwmcc_root_get_number_of_desktops(Window win, gulong *desktops);
15
16 void cwmcc_root_get_desktop_geometry(Window win, gulong *w, gulong *h);
17
18 void cwmcc_root_get_desktop_viewport(Window win, gulong *x, gulong *y);
19
20 void cwmcc_root_get_current_desktop(Window win, gulong *desktop);
21
22 void cwmcc_root_get_desktop_names(Window win, char ***names);
23
24 void cwmcc_root_get_active_window(Window win, Window *window);
25
26 void cwmcc_root_get_workarea(Window win, int **x, int **y, int **w, int **h);
27
28 void cwmcc_root_get_supporting_wm_check(Window win, Window *window);
29
30 /*! Orientation of the desktops */
31 enum Cwmcc_Orientation {
32 Cwmcc_Orientation_Horz = 0,
33 Cwmcc_Orientation_Vert = 1
34 };
35
36 enum Cwmcc_Corner {
37 Cwmcc_Corner_TopLeft = 0,
38 Cwmcc_Corner_TopRight = 1,
39 Cwmcc_Corner_BottomRight = 2,
40 Cwmcc_Corner_BottomLeft = 3
41 };
42
43 struct Cwmcc_DesktopLayout {
44 enum Cwmcc_Orientation orientation;
45 enum Cwmcc_Corner start_corner;
46 guint rows;
47 guint columns;
48 };
49
50 void cwmcc_root_get_desktop_layout(Window win,
51 struct Cwmcc_DesktopLayout *layout);
52
53 void cwmcc_root_get_showing_desktop(Window win, gboolean *showing);
54
55 void cwmcc_root_get_openbox_pid(Window win, gulong *pid);
56
57 /*#endif*/
This page took 0.037899 seconds and 4 git commands to generate.