b6ae032b7e743b8db20a4b8eb2a4d80af1beb0f7
[hildon] / src / hildon-stackable-window.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2008 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Karl Lattimer <karl.lattimer@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_STACKABLE_WINDOW_H__
26 #define                                         __HILDON_STACKABLE_WINDOW_H__
27
28 #include                                        "hildon-window.h"
29
30 G_BEGIN_DECLS
31
32 #define                                         HILDON_TYPE_STACKABLE_WINDOW \
33                                                 (hildon_stackable_window_get_type())
34
35 #define                                         HILDON_STACKABLE_WINDOW(obj) \
36                                                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
37                                                 HILDON_TYPE_STACKABLE_WINDOW, \
38                                                 HildonStackableWindow))
39
40 #define                                         HILDON_STACKABLE_WINDOW_CLASS(klass) \
41                                                 (G_TYPE_CHECK_CLASS_CAST ((klass), \
42                                                 HILDON_TYPE_STACKABLE_WINDOW, \
43                                                 HildonStackableWindowClass))
44
45 #define                                         HILDON_IS_STACKABLE_WINDOW(obj) \
46                                                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
47                                                 HILDON_TYPE_STACKABLE_WINDOW))
48
49 #define                                         HILDON_IS_STACKABLE_WINDOW_CLASS(klass) \
50                                                 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
51                                                 HILDON_TYPE_STACKABLE_WINDOW))
52
53 #define                                         HILDON_STACKABLE_WINDOW_GET_CLASS(obj) \
54                                                 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
55                                                 HILDON_TYPE_STACKABLE_WINDOW, \
56                                                 HildonStackableWindowClass))
57
58 typedef struct                                  _HildonStackableWindow HildonStackableWindow;
59 typedef struct                                  _HildonStackableWindowClass HildonStackableWindowClass;
60
61 struct                                          _HildonStackableWindowClass
62 {
63     HildonWindowClass parent_class;
64
65     /* Padding for future extension */
66     void (*_hildon_reserved1)(void);
67     void (*_hildon_reserved2)(void);
68     void (*_hildon_reserved3)(void);
69     void (*_hildon_reserved4)(void);
70 };
71
72 struct                                          _HildonStackableWindow
73 {
74     HildonWindow parent;
75 };
76
77 GType
78 hildon_stackable_window_get_type                (void) G_GNUC_CONST;
79
80 GtkWidget*
81 hildon_stackable_window_new                     (void);
82
83 void
84 hildon_stackable_window_go_to_root_window       (HildonStackableWindow* self);
85
86 G_END_DECLS
87
88 #endif                                 /* __HILDON_STACKABLE_WINDOW_H__ */