2 * client.h - client management 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_CLIENT_H
23 #define AWESOME_CLIENT_H
25 #include <xcb/xcb_icccm.h>
29 bool client_isvisible(client_t
*, int);
30 client_t
* client_getbywin(xcb_window_t
);
31 bool client_focus(client_t
*, int);
32 void client_raise(client_t
*);
33 void client_ban(client_t
*);
34 void client_unban(client_t
*);
35 void client_manage(xcb_window_t
, xcb_get_geometry_reply_t
*, int);
36 area_t
client_geometry_hints(client_t
*, area_t
);
37 bool client_resize(client_t
*, area_t
, bool);
38 void client_unmanage(client_t
*);
39 void client_updatewmhints(client_t
*);
40 xcb_size_hints_t
*client_updatesizehints(client_t
*);
41 void client_updatetitle(client_t
*);
42 void client_saveprops(client_t
*);
43 void client_kill(client_t
*);
44 void client_setfloating(client_t
*, bool, layer_t
);
45 char * client_markup_parse(client_t
*, const char *, ssize_t
);
46 void client_setborder(client_t
*, int);
48 int luaA_client_userdata_new(lua_State
*, client_t
*);
50 DO_SLIST(client_t
, client
, p_delete
)
53 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80