Class: Gtk::ToolItemGroup

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#collapsedTrueClass

Gets whether group is collapsed or expanded.

Returns:

  • (TrueClass)

    true if group is collapsed, false if it is expanded

#collapsed=(collapsed) ⇒ TrueClass

Parameters:

  • collapsed (TrueClass)

Returns:

  • (TrueClass)

    collapsed

  • (TrueClass)

    collapsed

#collapsed?TrueClass

Returns collapsed.

Returns:

  • (TrueClass)

    collapsed

#ellipsizePango::EllipsizeMode

Returns ellipsize.

Returns:

#ellipsize=(ellipsize) ⇒ Pango::EllipsizeMode

Parameters:

Returns:

#get_drop_item(x, y) ⇒ Gtk::ToolItem

Gets the tool item at position (x, y).

Parameters:

  • x (Integer)

    the x position

  • y (Integer)

    the y position

Returns:

#get_item_position(item) ⇒ Integer

Gets the position of item in group as index.

Parameters:

Returns:

  • (Integer)

    the index of item in group or -1 if item is no child of group

#get_nth_item(index) ⇒ Gtk::ToolItem

Gets the tool item at index in group.

Parameters:

  • index (Integer)

    the index

Returns:

#header_reliefGtk::ReliefStyle

Returns header-relief.

Returns:

#header_relief=(header_relief) ⇒ Gtk::ReliefStyle

Parameters:

Returns:

#insert(item, position) ⇒ nil

Inserts item at position in the list of children of group.

Parameters:

  • item (Gtk::ToolItem)

    the Gtk::ToolItem to insert into group

  • position (Integer)

    the position of item in group, starting with 0. The position -1 means end of list.

Returns:

  • (nil)

#labelString

Returns label.

Returns:

  • (String)

    label

#label=(label) ⇒ String

Parameters:

  • label (String)

Returns:

  • (String)

    label

  • (String)

    label

#label_widgetGtk::Widget

Returns label-widget.

Returns:

#label_widget=(label_widget) ⇒ Gtk::Widget

Parameters:

Returns:

#n_itemsInteger

Gets the number of tool items in group.

Returns:

  • (Integer)

    the number of tool items in group

#new(label) ⇒ Gtk::Widget

Creates a new tool item group with label label.

Parameters:

  • label (String)

    the label of the new group

Returns:

#set_item_position(item, position) ⇒ nil

Sets the position of item in the list of children of group.

Parameters:

  • item (Gtk::ToolItem)

    the Gtk::ToolItem to move to a new position, should be a child of group.

  • position (Integer)

    the new position of item in group, starting with 0. The position -1 means end of list.

Returns:

  • (nil)