Class: Gtk::CheckMenuItem

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

Instance Method Summary collapse

Instance Method Details

#activeTrueClass

Returns whether the check menu item is active. See gtk_check_menu_item_set_active ().

Returns:

  • (TrueClass)

    true if the menu item is checked.

#active=(active) ⇒ TrueClass

Parameters:

  • active (TrueClass)

Returns:

  • (TrueClass)

    active

  • (TrueClass)

    active

#active?TrueClass

Returns active.

Returns:

  • (TrueClass)

    active

#draw_as_radioTrueClass

Returns whether check_menu_item looks like a Gtk::RadioMenuItem

Returns:

  • (TrueClass)

    Whether check_menu_item looks like a Gtk::RadioMenuItem

#draw_as_radio=(draw_as_radio) ⇒ TrueClass

Parameters:

  • draw_as_radio (TrueClass)

Returns:

  • (TrueClass)

    draw-as-radio

  • (TrueClass)

    draw-as-radio

#draw_as_radio?TrueClass

Returns draw-as-radio.

Returns:

  • (TrueClass)

    draw-as-radio

#inconsistentTrueClass

Retrieves the value set by gtk_check_menu_item_set_inconsistent().

Returns:

  • (TrueClass)

    true if inconsistent

#inconsistent=(inconsistent) ⇒ TrueClass

Parameters:

  • inconsistent (TrueClass)

Returns:

  • (TrueClass)

    inconsistent

  • (TrueClass)

    inconsistent

#inconsistent?TrueClass

Returns inconsistent.

Returns:

  • (TrueClass)

    inconsistent

#newGtk::Widget

Creates a new Gtk::CheckMenuItem.

Returns:

#new_with_label(label) ⇒ Gtk::Widget

Creates a new Gtk::CheckMenuItem with a label.

Parameters:

  • label (String)

    the string to use for the label.

Returns:

#new_with_mnemonic(label) ⇒ Gtk::Widget

Creates a new Gtk::CheckMenuItem containing a label. The label will be created using gtk_label_new_with_mnemonic(), so underscores in label indicate the mnemonic for the menu item.

Parameters:

  • label (String)

    The text of the button, with an underscore in front of the character

Returns:

#togglednil

Emits the Gtk::CheckMenuItem::toggled signal.

Returns:

  • (nil)