cosmetic
[awesome.git] / layout.h
blob90cbd35c052c8094a6fa3cfa08b096fb9f243d59
1 /*
2 * layout.h - layout management header
3 *
4 * Copyright © 2007 Julien Danjou <julien@danjou.info>
5 *
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_LAYOUT_H
23 #define AWESOME_LAYOUT_H
25 #include "client.h"
27 /** Check if current layout is arranged with a layout */
28 #define IS_ARRANGE(layout) (layout == awesomeconf->current_layout->arrange)
30 #define AWESOMEPROPS_ATOM(disp) XInternAtom(disp, "_AWESOME_PROPERTIES", False)
32 void arrange(Display *, DC *, awesome_config *); /* arranges all windows depending on the layout in use */
33 void restack(Display *, DC *, awesome_config *); /* restores z layers of all clients */
34 void uicb_focusnext(Display *, DC *, awesome_config *, const char *); /* focuses next visible client */
35 void uicb_focusprev(Display *, DC *, awesome_config *, const char *); /* focuses prev visible client */
36 void uicb_setlayout(Display *, DC *, awesome_config *, const char *); /* sets layout, NULL means next layout */
37 void uicb_togglemax(Display *, DC *, awesome_config *, const char *); /* toggles maximization of floating client */
38 void uicb_toggleverticalmax(Display *, DC *, awesome_config *, const char *);
39 void uicb_togglehorizontalmax(Display *, DC *, awesome_config *, const char *);
40 void uicb_zoom(Display *, DC *, awesome_config *, const char *); /* set current window first in stack */
41 void loadawesomeprops(Display *, awesome_config *);
42 void saveawesomeprops(Display *, awesome_config *);
44 #endif