From b77e40e1c7710323aa59a778338d8e18b591f718 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 16 May 2003 18:10:10 +0000 Subject: rename "Slit" to "Dock". add config options to the rc3 for the dock. create a window_map, add DockApps to the ObWindow types, use the window_map for translating windows into objects for event handling (only one lookup now) and remove the old maps (client_map, menu_map). --- openbox/dock.h | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 openbox/dock.h (limited to 'openbox/dock.h') diff --git a/openbox/dock.h b/openbox/dock.h new file mode 100644 index 00000000..ef770769 --- /dev/null +++ b/openbox/dock.h @@ -0,0 +1,66 @@ +#ifndef __dock_h +#define __dock_h + +#include "timer.h" +#include "render/render.h" +#include "window.h" +#include "stacking.h" + +#include +#include +#include + +typedef enum { + DockPos_Floating, + DockPos_TopLeft, + DockPos_Top, + DockPos_TopRight, + DockPos_Right, + DockPos_BottomRight, + DockPos_Bottom, + DockPos_BottomLeft, + DockPos_Left +} DockPosition; + +typedef struct Dock { + ObWindow obwin; + + Window frame; + Appearance *a_frame; + + /* actual position (when not auto-hidden) */ + int x, y; + int w, h; + + gboolean hidden; + Timer *hide_timer; + + GList *dock_apps; +} Dock; + +typedef struct DockApp { + int ignore_unmaps; + + Window icon_win; + Window win; + int x; + int y; + int w; + int h; +} DockApp; + +void dock_startup(); +void dock_shutdown(); + +void dock_configure(); +void dock_hide(gboolean hide); + +void dock_add(Window win, XWMHints *wmhints); + +void dock_remove_all(); +void dock_remove(DockApp *app, gboolean reparent); + +void dock_app_drag(DockApp *app, XMotionEvent *e); +void dock_app_configure(DockApp *app, int w, int h); + +#endif -- cgit v1.2.3