textbox: add .height
[awesome.git] / strut.h
blob8b5a9fed56f1a152f551090c11c35d5b94106087
1 /*
2 * strut.h - strut management header
4 * Copyright © 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_STRUTS_H
23 #define AWESOME_STRUTS_H
25 #include <lua.h>
26 #include <stdint.h>
28 /* Strut */
29 typedef struct
31 uint16_t left, right, top, bottom;
32 uint16_t left_start_y, left_end_y;
33 uint16_t right_start_y, right_end_y;
34 uint16_t top_start_x, top_end_x;
35 uint16_t bottom_start_x, bottom_end_x;
36 } strut_t;
38 int luaA_pushstrut(lua_State *, strut_t);
39 void luaA_tostrut(lua_State *, int, strut_t *);
41 #endif
42 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80