## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

1.     -----------------------------------------------------------------------

2.     --              GtkAda - Ada95 binding for Gtk+/Gnome                --

3.     --                                                                   --

4.     --                Copyright (C) 2001-2007 AdaCore                    --

5.     --                                                                   --

6.     -- This library is free software; you can redistribute it and/or     --

7.     -- modify it under the terms of the GNU General Public               --

8.     -- License as published by the Free Software Foundation; either      --

9.     -- version 2 of the License, or (at your option) any later version.  --

10.     --                                                                   --

11.     -- This library is distributed in the hope that it will be useful,   --

12.     -- but WITHOUT ANY WARRANTY; without even the implied warranty of    --

13.     -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU --

14.     -- General Public License for more details.                          --

15.     --                                                                   --

16.     -- You should have received a copy of the GNU General Public         --

17.     -- License along with this library; if not, write to the             --

18.     -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      --

19.     -- Boston, MA 02111-1307, USA.                                       --

20.     --                                                                   --

21.     -- As a special exception, if other files instantiate generics from  --

22.     -- this unit, or you link this unit with other files to produce an   --

23.     -- executable, this  unit  does not  by itself cause  the resulting  --

24.     -- executable to be covered by the GNU General Public License. This  --

25.     -- exception does not however invalidate any other reasons why the   --

26.     -- executable file  might be covered by the  GNU Public License.     --

27.     -----------------------------------------------------------------------

29.     --  <description>

30.     --  Gtk_Cell_Renderer_Toggle renders a toggle button in a cell. The button is

31.     --  drawn as a radio- or checkbutton, depending on the radio property. When

32.     --  activated, it emits the toggled signal.

33.     --  </description>

34.     --  <c_version>2.8.17</c_version>

35.     --  <group>Trees and Lists</group>

37.     with Glib.PropertiesTo API docTo specTo body;

38.     with GtkTo API docTo spec;

39.     with Gtk.Cell_RendererTo API docTo specTo body;

41.     package Gtk.Cell_Renderer_ToggleTo API docTo specTo body is

43.        type Gtk_Cell_Renderer_Toggle_RecordTo API docTo body is

44.          new Gtk.Cell_Renderer.Gtk_Cell_Renderer_RecordTo API docTo specTo body with private;

45.        type Gtk_Cell_Renderer_Toggle is

46.          access all Gtk_Cell_Renderer_Toggle_RecordTo API docTo specTo body'Class;

48.        procedure Gtk_NewTo API docTo body (Widget : out Gtk_Cell_Renderer_ToggleTo API docTo spec);

49.        procedure InitializeTo API docTo body

50.          (Widget : access Gtk_Cell_Renderer_Toggle_RecordTo API docTo specTo body'Class);

51.        --  Creates or initializes a new renderer.

53.        function Get_TypeTo API docTo body return Gtk.Gtk_TypeTo API docTo spec;

54.        --  Return the internal value associated with this widget.

56.        procedure Set_RadioTo API docTo body

57.          (Toggle : access Gtk_Cell_Renderer_Toggle_RecordTo API docTo specTo body;

58.           Radio  : Boolean);

59.        function Get_RadioTo API docTo body

60.          (Toggle : access Gtk_Cell_Renderer_Toggle_RecordTo API docTo specTo body) return Boolean;

61.        --  If Setting is True, the cell renderer renders a radio toggle

62.        --  (i.e. a toggle in a group of mutually-exclusive toggles).

63.        --  If False, it renders a check toggle (a standalone boolean option).

64.        --

65.        --  Note that this only affects the visual display, but your application is

66.        --  still responsible for enforcing the behavior, through the toggled

67.        --  signal.

69.        procedure Set_ActiveTo API docTo body

70.          (Toggle  : access Gtk_Cell_Renderer_Toggle_RecordTo API docTo specTo body;

71.           Setting : Boolean);

72.        function Get_ActiveTo API docTo body

73.          (Toggle : access Gtk_Cell_Renderer_Toggle_RecordTo API docTo specTo body) return Boolean;

74.        --  Whether the renderer is currently selected

76.        -------------

77.        -- Signals --

78.        -------------

80.        --  <signals>

81.        --  The following new signals are defined for this widget:

82.        --

83.        --  - "toggled"

84.        --    procedure Handler

85.        --     (Widget : access Gtk_Cell_Renderer_Toggle_Record'Class;

86.        --       Path : UTF8_String);

87.        --

88.        --  </signals>

90.        Signal_Toggled : constant Glib.Signal_NameTo API docTo spec := "toggled";

92.        ----------------

93.        -- Properties --

94.        ----------------

96.        --  The following properties are defined for this cell_renderer.

97.        --  <properties>

98.        --

99.        --  Name:  Activatable_Property

100.        --  Type:  Boolean

101.        --  Descr: The toggle button can be activated

102.        --

103.        --  Name:  Active_Property

104.        --  Type:  Boolean

105.        --  Descr: The toggle state of the button

106.        --

107.        --  Name:  Inconsistent_Property

108.        --  Type:  Boolean

109.        --  Descr: The inconsistent state of the button

110.        --

111.        --  Name: Indicator_Size_Property

112.        --  Type: Gint

113.        --

114.        --  Name:  Radio_Property

115.        --  Type:  Boolean

116.        --  Descr: Draw the toggle button as a radio button

117.        --

118.        --  </properties>

120.        Activatable_Property    : constant Glib.Properties.Property_BooleanTo API docTo spec;

121.        Active_Property         : constant Glib.Properties.Property_BooleanTo API docTo spec;

122.        Inconsistent_Property   : constant Glib.Properties.Property_BooleanTo API docTo spec;

123.        Indicator_Size_Property : constant Glib.Properties.Property_IntTo API docTo spec;

124.        Radio_Property          : constant Glib.Properties.Property_BooleanTo API docTo spec;

126.     private

127.        type Gtk_Cell_Renderer_Toggle_RecordTo API docTo spec is

128.          new Gtk.Cell_Renderer.Gtk_Cell_Renderer_RecordTo API docTo specTo body with null record;

130.        Activatable_PropertyTo API docTo spec : constant Glib.Properties.Property_BooleanTo API docTo spec :=

131.          Glib.Properties.BuildTo API docTo specTo body ("activatable");

132.        Active_PropertyTo API docTo spec : constant Glib.Properties.Property_BooleanTo API docTo spec :=

133.          Glib.Properties.BuildTo API docTo specTo body ("active");

134.        Inconsistent_PropertyTo API docTo spec : constant Glib.Properties.Property_BooleanTo API docTo spec :=

135.          Glib.Properties.BuildTo API docTo specTo body ("inconsistent");

136.        Indicator_Size_PropertyTo API docTo spec : constant Glib.Properties.Property_IntTo API docTo spec :=

137.          Glib.Properties.BuildTo API docTo specTo body ("indicator-size");

138.        Radio_PropertyTo API docTo spec : constant Glib.Properties.Property_BooleanTo API docTo spec :=

139.          Glib.Properties.BuildTo API docTo specTo body ("radio");

141.        pragma Import (C, Get_TypeTo API docTo spec, "gtk_cell_renderer_toggle_get_type");

142.     end Gtk.Cell_Renderer_ToggleTo API docTo specTo body;