ToggleAction.this

Creates a new ToggleAction object. To add the action to a ActionGroup and set the accelerator for the action, call gtk.ActionGroup.ActionGroup.addActionWithAccel().

  1. this(GtkToggleAction* gtkToggleAction, bool ownedRef)
  2. this(string name, string label, string tooltip, StockID stockId)
    class ToggleAction
    this
    (
    string name
    ,
    string label
    ,
    string tooltip
    ,)
  3. this(string name, string label, string tooltip, string stockId)

Parameters

name string

A unique name for the action

label string

The label displayed in menu items and on buttons, or null

tooltip string

A tooltip for the action, or null

stockId StockID

The stock icon to display in widgets representing the action, or null

Throws

ConstructionException GTK+ fails to create the object.

Meta