Criar  Editar  FrontPage  Índices  Buscar  Alterações  History  RSS  Back  Login

Gtk::SeparatorToolItem Diff - Ruby-GNOME2 Project Website

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

= class Gtk::SeparatorToolItem
A Gtk::SeparatorItem is a Gtk::ToolItem that separates groups of other ((<Gtk::ToolItem>))s. Depending on the theme, a Gtk::SeparatorToolItem will often look like a vertical line on horizontally docked toolbars.

If the property "expand" is true and the property "draw" is false, a Gtk::SeparatorToolItem will act as a "spring" that forces other items to the ends of the toolbar.

== Object Hierarchy
* Object
  * GLib::Instantiatable
    * GLib::Object
      * Gtk::Object
        * Gtk::Widget
          * Gtk::Container
            * Gtk::Bin
              * Gtk::ToolItem
                * Gtk::SeparatorToolItem

== Class Methods
--- Gtk::SeparatorToolItem.new
    Create a new Gtk::SeparatorToolItem. ((* Since 2.4 *))
    * Returns: a new Gtk::SeparatorToolItem

--- draw?
    Returns whether separator_tool_item is drawn as a line.  ((* Since 2.4 *))
    * Returns: true if separator_tool_item is drawn as a line, or just blank.
--- draw=(draw)
    When separator_tool_items is drawn as a vertical line, or just blank. Setting this false along with Gtk::ToolItem#expand= is useful to create an item that forces following items to the end of the toolbar. ((* Since 2.4 *))
    * draw: true if separator_tool_item is drawn as a vertical line, otherwise false.
    * Returns: draw
--- set_draw(draw)
    Same as Gtk::SeparatorToolItem.draw=. ((* Since 2.4 *))
    * draw: true if separator_tool_item is drawn as a vertical line, otherwise false.
    * Returns: self

== Properties
--- draw: true or false (Read/Write)
    Whether the separator is drawn, or just blank.  ((* Since 2.4 *))
    * Default value: true

== See Also
Gtk::Toolbar - The toolbar widget

Gtk::RadioToolButton - A toolbar item containing a radio button



== ChangeLog
* 2005-1-27 Added. - Masao