63ee139ee9742f5da6dab44dab32a704797c6ec6
[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     GtkWidget *menu;
39     GtkWidget *vbox;
40
41     GtkBorder *borders;
42     GtkBorder *toolbar_borders;
43
44     GtkAllocation allocation;
45
46     guint fullscreen;
47     guint is_topmost;
48     guint escape_timeout;
49     gint visible_toolbars;
50     gint previous_vbox_y;
51
52     HildonProgram *program;
53 };
54
55 #define                                         HILDON_WINDOW_GET_PRIVATE(obj) \
56                                                 (G_TYPE_INSTANCE_GET_PRIVATE ((obj),\
57                                                 HILDON_TYPE_WINDOW, HildonWindowPrivate))
58
59 void G_GNUC_INTERNAL
60 hildon_window_set_program                       (HildonWindow *self, 
61                                                  GObject *program);
62
63 void G_GNUC_INTERNAL
64 hildon_window_unset_program                     (HildonWindow *self);
65
66 void G_GNUC_INTERNAL
67 hildon_window_set_can_hibernate_property        (HildonWindow *self, 
68                                                  gpointer can_hibernate);
69
70 void G_GNUC_INTERNAL
71 hildon_window_take_common_toolbar               (HildonWindow *self);
72
73 void G_GNUC_INTERNAL
74 hildon_window_update_topmost                    (HildonWindow *self, 
75                                                  Window window_id);
76
77 Window G_GNUC_INTERNAL
78 hildon_window_get_active_window                 (void);
79
80 void G_GNUC_INTERNAL
81 hildon_window_update_title                      (HildonWindow *window);
82
83 G_END_DECLS
84
85 #endif                                          /* __HILDON_WINDOW_PRIVATE_H__ */