systray: Use the screen's default depth and visual
[awesome.git] / objects / wibox.h
blob8a79b508380deeb4faeeb067af28a5aaee9eadfb
1 /*
2 * wibox.h - wibox functions header
4 * Copyright © 2007-2009 Julien Danjou <julien@danjou.info>
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 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef AWESOME_OBJECTS_WIBOX_H
23 #define AWESOME_OBJECTS_WIBOX_H
25 #include "objects/widget.h"
26 #include "objects/window.h"
27 #include "common/luaobject.h"
29 /** Wibox type */
30 struct wibox_t
32 WINDOW_OBJECT_HEADER
33 /** Ontop */
34 bool ontop;
35 /** Visible */
36 bool visible;
37 /** Widget list */
38 widget_node_array_t widgets;
39 void *widgets_table;
40 /** Widget the mouse is over */
41 widget_t *mouse_over;
42 /** Need update */
43 bool need_update;
44 /** Cursor */
45 char *cursor;
46 /** Background image */
47 cairo_surface_t *bg_image;
48 /** The pixmap copied to the window object. */
49 xcb_pixmap_t pixmap;
50 /** The window geometry. */
51 area_t geometry;
52 /** Draw context */
53 draw_context_t ctx;
54 /** Orientation */
55 orientation_t orientation;
56 /** Has wibox an attached systray **/
57 bool has_systray;
60 void wibox_unref_simplified(wibox_t **);
62 ARRAY_FUNCS(wibox_t *, wibox, wibox_unref_simplified)
63 void wibox_widget_node_array_wipe(lua_State *, int);
65 void wibox_refresh(void);
67 void luaA_wibox_invalidate_byitem(lua_State *, const void *);
69 wibox_t * wibox_getbywin(xcb_window_t);
71 void wibox_refresh_pixmap_partial(wibox_t *, int16_t, int16_t, uint16_t, uint16_t);
73 void wibox_class_setup(lua_State *);
75 lua_class_t wibox_class;
77 void wibox_clear_mouse_over(wibox_t *);
79 #endif
80 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80