7 typedef struct _ObWindow ObWindow
;
8 typedef struct _ObInternalWindow ObInternalWindow
;
13 Window_DockApp
, /* used for events but not stacking */
15 Window_Internal
/* used for stacking but not events */
16 } Window_InternalType
;
20 Window_InternalType type
;
23 /* Wrapper for internal stuff. If its struct matches this then it can be used
25 typedef struct InternalWindow
{
30 #define WINDOW_IS_MENU(win) (((ObWindow*)win)->type == Window_Menu)
31 #define WINDOW_IS_DOCK(win) (((ObWindow*)win)->type == Window_Dock)
32 #define WINDOW_IS_DOCKAPP(win) (((ObWindow*)win)->type == Window_DockApp)
33 #define WINDOW_IS_CLIENT(win) (((ObWindow*)win)->type == Window_Client)
34 #define WINDOW_IS_INTERNAL(win) (((ObWindow*)win)->type == Window_Internal)
41 #define WINDOW_AS_MENU(win) ((struct _ObMenu*)win)
42 #define WINDOW_AS_DOCK(win) ((struct _ObDock*)win)
43 #define WINDOW_AS_DOCKAPP(win) ((struct _ObDockApp*)win)
44 #define WINDOW_AS_CLIENT(win) ((struct _ObClient*)win)
45 #define WINDOW_AS_INTERNAL(win) ((struct InternalWindow*)win)
47 #define MENU_AS_WINDOW(menu) ((ObWindow*)menu)
48 #define DOCK_AS_WINDOW(dock) ((ObWindow*)dock)
49 #define DOCKAPP_AS_WINDOW(dockapp) ((ObWindow*)dockapp)
50 #define CLIENT_AS_WINDOW(client) ((ObWindow*)client)
51 #define INTERNAL_AS_WINDOW(intern) ((ObWindow*)intern)
53 extern GHashTable
*window_map
;
55 void window_startup();
56 void window_shutdown();
58 Window
window_top(ObWindow
*self
);
59 Window
window_layer(ObWindow
*self
);