[ruby-gnome2-doc-cvs] [Hiki] update - Gtk::ButtonBox

Back to archive index

ruby-****@lists***** ruby-****@lists*****
2003年 3月 24日 (月) 16:28:08 JST


-------------------------
REMOTE_ADDR = 61.204.181.66
REMOTE_HOST = 
-------------------------

-------------------------
= class Gtk::ButtonBox
The primary purpose of this class is to keep track of the various properties of Gtk::HButtonBox and Gtk::VButtonBox widgets. 

== super class
* Gtk::Box

== public instance methods
--- layout_style
    Retrieves the method being used to arrange the buttons in a button box. 
    * Returns: GtkButtonBoxStyle. the method used to layout buttons in widget. 
    
--- layout_style=(style)
    Changes the way buttons are arranged in their container. 
    * style: GtkButtonBoxStyle. the new layout style.  
    * Returns: style
    
--- set_layout_style(style)
    Same as layout_style=.
    * layout_style : the new layout style.  
    * Returns: self
    
--- set_child_secondary(child, is_secondary)
    Sets whether child should appear in a secondary group of children. A typical use of a secondary child is the help button in a dialog. 
    This group appears after the other children if the style is Gtk::ButtonBox::START, Gtk::ButtonBox::SPREAD or Gtk::ButtonBox::EDGE, and before the the other children if the style is Gtk::ButtonBox::END. 
    For horizontal button boxes, the definition of before/after depends on direction of the widget (see Gtk::Widget::set_direction). If the style is Gtk::ButtonBox::START or Gtk::ButtonBox::END, then the secondary children are aligned at the other end of the button box from the main children. For the other styles, they appear immediately next to the main children.
     *child: a child of widget  
     *is_secondary : if true, the child appears in a secondary group of the button box.

== constants
=== Gtk::ButtonBoxStyle
--- DEFAULT_STYLE
    Default packing.  
--- SPREAD 
    Buttons are evenly spread across the Gtk::ButtonBox.  
--- EDGE 
    Buttons are placed at the edges of the Gtk::ButtonBox.  
--- START
    Buttons are grouped towards the start of box, (on the left for a Gtk::HBox, or the top for a Gtk::VBox).
--- END
    Buttons are grouped towards the end of a box, (on the right for a Gtk::HBox, or the bottom for a Gtk::VBox).  

== See Also
Gtk::VButtonBox is a Vertical sub-class of Gtk::ButtonBox.
Gtk::HButtonBox is a Horizontal sub-class of Gtk::ButtonBox.
 

- ((<Masao>))




ruby-gnome2-cvs メーリングリストの案内
Back to archive index