Class: Gtk::ToggleToolButton

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

Instance Method Summary collapse

Instance Method Details

#activeTrueClass

Queries a Gtk::ToggleToolButton and returns its current state. Returns true if the toggle button is pressed in and false if it is raised.

Returns:

  • (TrueClass)

    true if the toggle tool button is pressed in, false if not

#active=(active) ⇒ TrueClass

If the toggle tool button should be pressed in.

Parameters:

  • active (TrueClass)

Returns:

  • (TrueClass)

    active

  • (TrueClass)

    active

#active?TrueClass

If the toggle tool button should be pressed in.

Returns:

  • (TrueClass)

    active

#newGtk::ToolItem

Returns a new Gtk::ToggleToolButton

Returns:

#new_from_stock(stock_id) ⇒ Gtk::ToolItem

Creates a new Gtk::ToggleToolButton 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: