]>
Dogcows Code - chaz/openbox/blob - openbox/window.h
10 Window_DockApp
, /* used for events but not stacking */
12 Window_Internal
/* used for stacking but not events */
13 } Window_InternalType
;
15 typedef struct ObWindow
{
16 Window_InternalType type
;
19 /* Wrapper for internal stuff. If its struct matches this then it can be used
21 typedef struct InternalWindow
{
26 #define WINDOW_IS_MENU(win) (((ObWindow*)win)->type == Window_Menu)
27 #define WINDOW_IS_DOCK(win) (((ObWindow*)win)->type == Window_Dock)
28 #define WINDOW_IS_DOCKAPP(win) (((ObWindow*)win)->type == Window_DockApp)
29 #define WINDOW_IS_CLIENT(win) (((ObWindow*)win)->type == Window_Client)
30 #define WINDOW_IS_INTERNAL(win) (((ObWindow*)win)->type == Window_Internal)
37 #define WINDOW_AS_MENU(win) ((struct Menu*)win)
38 #define WINDOW_AS_DOCK(win) ((struct Dock*)win)
39 #define WINDOW_AS_DOCKAPP(win) ((struct DockApp*)win)
40 #define WINDOW_AS_CLIENT(win) ((struct Client*)win)
41 #define WINDOW_AS_INTERNAL(win) ((struct InternalWindow*)win)
43 #define MENU_AS_WINDOW(menu) ((ObWindow*)menu)
44 #define DOCK_AS_WINDOW(dock) ((ObWindow*)dock)
45 #define DOCKAPP_AS_WINDOW(dockapp) ((ObWindow*)dockapp)
46 #define CLIENT_AS_WINDOW(client) ((ObWindow*)client)
47 #define INTERNAL_AS_WINDOW(intern) ((ObWindow*)intern)
49 extern GHashTable
*window_map
;
51 void window_startup();
52 void window_shutdown();
54 Window
window_top(ObWindow
*self
);
55 Window
window_layer(ObWindow
*self
);
This page took 0.033594 seconds and 4 git commands to generate.