Mercurial > pidgin
annotate finch/libgnt/gntbox.h @ 18425:84d318eadc62
The input was causing some weird issues. This fixes it.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 03 Jul 2007 11:09:19 +0000 |
parents | 38ecbc8a70bd |
children | 44b4e8bd759b |
rev | line source |
---|---|
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
1 /** |
18303
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18049
diff
changeset
|
2 * @file gntbox.h Box API |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18049
diff
changeset
|
3 * @ingroup gnt |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18049
diff
changeset
|
4 */ |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18049
diff
changeset
|
5 /* |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
6 * GNT - The GLib Ncurses Toolkit |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
7 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
8 * GNT is the legal property of its developers, whose names are too numerous |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
9 * to list here. Please refer to the COPYRIGHT file distributed with this |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
10 * source distribution. |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
11 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
12 * This library is free software; you can redistribute it and/or modify |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
13 * it under the terms of the GNU General Public License as published by |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
14 * the Free Software Foundation; either version 2 of the License, or |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
15 * (at your option) any later version. |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
16 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
17 * This program is distributed in the hope that it will be useful, |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
20 * GNU General Public License for more details. |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
21 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
22 * You should have received a copy of the GNU General Public License |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
23 * along with this program; if not, write to the Free Software |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
25 */ |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
26 |
15817 | 27 #ifndef GNT_BOX_H |
28 #define GNT_BOX_H | |
29 | |
30 #include "gnt.h" | |
31 #include "gntwidget.h" | |
32 | |
33 #define GNT_TYPE_BOX (gnt_box_get_gtype()) | |
34 #define GNT_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_BOX, GntBox)) | |
35 #define GNT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_BOX, GntBoxClass)) | |
36 #define GNT_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_BOX)) | |
37 #define GNT_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_BOX)) | |
38 #define GNT_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_BOX, GntBoxClass)) | |
39 | |
15928
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
40 typedef struct _GntBox GntBox; |
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
41 typedef struct _GntBoxClass GntBoxClass; |
15817 | 42 |
43 typedef enum | |
44 { | |
45 /* These for vertical boxes */ | |
46 GNT_ALIGN_LEFT, | |
47 GNT_ALIGN_RIGHT, | |
48 | |
49 GNT_ALIGN_MID, | |
50 | |
51 /* These for horizontal boxes */ | |
52 GNT_ALIGN_TOP, | |
53 GNT_ALIGN_BOTTOM | |
54 } GntAlignment; | |
55 | |
15928
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
56 struct _GntBox |
15817 | 57 { |
58 GntWidget parent; | |
59 | |
60 gboolean vertical; | |
61 gboolean homogeneous; | |
62 gboolean fill; | |
63 GList *list; /* List of widgets */ | |
64 | |
65 GntWidget *active; | |
66 int pad; /* Number of spaces to use between widgets */ | |
67 GntAlignment alignment; /* How are the widgets going to be aligned? */ | |
68 | |
69 char *title; | |
70 GList *focus; /* List of widgets to cycle focus (only valid for parent boxes) */ | |
71 | |
72 void (*gnt_reserved1)(void); | |
73 void (*gnt_reserved2)(void); | |
74 void (*gnt_reserved3)(void); | |
75 void (*gnt_reserved4)(void); | |
76 }; | |
77 | |
15928
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
78 struct _GntBoxClass |
15817 | 79 { |
80 GntWidgetClass parent; | |
81 | |
82 void (*gnt_reserved1)(void); | |
83 void (*gnt_reserved2)(void); | |
84 void (*gnt_reserved3)(void); | |
85 void (*gnt_reserved4)(void); | |
86 }; | |
87 | |
88 G_BEGIN_DECLS | |
89 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
90 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
91 * The GType for GntBox. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
92 * @return The GType. |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
93 */ |
15817 | 94 GType gnt_box_get_gtype(void); |
95 | |
96 #define gnt_vbox_new(homo) gnt_box_new(homo, TRUE) | |
97 #define gnt_hbox_new(homo) gnt_box_new(homo, FALSE) | |
98 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
99 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
100 * Create a new GntBox. |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
101 * |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
102 * @param homo If @c TRUE, all the widgets in it will have the same width (or height) |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
103 * @param vert Whether the widgets in it should be stacked vertically (if @c TRUE) |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
104 * or horizontally (if @c FALSE). |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
105 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
106 * @return The new GntBox. |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
107 */ |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
108 GntWidget * gnt_box_new(gboolean homo, gboolean vert); |
15817 | 109 |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
110 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
111 * Add a widget in the box. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
112 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
113 * @param box The box |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
114 * @param widget The widget to add |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
115 */ |
15817 | 116 void gnt_box_add_widget(GntBox *box, GntWidget *widget); |
117 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
118 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
119 * Set a title for the box. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
120 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
121 * @param box The box |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
122 * @param title The title to set |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
123 */ |
15817 | 124 void gnt_box_set_title(GntBox *box, const char *title); |
125 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
126 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
127 * Set the padding to use between the widgets in the box. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
128 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
129 * @param box The box |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
130 * @param pad The padding to use |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
131 */ |
15817 | 132 void gnt_box_set_pad(GntBox *box, int pad); |
133 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
134 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
135 * Set whether it's a toplevel box (ie, a window) or not. If a box is toplevel, |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
136 * then it will show borders, the title (if set) and shadow (if enabled in |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
137 * @e .gntrc) |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
138 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
139 * @param box The box |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
140 * @param set @c TRUE if it's a toplevel box, @c FALSE otherwise. |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
141 */ |
15817 | 142 void gnt_box_set_toplevel(GntBox *box, gboolean set); |
143 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
144 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
145 * Reposition and refresh the widgets in the box. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
146 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
147 * @param box The box |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
148 */ |
15817 | 149 void gnt_box_sync_children(GntBox *box); |
150 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
151 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
152 * Set the alignment for the widgets in the box. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
153 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
154 * @param box The box |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
155 * @param alignment The alignment to use |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
156 */ |
15817 | 157 void gnt_box_set_alignment(GntBox *box, GntAlignment alignment); |
158 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
159 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
160 * Remove a widget from the box. Calling this does NOT destroy the removed widget. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
161 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
162 * @param box The box |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
163 * @param widget The widget to remove |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
164 */ |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
165 void gnt_box_remove(GntBox *box, GntWidget *widget); |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
166 |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
167 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
168 * Remove all widgets from the box. This DOES destroy all widgets in the box. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
169 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
170 * @param box The box |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
171 */ |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
172 void gnt_box_remove_all(GntBox *box); |
15817 | 173 |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
174 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
175 * Readjust the size of each child widget, reposition the child widgets and |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
176 * recalculate the size of the box. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
177 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
178 * @param box The box |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
179 */ |
15817 | 180 void gnt_box_readjust(GntBox *box); |
181 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
182 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
183 * Set whether the widgets in the box should fill the empty spaces. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
184 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
185 * @param box The box |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
186 * @param fill Whether the child widgets should fill the empty space |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
187 */ |
15817 | 188 void gnt_box_set_fill(GntBox *box, gboolean fill); |
189 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
190 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
191 * Move the focus from one widget to the other. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
192 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
193 * @param box The box |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
194 * @param dir The direction. If it's 1, then the focus is moved forwards, if it's |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
195 * -1, the focus is moved backwards. |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
196 */ |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
197 void gnt_box_move_focus(GntBox *box, int dir); |
15817 | 198 |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
199 /** |
18304
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
200 * Give focus to a specific child widget. |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
201 * |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
202 * @param box The box |
38ecbc8a70bd
Start filling in the doxygen-help skeleton.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
203 * @param widget The child widget to give focus |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15928
diff
changeset
|
204 */ |
15817 | 205 void gnt_box_give_focus_to_child(GntBox *box, GntWidget *widget); |
206 | |
207 G_END_DECLS | |
208 | |
209 #endif /* GNT_BOX_H */ | |
210 |