## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Toggle_Action

- Goto spec source

# Description

    package Gtk.Toggle_Action is

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

Binding from C File version 2.8.17

<see>Gtk.Action</see>

# Classes

### Gtk_Toggle_Action_Record

- Goto declaration in source

    type Gtk_Toggle_Action_Record is new Gtk.Action.Gtk_Action_Record with
         null record;

#### Ancestors:

Gtk.Action.Gtk_Action_Record
Glib.Object.GObject_Record

#### Immediate Children:

Gtk.Radio_Action.Gtk_Radio_Action_Record

#### Primitive operations:

Get_Active

- To API doc
- To spec

Get_Draw_As_Radio

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Gtk.Action.Activate

- To API doc
- To spec

(Inherited)
Gtk.Action.Block_Activate

- To API doc
- To spec

(Inherited)
Gtk.Action.Block_Activate_From

- To API doc
- To spec

(Inherited)
Gtk.Action.Connect_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Action.Connect_Proxy

- To API doc
- To spec

(Inherited)
Gtk.Action.Create_Icon

- To API doc
- To spec

(Inherited)
Gtk.Action.Create_Menu

- To API doc
- To spec

(Inherited)
Gtk.Action.Create_Menu_Item

- To API doc
- To spec

(Inherited)
Gtk.Action.Create_Tool_Item

- To API doc
- To spec

(Inherited)
Gtk.Action.Disconnect_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Action.Disconnect_Proxy

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Accel_Path

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_GIcon

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Icon_Name

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Is_Important

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Label

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Name

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Proxies

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Short_Label

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Stock_Id

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Visible

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Visible_Horizontal

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Visible_Vertical

- To API doc
- To spec

(Inherited)
Gtk.Action.Is_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Action.Is_Visible

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Accel_Group

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Accel_Path

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_GIcon

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Icon_Name

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Is_Important

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Label

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Short_Label

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Stock_Id

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Visible

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Visible_Horizontal

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Visible_Vertical

- To API doc
- To spec

(Inherited)
Gtk.Action.Unblock_Activate

- To API doc
- To spec

(Inherited)
Gtk.Action.Unblock_Activate_From

- To API doc
- To spec

(Inherited)
Set_Active

- To API doc
- To spec

Set_Draw_As_Radio

- To API doc
- To spec

Toggled

- To API doc
- To spec

# Types

### Gtk_Toggle_Action

- Goto declaration in source

    type Gtk_Toggle_Action is access all Gtk_Toggle_Action_Record'Class;

# Constants & Global variables

### Draw_As_Radio_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Draw_As_Radio_Property : constant Glib.Properties.Property_Boolean;

### Signal_Toggled

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Toggled : constant Glib.Signal_Name := "toggled";

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Action: out Gtk_Toggle_Action;Name: String;Label: String := "";Tooltip: String := "";Stock_Id: String := "");

### Initialize

- Goto spec in source

    procedure Initialize (Action: access Gtk_Toggle_Action_Record'Class;Name: String;Label: String := "";Tooltip: String := "";Stock_Id: String := "");

Creates a new Gtk_Toggle_Action object. To add the action to a Gtk_Action_Group and set the accelerator for the action, call Gtk.Action_Group.Add_Action_With_Accel.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return GType;

Return the internal type associated with Gtk_Toggle_Action.

### Set_Active

- Goto spec in source

    procedure Set_Active (Action: access Gtk_Toggle_Action_Record;Is_Active: Boolean);

### Get_Active

- Goto spec in source

    function Get_Active (Action: access Gtk_Toggle_Action_Record) return Boolean;

Returns the checked state of the toggle action.

### Set_Draw_As_Radio

- Goto spec in source

    procedure Set_Draw_As_Radio (Action: access Gtk_Toggle_Action_Record;Draw_As_Radio: Boolean);

### Get_Draw_As_Radio

- Goto spec in source

    function Get_Draw_As_Radio (Action: access Gtk_Toggle_Action_Record) return Boolean;

Returns whether the action should have proxies like a radio action. This changes the display of widgets associated with that action.

### Toggled

- Goto spec in source

    procedure Toggled (Action: access Gtk_Toggle_Action_Record);

Emits the "toggled" signal on the toggle action.