Class: Gtk::ToggleButton
- Inherits:
-
Object
- Object
- Gtk::ToggleButton
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#active ⇒ TrueClass
Queries a Gtk::ToggleButton and returns its current state.
- #active=(active) ⇒ TrueClass
-
#active? ⇒ TrueClass
Active.
- #draw_indicator=(draw_indicator) ⇒ TrueClass
-
#draw_indicator? ⇒ TrueClass
Draw-indicator.
-
#inconsistent ⇒ TrueClass
Gets the value set by gtk_toggle_button_set_inconsistent().
- #inconsistent=(inconsistent) ⇒ TrueClass
-
#inconsistent? ⇒ TrueClass
Inconsistent.
-
#mode ⇒ TrueClass
Retrieves whether the button is displayed as a separate indicator and label.
-
#mode=(draw_indicator) ⇒ nil
Sets whether the button is displayed as a separate indicator and label.
-
#new ⇒ Gtk::Widget
Creates a new toggle button.
-
#new_with_label(label) ⇒ Gtk::Widget
Creates a new toggle button with a text label.
-
#new_with_mnemonic(label) ⇒ Gtk::Widget
Creates a new Gtk::ToggleButton containing a label.
-
#toggled ⇒ nil
Emits the Gtk::ToggleButton::toggled signal on the Gtk::ToggleButton.
Instance Method Details
#active ⇒ TrueClass
Queries a Gtk::ToggleButton and returns its current state. Returns true if the toggle button is pressed in and false if it is raised.
#active=(active) ⇒ TrueClass
#active? ⇒ TrueClass
Returns active.
#draw_indicator=(draw_indicator) ⇒ TrueClass
#draw_indicator? ⇒ TrueClass
Returns draw-indicator.
#inconsistent ⇒ TrueClass
Gets the value set by gtk_toggle_button_set_inconsistent().
#inconsistent=(inconsistent) ⇒ TrueClass
#inconsistent? ⇒ TrueClass
Returns inconsistent.
#mode ⇒ TrueClass
Retrieves whether the button is displayed as a separate indicator and label. See gtk_toggle_button_set_mode().
#mode=(draw_indicator) ⇒ nil
Sets whether the button is displayed as a separate indicator and label. You can call this function on a checkbutton or a radiobutton with draw_indicator = false to make the button look like a normal button.
This can be used to create linked strip of buttons that work like a Gtk::StackSwitcher.
This function only affects instances of classes like Gtk::CheckButton and Gtk::RadioButton that derive from #GtkToggleButton, not instances of Gtk::ToggleButton itself. and label; if false, draw the button like a normal button
#new ⇒ Gtk::Widget
Creates a new toggle button. A widget should be packed into the button, as in gtk_button_new().
#new_with_label(label) ⇒ Gtk::Widget
Creates a new toggle button with a text label.
#new_with_mnemonic(label) ⇒ Gtk::Widget
Creates a new Gtk::ToggleButton containing a label. The label will be created using gtk_label_new_with_mnemonic(), so underscores in label indicate the mnemonic for the button.
#toggled ⇒ nil
Emits the Gtk::ToggleButton::toggled signal on the Gtk::ToggleButton. There is no good reason for an application ever to call this function.