1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
3 window.h for the Openbox compositor
4 Copyright (c) 2008 Dana Jansens
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 See the COPYING file for a copy of the GNU General Public License.
19 #ifndef loco__window_h
20 #define loco__window_h
22 #include "obt/display.h"
29 a /* XXX fill this in */
32 typedef struct _LocoWindow {
36 gint type; /* XXX make this an enum */
38 struct _LocoScreen *screen;
47 gboolean stale; /* glpixmap is out of date */
55 LocoWindow* loco_window_new(Window xwin, struct _LocoScreen *screen);
56 void loco_window_ref(LocoWindow *lw);
57 void loco_window_unref(LocoWindow *lw);
59 void loco_window_show(LocoWindow *lw);
60 void loco_window_hide(LocoWindow *lw, gboolean gone);
62 void loco_window_configure(LocoWindow *lw, const XConfigureEvent *e);
63 void loco_window_damage(LocoWindow *lw);
65 void loco_window_update_pixmap(LocoWindow *lw);