2 * This file is part of gtkD.
4 * gtkD 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 * gtkD 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 gtkD; 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 = GtkVButtonBox.html
27 * outFile = VButtonBox
28 * strct = GtkVButtonBox
50 module gtk
.VButtonBox
;
56 import tango
.io
.Stdout
; // use the tango loging?
60 private import gtkc
.gtktypes
;
62 private import gtkc
.gtk
;
71 * A button box should be used to provide a consistent layout of buttons
72 * throughout your application. The layout/spacing can be altered by the
73 * programmer, or if desired, by the user to alter the 'feel' of a
74 * program to a small degree.
75 * A GtkVButtonBox is created with gtk_vbutton_box_new(). Buttons are
76 * packed into a button box the same way widgets are added to any other
77 * container, using gtk_container_add(). You can also use
78 * gtk_box_pack_start() or gtk_box_pack_end(), but for button boxes both
79 * these functions work just like gtk_container_add(), ie., they pack the
80 * button in a way that depends on the current layout style and on
81 * whether the button has had gtk_button_box_set_child_secondary() called
83 * The spacing between buttons can be set with gtk_box_set_spacing(). The
84 * arrangement and layout of the buttons can be changed with
85 * gtk_button_box_set_layout().
87 private import gtk
.ButtonBox
;
88 public class VButtonBox
: ButtonBox
91 /** the main Gtk struct */
92 protected GtkVButtonBox
* gtkVButtonBox
;
95 public GtkVButtonBox
* getVButtonBoxStruct()
101 /** the main Gtk struct as a void* */
102 protected void* getStruct()
104 return cast(void*)gtkVButtonBox
;
108 * Sets our main struct and passes it to the parent class
110 public this (GtkVButtonBox
* gtkVButtonBox
)
114 if ( gtkVButtonBox
is null )
119 Stdout("struct gtkVButtonBox is null on constructor").newline
;
123 printf("struct gtkVButtonBox is null on constructor");
130 assert(gtkVButtonBox
!is null, "struct gtkVButtonBox is null on constructor");
132 super(cast(GtkButtonBox
*)gtkVButtonBox
);
133 this.gtkVButtonBox
= gtkVButtonBox
;
137 * Creates a new vertical button box and sets standart values for it's comon parameters
138 * @return a new vertical button box
140 static ButtonBox
createActionBox()
142 ButtonBox bBox
= new VButtonBox();
143 bBox
.setLayout(ButtonBoxStyle
.START
);
144 bBox
.setBorderWidth(5);
154 * Creates a new vertical button box.
156 * a new button box GtkWidget.
160 // GtkWidget* gtk_vbutton_box_new (void);
161 this(cast(GtkVButtonBox
*)gtk_vbutton_box_new() );
166 * gtk_vbutton_box_get_spacing_default is deprecated and should not be used in newly-written code.
167 * Retrieves the current default spacing for vertical button boxes. This is the number of pixels
168 * to be placed between the buttons when they are arranged.
170 * the default number of pixels between buttons.
172 public static int getSpacingDefault()
174 // gint gtk_vbutton_box_get_spacing_default (void);
175 return gtk_vbutton_box_get_spacing_default();
180 * gtk_vbutton_box_set_spacing_default is deprecated and should not be used in newly-written code.
181 * Changes the default spacing that is placed between widgets in an
182 * vertical button box.
186 public static void setSpacingDefault(int spacing
)
188 // void gtk_vbutton_box_set_spacing_default (gint spacing);
189 gtk_vbutton_box_set_spacing_default(spacing
);
194 * gtk_vbutton_box_get_layout_default is deprecated and should not be used in newly-written code.
195 * Retrieves the current layout used to arrange buttons in button box widgets.
197 * the current GtkButtonBoxStyle.
199 public static GtkButtonBoxStyle
getLayoutDefault()
201 // GtkButtonBoxStyle gtk_vbutton_box_get_layout_default (void);
202 return gtk_vbutton_box_get_layout_default();
207 * gtk_vbutton_box_set_layout_default is deprecated and should not be used in newly-written code.
208 * Sets a new layout mode that will be used by all button boxes.
210 * a new GtkButtonBoxStyle.
213 * Used to pack widgets into button boxes.
215 * Provides functions for controlling button boxes.
217 * Pack buttons horizontally
219 public static void setLayoutDefault(GtkButtonBoxStyle layout
)
221 // void gtk_vbutton_box_set_layout_default (GtkButtonBoxStyle layout);
222 gtk_vbutton_box_set_layout_default(layout
);