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