2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = GtkHButtonBox.html
27 * outFile = HButtonBox
28 * strct = GtkHButtonBox
49 module gtk
.HButtonBox
;
51 private import gtk
.gtktypes
;
53 private import lib
.gtk
;
58 * A button box should be used to provide a consistent layout of buttons
59 * throughout your application. The layout/spacing can be altered by the
60 * programmer, or if desired, by the user to alter the 'feel' of a
61 * program to a small degree.
62 * A GtkHButtonBox is created with gtk_hbutton_box_new(). Buttons are
63 * packed into a button box the same way widgets are added to any other
64 * container, using gtk_container_add(). You can also use
65 * gtk_box_pack_start() or gtk_box_pack_end(), but for button boxes both
66 * these functions work just like gtk_container_add(), ie., they pack the
67 * button in a way that depends on the current layout style and on
68 * whether the button has had gtk_button_box_set_child_secondary() called
70 * The spacing between buttons can be set with gtk_box_set_spacing(). The
71 * arrangement and layout of the buttons can be changed with
72 * gtk_button_box_set_layout().
74 private import gtk
.ButtonBox
;
75 public class HButtonBox
: ButtonBox
78 /** the main Gtk struct */
79 protected GtkHButtonBox
* gtkHButtonBox
;
82 public GtkHButtonBox
* getHButtonBoxStruct()
88 /** the main Gtk struct as a void* */
89 protected void* getStruct()
91 return cast(void*)gtkHButtonBox
;
95 * Sets our main struct and passes it to the parent class
97 public this (GtkHButtonBox
* gtkHButtonBox
)
99 super(cast(GtkButtonBox
*)gtkHButtonBox
);
100 this.gtkHButtonBox
= gtkHButtonBox
;
104 * Creates a new HButtonBox and sets comon parameters
106 static ButtonBox
createActionBox()
108 ButtonBox bBox
= new HButtonBox();
109 bBox
.setLayout(ButtonBoxStyle
.END
);
110 bBox
.setBorderWidth(5);
121 * Creates a new horizontal button box.
123 * a new button box GtkWidget.
127 // GtkWidget* gtk_hbutton_box_new (void);
128 this(cast(GtkHButtonBox
*)gtk_hbutton_box_new() );
133 * gtk_hbutton_box_get_spacing_default is deprecated and should not be used in newly-written code.
134 * Retrieves the current default spacing for horizontal button boxes. This is the number of pixels
135 * to be placed between the buttons when they are arranged.
137 * the default number of pixels between buttons.
139 public static int getSpacingDefault()
141 // gint gtk_hbutton_box_get_spacing_default (void);
142 return gtk_hbutton_box_get_spacing_default();
147 * gtk_hbutton_box_get_layout_default is deprecated and should not be used in newly-written code.
148 * Retrieves the current layout used to arrange buttons in button box widgets.
150 * the current GtkButtonBoxStyle.
152 public static GtkButtonBoxStyle
getLayoutDefault()
154 // GtkButtonBoxStyle gtk_hbutton_box_get_layout_default (void);
155 return gtk_hbutton_box_get_layout_default();
160 * gtk_hbutton_box_set_spacing_default is deprecated and should not be used in newly-written code.
161 * Changes the default spacing that is placed between widgets in an
162 * horizontal button box.
166 public static void setSpacingDefault(int spacing
)
168 // void gtk_hbutton_box_set_spacing_default (gint spacing);
169 gtk_hbutton_box_set_spacing_default(spacing
);
174 * gtk_hbutton_box_set_layout_default is deprecated and should not be used in newly-written code.
175 * Sets a new layout mode that will be used by all button boxes.
177 * a new GtkButtonBoxStyle.
180 * Used to pack widgets into button boxes.
182 * Provides functions for controlling button boxes.
184 * Pack buttons vertically
186 public static void setLayoutDefault(GtkButtonBoxStyle layout
)
188 // void gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout);
189 gtk_hbutton_box_set_layout_default(layout
);