GtkCheckMenuItem

GtkCheckMenuItem

Menu item with a toggle indicator.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkItem
                            `-- GtkMenuItem
                                   `-- GtkCheckMenuItem

Direct subclasses

Description

A GtkCheckMenuItem is a normal GtkMenuItem that contains a toggle indicator positioned to the left of any GtkAccelLabel text. The indicator does not necessarily have to be displayed during the time that the menu item is set to its inactive state, but is always displayed when the state is set as active.

Constructor

GtkCheckMenuItem ([string label ]);
-- Creates a GtkMenuItem with a toggle indicator.

Methods

set_active()
  Toggles the active state.
set_show_toggle()
  Determines whether toggle indicator should be displayed.
toggled()
  Emits the "toggled" signal.

Signals

"toggled"
  Emitted when the toggled() method is called.

Properties

active:
  'Active' toggle.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.