Crear  Editar  FrontPage  Indexes  Buscar  Cambios  History  RSS  Login

Gtk::SeparatorToolItem

class Gtk::SeparatorToolItem

A Gtk::SeparatorItem? is a Gtk::ToolItem that separates groups of other Gtk::ToolItems. 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.

Class Methods

Gtk::SeparatorToolItem.new
Create a new Gtk::SeparatorToolItem. Since 2.4
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
Ultimas actualizaciones:2011/06/14 19:38:08
Clave:
Referencias:[Gtk::SeparatorToolItem] [Gtk::ToolItem] [Gtk::ToggleToolButton] [Gtk::ToolButton] [Gtk::UIManager]