summaryrefslogtreecommitdiff
path: root/c/obexport.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-16 21:11:39 +0000
committerDana Jansens <danakj@orodu.net>2003-03-16 21:11:39 +0000
commitf8a47de5ec444c452093371e3db16857eb39a490 (patch)
tree31db2567842d98232775f9980f7a8d2586c0ac71 /c/obexport.h
parent8ba0586bcbdc7fe9648f1063812126d71a041670 (diff)
merge the C branch into HEAD
Diffstat (limited to 'c/obexport.h')
-rw-r--r--c/obexport.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/c/obexport.h b/c/obexport.h
new file mode 100644
index 00000000..17f68f4a
--- /dev/null
+++ b/c/obexport.h
@@ -0,0 +1,74 @@
+#ifndef __obexport_h
+#define __obexport_h
+
+#include <X11/Xlib.h>
+
+/* Define values which will be exported in the 'ob' module. */
+
+typedef enum {
+ /*! Occurs when the mouse enters a window */
+ Logical_EnterWindow,
+ /*! Occurs when the mouse enters a window */
+ Logical_LeaveWindow,
+ /*! Occurs when a window is finished being managed, just before it is
+ (possibly) displayed.
+ The python scripts are reponsible for showing the window when this is
+ called if they want it to be shown.
+ */
+ Logical_NewWindow,
+ /*! Occurs when a window is being unmanaged */
+ Logical_CloseWindow,
+ /*! Occurs when the window manager starts up */
+ Logical_Startup,
+ /*! Occurs when the window manager is shutting down */
+ Logical_Shutdown,
+ /*! Occurs when a client is requesting/requested to be activated (i.e.
+ focused, raised, unshaded) */
+ Logical_RequestActivate,
+ /*! Occurs when the input focus target changes
+ The data.client will be NULL of no client is focused. */
+ Logical_Focus,
+ /*! Occurs when the system is fired through X.
+ The data.client will hold the client associated with the bell if
+ one has been specified, or NULL. */
+ Logical_Bell,
+ /*! Occurs when a client toggles its urgent status.
+ The client.urgent member can be used to get the status. */
+ Logical_UrgentWindow,
+ /*! Occurs when a client becomes visible */
+ Logical_WindowShow,
+ /*! Occurs when a client becomes non-visible */
+ Logical_WindowHide,
+ /*! Occurs when a pointer button is pressed on a client or its
+ decorations.
+ Note: to get the event for the client's window or for the entire
+ window+decorations, you need to do an mgrab for the window. */
+ Pointer_Press,
+ /*! Occurs when a pointer button is released on a client or its
+ decorations.
+ Note: to get the event for the client's window or for the entire
+ window+decorations, you need to do an mgrab for the window. */
+ Pointer_Release,
+ /*! Occurs when a pointer button is held and the pointer is dragged on a
+ client or its decorations.
+ Note: to get the event for the client's window or for the entire
+ window+decorations, you need to do an mgrab for the window, or an
+ mgrab_pointer (in which case it may not be a drag). */
+ Pointer_Motion,
+ /*! Occurs when a key is pressed.
+ Note: in order to recieve a key event, a kgrab must be done for the
+ key combination, or a kgrab_keyboard.
+ */
+ Key_Press,
+ /*! Occurs when a key is released.
+ Note: in order to recieve a key event, a kgrab must be done for the
+ key combination, or a kgrab_keyboard.
+ */
+ Key_Release
+} EventType;
+
+/* create the 'ob' module */
+void obexport_startup();
+void obexport_shutdown();
+
+#endif