Debian Codegraph @

gtk/src/hvbox.hg

raw
1 /* Copyright (C) 1998-2011 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 _DEFS(gtkmm,gtk)
18 _PINCLUDE(gtkmm/private/box_p.h)
19
20 #m4 _PUSH(SECTION_CC_PRE_INCLUDES)
21 #undef GTK_DISABLE_DEPRECATED
22 #define GDK_DISABLE_DEPRECATION_WARNINGS 1
23 #m4 _POP()
24
25 #include <gtkmm/box.h>
26
27 namespace Gtk
28 {
29
30 /** Vertical Box for laying widgets in a vertical row.
31 *
32 * You should create these objects, but it is more comfortable to pass
33 * around pointers of Gtk::Box. All the methods that do anything are in
34 * class Gtk::Box and this allows you to later change the direction of the
35 * box, when there's no dependencies to HBox and VBox classes.
36 *
37 * @ingroup Widgets
38 * @ingroup Containers
39 *
40 * @deprecated Use Box instead, which is a very quick and easy change. But we recommend switching to Grid, since
41 * Box will go away eventually.
42 */
43 class GTKMM_API VBox : public Box
44 {
45 _CLASS_GTKOBJECT(VBox,GtkVBox,GTK_VBOX,Gtk::Box,GtkBox,,,GTKMM_API)
46 //TODO: Do this when we can stop using this as a base class elsewhere, when we break ABI: _IS_DEPRECATED
47 public:
48
49 //TODO: Remove the homogoenous parameter as it was removed in gtk_box_new().
50 /** Creates a new vertical box.
51 * @param homogeneous <tt>true</tt> if all children are to be given equal space allotments.
52 * @param spacing Determines the space in pixels between child widgets.
53 */
54 _WRAP_CTOR(VBox(bool homogeneous = false, int spacing = 0), gtk_vbox_new)
55 };
56
57 /** Horizontal Box for laying widgets in a horizontal row.
58 *
59 * You should create these objects, but it is more comfortable to pass
60 * around pointers of Gtk::Box. All the methods that do anything are in
61 * class Gtk::Box and this allows you to later change the direction of the
62 * box, when there's no dependencies to HBox and VBox classes.
63 *
64 * Use the Gtk::Box packing interface to determine the arrangement, spacing,
65 * width, and alignment of Gtk::HBox children.
66 *
67 * All children are allocated the same height.
68 *
69 * @ingroup Widgets
70 * @ingroup Containers
71 *
72 * @deprecated Use Box instead, which is a very quick and easy change. But we recommend switching to Grid, since
73 * Box will go away eventually.
74 */
75 class GTKMM_API HBox : public Box
76 {
77 _CLASS_GTKOBJECT(HBox,GtkHBox,GTK_HBOX,Gtk::Box,GtkBox,,,GTKMM_API)
78 //TODO: Do this when we can stop using this as a base class elsewhere, when we break ABI: _IS_DEPRECATED
79 public:
80
81 //TODO: Remove the homogoenous parameter as it was removed in gtk_box_new().
82 /** Creates a new horizontal box.
83 * @param homogeneous <tt>true</tt> if all children are to be given equal space allotments.
84 * @param spacing Determines the space in pixels between child widgets.
85 */
86 _WRAP_CTOR(HBox(bool homogeneous = false, int spacing = 0), gtk_hbox_new)
87
88 };
89
90 } // namespace Gtk