build: set minimal cmake version to 2.4.7
[awesome.git] / widget.h
blob27108a40eb7046f7692901643411343364dcc2ed
1 /*
2 * widget.h - widget managing header
4 * Copyright © 2007-2008 Julien Danjou <julien@danjou.info>
5 * Copyright © 2007 Aldo Cortesi <aldo@nullcube.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef AWESOME_WIDGET_H
24 #define AWESOME_WIDGET_H
26 #include "structs.h"
28 #define WIDGET_CACHE_CLIENTS (1<<0)
29 #define WIDGET_CACHE_LAYOUTS (1<<1)
30 #define WIDGET_CACHE_TAGS (1<<2)
31 #define WIDGET_CACHE_EMBEDDED (1<<3)
33 void widget_invalidate_cache(int, int);
34 int widget_calculate_offset(int, int, int, int);
35 void widget_common_new(widget_t *);
36 widget_t * widget_getbyname(const char *);
37 void widget_tell_managestatus(widget_t *, widget_tell_status_t, const char *);
38 void widget_render(widget_node_t *, draw_context_t *, xcb_gcontext_t, xcb_drawable_t, int, position_t, int, int, void *);
40 int luaA_widget_userdata_new(lua_State *, widget_t *);
42 widget_constructor_t taglist_new;
43 widget_constructor_t textbox_new;
44 widget_constructor_t iconbox_new;
45 widget_constructor_t progressbar_new;
46 widget_constructor_t graph_new;
47 widget_constructor_t tasklist_new;
48 widget_constructor_t systray_new;
50 #endif
52 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80