Class: Gtk::Switch

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

Instance Method Summary collapse

Instance Method Details

#activeTrueClass

Gets whether the Gtk::Switch is in its “on” or “off” state.

Returns:

  • (TrueClass)

    true if the Gtk::Switch is active, and false otherwise

#active=(active) ⇒ TrueClass

Whether the Gtk::Switch widget is in its on or off state.

Parameters:

  • active (TrueClass)

Returns:

  • (TrueClass)

    active

  • (TrueClass)

    active

#active?TrueClass

Whether the Gtk::Switch widget is in its on or off state.

Returns:

  • (TrueClass)

    active

#newGtk::Widget

Creates a new Gtk::Switch widget.

Returns:

  • (Gtk::Widget)

    the newly created Gtk::Switch instance

#stateTrueClass

Gets the underlying state of the Gtk::Switch.

Returns:

  • (TrueClass)

    the underlying state

#state=(state) ⇒ TrueClass

The backend state that is controlled by the switch. See Gtk::Switch::state-set for details.

Parameters:

  • state (TrueClass)

Returns:

  • (TrueClass)

    state

  • (TrueClass)

    state

#state?TrueClass

The backend state that is controlled by the switch. See Gtk::Switch::state-set for details.

Returns:

  • (TrueClass)

    state