Class: Gtk::ToolButton

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

Instance Method Summary collapse

Instance Method Details

#icon_nameString

The name of the themed icon displayed on the item. This property only has an effect if not overridden by Gtk::ToolButton:label-widget, #GtkToolButton:icon-widget or Gtk::ToolButton:stock-id properties.

Returns:

  • (String)

    icon-name

#icon_name=(icon_name) ⇒ String

The name of the themed icon displayed on the item. This property only has an effect if not overridden by Gtk::ToolButton:label-widget, #GtkToolButton:icon-widget or Gtk::ToolButton:stock-id properties.

Parameters:

  • icon_name (String)

Returns:

  • (String)

    icon-name

  • (String)

    icon-name

#icon_widgetGtk::Widget

Returns icon-widget.

Returns:

#icon_widget=(icon_widget) ⇒ Gtk::Widget

Parameters:

Returns:

#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:

#new(icon_widget, label) ⇒ Gtk::ToolItem

Creates a new Gtk::ToolButton using icon_widget as contents and label as label.

Parameters:

  • icon_widget (Gtk::Widget)

    a widget that will be used as the button contents, or nil

  • label (String)

    a string that will be used as label, or nil

Returns:

#new_from_stock(stock_id) ⇒ Gtk::ToolItem

Creates a new Gtk::ToolButton containing the image and text from a stock item. Some stock ids have preprocessor macros like #GTK_STOCK_OK and #GTK_STOCK_APPLY.

It is an error if stock_id is not a name of a stock item.

Parameters:

  • stock_id (String)

    the name of the stock item

Returns:

#stock_idString

Returns stock-id.

Returns:

  • (String)

    stock-id

#stock_id=(stock_id) ⇒ String

Parameters:

  • stock_id (String)

Returns:

  • (String)

    stock-id

  • (String)

    stock-id

#use_underlineTrueClass

Returns whether underscores in the label property are used as mnemonics on menu items on the overflow menu. See gtk_tool_button_set_use_underline(). mnemonics on menu items on the overflow menu.

Returns:

  • (TrueClass)

    true if underscores in the label property are used as

#use_underline=(use_underline) ⇒ TrueClass

Parameters:

  • use_underline (TrueClass)

Returns:

  • (TrueClass)

    use-underline

  • (TrueClass)

    use-underline

#use_underline?TrueClass

Returns use-underline.

Returns:

  • (TrueClass)

    use-underline