[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]  


Package Gtk.Button_Box

A Gtk_Button_Box is a special type of Gtk_Box specially tailored to contain buttons.

This is only a base class for Gtk_Hbutton_Box and Gtk_Vbutton_Box which provide a way to arrange their children horizontally (resp. vertically). You can not instantiate a Gtk_Button_Box directly, and have to use one the above two instead.

Widget Hierarchy

Gtk_Object                    (see section Package Gtk.Object)
   \___ Gtk_Widget            (see section Package Gtk.Widget)
      \___ Gtk_Container      (see section Package Gtk.Container)
         \___ Gtk_Box         (see section Package Gtk.Box)
            \___ Gtk_Button_Box (see section Package Gtk.Button_Box)

Subprograms

function Get_Type              return Gtk.Gtk_Type;

Return the internal value associated with a Gtk_Button_Box.


procedure Set_Child_Size_Default
  (Min_Width          : in     Gint;
   Min_Height         : in     Gint);

Set the default size for the children of the button boxes.
This is the minimal size that the children will have (in pixels). These default values apply to all the Button_Boxes created in your application, except for boxes where Set_Child_Size has been called.


procedure Get_Child_Size_Default
  (Min_Width          : out    Gint;
   Min_Height         : out    Gint);

Return the default size for the children of the button_boxes.


procedure Set_Child_Ipadding_Default
  (Ipad_X             : in     Gint;
   Ipad_Y             : in     Gint);

Set the default padding (the empty space left around all children).
This will be used for all the button boxes in your application, except those for which Set_Child_Ipadding has been used.


procedure Get_Child_Ipadding_Default
  (Ipad_X             : out    Gint;
   Ipad_Y             : out    Gint);

Return the default padding of the button boxes.


procedure Set_Spacing          
  (Button_Box         : access Gtk_Button_Box_Record;
   Spacing            : in     Gint);

Set the spacing (the space left between two adjacent children).
This is done for all the button boxes. Note that there is a default spacing set for Gtk_Hbutton_boxes and Gtk_Vbutton_boxes.


function Get_Spacing           
  (Button_Box         : access Gtk_Button_Box_Record)
   return Gint;

Return the spacing used for the button box.


procedure Set_Layout           
  (Button_Box         : access Gtk_Button_Box_Record;
   Layout_Style       : in     Enums.Gtk_Button_Box_Style);

Set the layout to use for the box.
There are four such styles:

  • Buttonbox_Spread: The children are spread regularly across the box
  • Buttonbox_Edge : Same as Spread, except that the first and last children are aligned on the border of the box.
  • Buttonbox_Start : The children are put as much to the left (resp. top) as possible in the box.
  • Buttonbox_End : The children are put as much to the right (resp. bottom) as possible in the box.




function Get_Layout            
  (Button_Box         : access Gtk_Button_Box_Record)
   return Enums.Gtk_Button_Box_Style;

Return the layout used in the box.


procedure Set_Child_Size       
  (Button_Box         : access Gtk_Button_Box_Record;
   Min_Width          : in     Gint;
   Min_Height         : in     Gint);

Set the size to use for children of this specific box.
You can modify the size for all the boxes at once by using Set_Child_Size_Default.


procedure Get_Child_Size       
  (Button_Box         : access Gtk_Button_Box_Record;
   Min_Width          : out    Gint;
   Min_Height         : out    Gint);

Return the size to use for children of this specific box.
Min_Width and Min_Height are set to -1 if this widget uses the default sizes that are set by Set_Child_Size_Default.


procedure Set_Child_Ipadding   
  (Button_Box         : access Gtk_Button_Box_Record;
   Ipad_X             : in     Gint;
   Ipad_Y             : in     Gint);

Set the padding to use for the children of this specific box.
You can modify the default padding by using Set_Child_Ipadding_Default.


procedure Get_Child_Ipadding   
  (Button_Box         : access Gtk_Button_Box_Record;
   Ipad_X             : out    Gint;
   Ipad_Y             : out    Gint);

Return the padding to use for children of this specific box.
Ipad_X and Ipad_Y are set to -1 if this widget uses the default values that are set by Set_Child_Ipadding_Default.



[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]