Place embedded windows with panel orientation, used on startup
[window-docker.git] / main.h
blobedd99e41aabd004971964ae6f1fff3c5015857d8
1 /*
2 * Window Docker
4 * Copyright (C) 2011 Nikita Zlobin <cook60020tmp@mail.ru>
6 **************************************************************************
7 * This file is part of Window Docker utility
8 **************************************************************************
10 * Window Docker is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
15 * Window Docker is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with Window Docker. If not, see <http://www.gnu.org/licenses/>
22 * or write to the Free Software Foundation, Inc.,
23 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef __MAIN_H__
27 #define __MAIN_H__
29 #include <gtk/gtk.h>
30 #include "panel.h"
31 #include <stdint.h>
32 #include <klist.h>
34 /* Types */
36 typedef
37 struct {
38 char * sideStr;
39 side_t side;
40 double pos;
41 int border;
43 gboolean autohiding;
44 double show_delay;
45 double hide_delay;
47 int x, y;
49 char ** last;
50 } args_t;
52 typedef
53 struct {
54 struct list_head sibling;
55 GdkNativeWindow id;
56 int x, y, w, h;
57 } win_info_t;
59 extern void sig_handler_init (void);
60 extern intmax_t str_toIntMax (char * str);
62 #endif /* __MAIN_H__ */