1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
/*
* This file is a part of hildon
*
* Copyright (C) 2008 Nokia Corporation, all rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef __HILDON_WINDOW_STACK_H__
#define __HILDON_WINDOW_STACK_H__
#include "hildon-stackable-window.h"
G_BEGIN_DECLS
#define HILDON_TYPE_WINDOW_STACK \
(hildon_window_stack_get_type())
#define HILDON_WINDOW_STACK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
HILDON_TYPE_WINDOW_STACK, \
HildonWindowStack))
#define HILDON_WINDOW_STACK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), \
HILDON_TYPE_WINDOW_STACK, \
HildonWindowStackClass))
#define HILDON_IS_WINDOW_STACK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
HILDON_TYPE_WINDOW_STACK))
#define HILDON_IS_WINDOW_STACK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
HILDON_TYPE_WINDOW_STACK))
#define HILDON_WINDOW_STACK_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
HILDON_TYPE_WINDOW_STACK, \
HildonWindowStackClass))
typedef struct _HildonWindowStackPrivate HildonWindowStackPrivate;
#ifndef _TYPEDEF_HILDON_WINDOW_STACK_
#define _TYPEDEF_HILDON_WINDOW_STACK_
typedef struct _HildonWindowStack HildonWindowStack;
#endif
typedef struct _HildonWindowStackClass HildonWindowStackClass;
struct _HildonWindowStack
{
GObject parent;
/* private */
HildonWindowStackPrivate *priv;
};
struct _HildonWindowStackClass
{
GObjectClass parent_class;
/* Padding for future extension */
void (*_hildon_reserved1)(void);
void (*_hildon_reserved2)(void);
void (*_hildon_reserved3)(void);
void (*_hildon_reserved4)(void);
};
GType
hildon_window_stack_get_type (void) G_GNUC_CONST;
HildonWindowStack *
hildon_window_stack_get_default (void);
HildonWindowStack *
hildon_window_stack_new (void);
gint
hildon_window_stack_size (HildonWindowStack *stack);
GList *
hildon_window_stack_get_windows (HildonWindowStack *stack);
GtkWidget *
hildon_window_stack_peek (HildonWindowStack *stack);
void
hildon_window_stack_push (HildonWindowStack *stack,
HildonStackableWindow *win1,
...);
void
hildon_window_stack_push_list (HildonWindowStack *stack,
GList *list);
void
hildon_window_stack_push_1 (HildonWindowStack *stack,
HildonStackableWindow *win);
void
hildon_window_stack_pop (HildonWindowStack *stack,
gint nwindows,
GList **popped_windows);
GtkWidget *
hildon_window_stack_pop_1 (HildonWindowStack *stack);
void
hildon_window_stack_pop_and_push (HildonWindowStack *stack,
gint nwindows,
GList **popped_windows,
HildonStackableWindow *win1,
...);
void
hildon_window_stack_pop_and_push_list (HildonWindowStack *stack,
gint nwindows,
GList **popped_windows,
GList *list);
G_END_DECLS
#endif /* __HILDON_WINDOW_STACK_H__ */
|