X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fdock.h;h=cb4fd6cada01524b9f368b9e1d4951004aff8b4b;hb=HEAD;hp=fbd5e1693d404fd5a8859d36aab3ce2260730966;hpb=de4f92ccc66c1dad1a2820a07d1f0161bd61a855;p=chaz%2Fopenbox diff --git a/openbox/dock.h b/openbox/dock.h index fbd5e169..cb4fd6ca 100644 --- a/openbox/dock.h +++ b/openbox/dock.h @@ -1,10 +1,28 @@ +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- + + dock.h for the Openbox window manager + Copyright (c) 2003-2007 Dana Jansens + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + See the COPYING file for a copy of the GNU General Public License. +*/ + #ifndef __dock_h #define __dock_h #include "window.h" #include "stacking.h" #include "geom.h" -#include "render/render.h" +#include "obrender/render.h" #include #include @@ -21,23 +39,19 @@ struct _ObDock RrAppearance *a_frame; /* actual position (when not auto-hidden) */ - gint x; - gint y; - gint w; - gint h; + Rect area; gboolean hidden; GList *dock_apps; + GHashTable *dock_map; }; struct _ObDockApp { - ObWindow obwin; - gint ignore_unmaps; Window icon_win; - Window win; + Window name_win; gchar *name; gchar *class; @@ -50,18 +64,25 @@ struct _ObDockApp { extern StrutPartial dock_strut; -void dock_startup(); -void dock_shutdown(); +void dock_startup(gboolean reconfig); +void dock_shutdown(gboolean reconfig); -void dock_configure(); +void dock_configure(void); void dock_hide(gboolean hide); -void dock_add(Window win, XWMHints *wmhints); +void dock_manage(Window icon_win, Window name_win); -void dock_remove_all(); -void dock_remove(ObDockApp *app, gboolean reparent); +void dock_unmanage_all(void); +void dock_unmanage(ObDockApp *app, gboolean reparent); void dock_app_drag(ObDockApp *app, XMotionEvent *e); void dock_app_configure(ObDockApp *app, gint w, gint h); +void dock_get_area(Rect *a); + +void dock_raise_dock(void); +void dock_lower_dock(void); + +ObDockApp* dock_find_dockapp(Window xwin); + #endif