Forum und email

GtkToggleAction

An action which can have two states: on or off.

オブジェクトの階層

GObject
`-- GtkAction
       `-- GtkToggleAction

Direct Subclasses

説明

A GtkToggleAction corresponds roughly to a GtkCheckMenuItem. It has an "active" state specifying whether the action has been checked or not.

コンストラクタ

GtkToggleAction (string name, string label, string tooltip, string stock_id);

-- Creates a new toggle action object.

メソッド

get_active()
  Returns the checked state.
get_draw_as_radio()
  Whether the action should have proxies like a radio action.
set_active()
  Sets the checked state on the toggle action.
set_draw_as_radio()
  Sets whether the action should have proxies like a radio action.
toggled()
  Emits the "toggled" signal.

シグナル

"toggled"
  The state has been toggled.