]> Dogcows Code - chaz/openbox/blobdiff - cwmcc/root_props.h
add shit that i made in the last week!
[chaz/openbox] / cwmcc / root_props.h
index 0bc5fef711961fe0dbb3b290ba721284042cf30b..7690287b02cfc50ef8af000e564b9149fc439034 100644 (file)
@@ -1,6 +1,57 @@
-#ifndef __cwmcc_root_props_h
-#define __cwmcc_root_props_h
+/*#ifndef __cwmcc_root_props_h
+  #define __cwmcc_root_props_h*/
 
-void cwmcc_root_get_supported(Window win, Atom **atoms);
+#include <X11/Xlib.h>
+#include <glib.h>
 
-#endif
+void cwmcc_root_get_supported(Window win, Atom **atoms, gulong *num);
+
+void cwmcc_root_get_client_list(Window win, Window **windows, gulong *num);
+
+void cwmcc_root_get_client_list_stacking(Window win, Window **windows,
+                                         gulong *num);
+
+void cwmcc_root_get_number_of_desktops(Window win, gulong *desktops);
+
+void cwmcc_root_get_desktop_geometry(Window win, gulong *w, gulong *h);
+
+void cwmcc_root_get_desktop_viewport(Window win, gulong *x, gulong *y);
+
+void cwmcc_root_get_current_desktop(Window win, gulong *desktop);
+
+void cwmcc_root_get_desktop_names(Window win, char ***names);
+
+void cwmcc_root_get_active_window(Window win, Window *window);
+
+void cwmcc_root_get_workarea(Window win, int **x, int **y, int **w, int **h);
+
+void cwmcc_root_get_supporting_wm_check(Window win, Window *window);
+
+/*! Orientation of the desktops */
+enum Cwmcc_Orientation {
+    Cwmcc_Orientation_Horz = 0,
+    Cwmcc_Orientation_Vert = 1
+};
+
+enum Cwmcc_Corner {
+    Cwmcc_Corner_TopLeft = 0,
+    Cwmcc_Corner_TopRight = 1,
+    Cwmcc_Corner_BottomRight = 2,
+    Cwmcc_Corner_BottomLeft = 3
+};
+
+struct Cwmcc_DesktopLayout {
+    enum Cwmcc_Orientation orientation;
+    enum Cwmcc_Corner start_corner;
+    guint rows;
+    guint columns;
+};
+
+void cwmcc_root_get_desktop_layout(Window win,
+                                   struct Cwmcc_DesktopLayout *layout);
+
+void cwmcc_root_get_showing_desktop(Window win, gboolean *showing);
+
+void cwmcc_root_get_openbox_pid(Window win, gulong *pid);
+
+/*#endif*/
This page took 0.02055 seconds and 4 git commands to generate.