fc5493df914fd530a8af9c1e03f7130debc196f0
[hildon] / src / hildon-window-private.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2006 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Rodrigo Novo <rodrigo.novo@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24
25 #ifndef                                         __HILDON_WINDOW_PRIVATE_H__
26 #define                                         __HILDON_WINDOW_PRIVATE_H__
27
28 #include                                        "hildon-program.h"
29
30 #include                                        <X11/Xlib.h>
31
32 G_BEGIN_DECLS
33
34 typedef struct                                  _HildonWindowPrivate HildonWindowPrivate;
35
36 struct                                          _HildonWindowPrivate
37 {
38     GtkMenu *menu;
39     HildonAppMenu *app_menu;
40     GtkWidget *vbox;
41     GtkWidget *edit_toolbar;
42
43     GtkBorder *borders;
44     GtkBorder *toolbar_borders;
45
46     GtkAllocation allocation;
47
48     guint fullscreen;
49     guint is_topmost;
50     guint escape_timeout;
51     gint visible_toolbars;
52     gint previous_vbox_y;
53
54     HildonProgram *program;
55 };
56
57 #define                                         HILDON_WINDOW_GET_PRIVATE(obj) \
58                                                 (G_TYPE_INSTANCE_GET_PRIVATE ((obj),\
59                                                 HILDON_TYPE_WINDOW, HildonWindowPrivate))
60
61 void G_GNUC_INTERNAL
62 hildon_window_set_program                       (HildonWindow *self, 
63                                                  GObject *program);
64
65 void G_GNUC_INTERNAL
66 hildon_window_unset_program                     (HildonWindow *self);
67
68 void G_GNUC_INTERNAL
69 hildon_window_set_can_hibernate_property        (HildonWindow *self, 
70                                                  gpointer can_hibernate);
71
72 void G_GNUC_INTERNAL
73 hildon_window_take_common_toolbar               (HildonWindow *self);
74
75 void G_GNUC_INTERNAL
76 hildon_window_update_topmost                    (HildonWindow *self, 
77                                                  Window window_id);
78
79 Window G_GNUC_INTERNAL
80 hildon_window_get_active_window                 (void);
81
82 void G_GNUC_INTERNAL
83 hildon_window_update_title                      (HildonWindow *window);
84
85 G_END_DECLS
86
87 #endif                                          /* __HILDON_WINDOW_PRIVATE_H__ */