xutil: allow gettextprop() to be called without text
[awesome.git] / widget.h
blob8c9a0a22538d95f7e75a935eabfb8369f9e77cd3
1 /*
2 * widget.h - widget managing header
4 * Copyright © 2007-2008 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_WIDGET_H
23 #define AWESOME_WIDGET_H
25 #include "structs.h"
27 #define WIDGET_CACHE_CLIENTS (1<<0)
28 #define WIDGET_CACHE_TAGS (1<<2)
29 #define WIDGET_CACHE_EMBEDDED (1<<3)
31 void widget_invalidate_cache(int, int);
32 int widget_calculate_offset(int, int, int, int);
33 void widget_common_new(widget_t *);
34 void widget_render(widget_node_t *, draw_context_t *, xcb_gcontext_t, xcb_drawable_t, int, position_t, int, int, void *, awesome_type_t);
36 int luaA_widget_userdata_new(lua_State *, widget_t *);
38 void widget_invalidate_bywidget(widget_t *);
40 widget_constructor_t taglist_new;
41 widget_constructor_t textbox_new;
42 widget_constructor_t progressbar_new;
43 widget_constructor_t graph_new;
44 widget_constructor_t tasklist_new;
45 widget_constructor_t systray_new;
46 widget_constructor_t appicon_new;
48 #endif
50 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80