]> Dogcows Code - chaz/openbox/blob - cwmcc/client_props.h
3f0153f784a8d169e714b84c4ec632b65c1ddfca
[chaz/openbox] / cwmcc / client_props.h
1 #ifndef __cwmcc_client_get_props_h
2 #define __cwmcc_client_get_props_h
3
4 void cwmcc_client_get_protocols(Window win, Atom **protocols);
5
6 void cwmcc_client_get_wm_state(Window win, gulong *state);
7 void cwmcc_client_set_wm_state(Window win, gulong state);
8
9 void cwmcc_client_get_name(Window win, char **name);
10
11 void cwmcc_client_get_icon_name(Window win, char **name);
12
13 void cwmcc_client_get_class(Window win, char **class, char **name);
14
15 /*! Possible flags for MWM Hints (defined by Motif 2.0) */
16 enum Cwmcc_MwmFlags {
17 Cwmcc_MwmFlag_Functions = 1 << 0, /*!< The Hints define functions */
18 Cwmcc_MwmFlag_Decorations = 1 << 1 /*!< The Hints define decorations */
19 };
20
21 /*! Possible functions for MWM Hints (defined by Motif 2.0) */
22 enum Cwmcc_MwmFunctions {
23 Cwmcc_MwmFunc_All = 1 << 0, /*!< All functions */
24 Cwmcc_MwmFunc_Resize = 1 << 1, /*!< Allow resizing */
25 Cwmcc_MwmFunc_Move = 1 << 2, /*!< Allow moving */
26 Cwmcc_MwmFunc_Iconify = 1 << 3, /*!< Allow to be iconfied */
27 Cwmcc_MwmFunc_Maximize = 1 << 4 /*!< Allow to be maximized */
28 /*MwmFunc_Close = 1 << 5 /!< Allow to be closed */
29 };
30
31 /*! Possible decorations for MWM Hints (defined by Motif 2.0) */
32 enum Cwmcc_MwmDecorations {
33 Cwmcc_MwmDecor_All = 1 << 0, /*!< All decorations */
34 Cwmcc_MwmDecor_Border = 1 << 1, /*!< Show a border */
35 Cwmcc_MwmDecor_Handle = 1 << 2, /*!< Show a handle (bottom) */
36 Cwmcc_MwmDecor_Title = 1 << 3, /*!< Show a titlebar */
37 Cwmcc_MwmDecor_Menu = 1 << 4, /*!< Show a menu */
38 Cwmcc_MwmDecor_Iconify = 1 << 5, /*!< Show an iconify button */
39 Cwmcc_MwmDecor_Maximize = 1 << 6 /*!< Show a maximize button */
40 };
41
42 /*! The MWM Hints as retrieved from the window property
43 This structure only contains 3 elements, even though the Motif 2.0
44 structure contains 5. We only use the first 3, so that is all gets
45 defined.
46 */
47 struct Cwmcc_MwmHints {
48 /*! A bitmask of Cwmcc_MwmFlags values */
49 gulong flags;
50 /*! A bitmask of Cwmcc_MwmFunctions values */
51 gulong functions;
52 /*! A bitmask of Cwmcc_MwmDecorations values */
53 gulong decorations;
54 };
55
56 void cwmcc_client_get_mwmhints(Window win, struct Cwmcc_MwmHints *hints);
57
58 void cwmcc_client_get_desktop(Window win, gulong *desk);
59 void cwmcc_client_set_desktop(Window win, gulong desk);
60
61 void cwmcc_client_get_type(Window win, gulong **types);
62 void cwmcc_client_set_type(Window win, gulong *types);
63
64 void cwmcc_client_get_state(Window win, gulong **states);
65 void cwmcc_client_set_state(Window win, gulong *states);
66
67 void cwmcc_client_get_strut(Window win, int *l, int *t, int *r, int *b);
68
69 /*! Holds an icon in ARGB format */
70 struct Cwmcc_Icon {
71 gulong width, height;
72 gulong *data;
73 };
74
75 /* Returns an array of Cwms_Icons. The array is terminated by a Cwmcc_Icon with
76 its data member set to NULL */
77 void cwmcc_client_get_icon(Window win, struct Cwmcc_Icon **icons);
78
79 void cwmcc_client_get_premax(Window win, int *x, int *y, int *w, int *h);
80 void cwmcc_client_set_premax(Window win, int x, int y, int w, int h);
81
82 #endif
This page took 0.038354 seconds and 4 git commands to generate.