Toc Gallery Index Tree Gtk.Cell_Renderer_Toggle

Hierarchy

Description

Gtk_Cell_Renderer_Toggle renders a toggle button in a cell. The button is drawn as a radio- or checkbutton, depending on the radio property. When activated, it emits the toggled signal.

Types

Subprograms

  • procedure Gtk_New (Widget : out Gtk_Cell_Renderer_Toggle);
    procedure Initialize (Widget : access Gtk_Cell_Renderer_Toggle_Record'Class);
    Creates or initializes a new renderer.
  • function Get_Type return Gtk.Gtk_Type;
    Return the internal value associated with this widget.
  • procedure Set_Radio (Toggle : access Gtk_Cell_Renderer_Toggle_Record; Radio : Boolean);
    function Get_Radio (Toggle : access Gtk_Cell_Renderer_Toggle_Record) return Boolean;
    If Setting is True, the cell renderer renders a radio toggle (i.e. a toggle in a group of mutually-exclusive toggles). If False, it renders a check toggle (a standalone boolean option).

    Note that this only affects the visual display, but your application is still responsible for enforcing the behavior, through the toggled signal.

  • procedure Set_Active (Toggle : access Gtk_Cell_Renderer_Toggle_Record; Setting : Boolean);
    function Get_Active (Toggle : access Gtk_Cell_Renderer_Toggle_Record) return Boolean;
    Whether the renderer is currently selected

Signals

  • toggled
    procedure Handler (Widget : access Gtk_Cell_Renderer_Toggle_Record'Class; Path : UTF8_String);

Properties

  • Activatable_Property
    Boolean
    The toggle button can be activated
  • Active_Property
    Boolean
    The toggle state of the button
  • Inconsistent_Property
    Boolean
    The inconsistent state of the button
  • Indicator_Size_Property
    Gint
  • Radio_Property
    Boolean
    Draw the toggle button as a radio button

Alphabetical Index