It derives from <GObject>.
A toggle within ToggleGroup.
<AdwToggle> can optionally have a name, set with
Toggle:name. If the name is set, ToggleGroup:active-name
can be used to access toggles instead of index.
The toggle child.
When the child is set, icon and label are not displayed.
It’s recommended to still set the label, as it can still be used by the screen reader.
Its value is a <GtkWidget>, or #f.
Set it with (set! (toggle:child self) value).
The description of the toggle.
The description will be read out when using screen reader. If not set,
Toggle:tooltip will be used instead.
See Gtk.AccessibleProperty.description.
Its value is a string, or #f.
Set it with (set! (toggle:description self) value).
Whether this toggle is enabled.
Its value is a boolean.
Set it with (set! (toggle:enabled self) value).
The toggle icon name.
The icon will be displayed alone or next to the label, unless
Toggle:child is set.
Its value is a string, or #f.
Set it with (set! (toggle:icon-name self) value).
The toggle label.
The label will be displayed alone or next to the icon, unless
Toggle:child is set, but will still be read out by the screen
reader.
Its value is a string, or #f.
Set it with (set! (toggle:label self) value).
The toggle name.
Allows accessing the toggle by its name instead of index.
See ToggleGroup:active-name.
Its value is a string, or #f.
Set it with (set! (toggle:name self) value).
The tooltip of the toggle.
The tooltip can be marked up with the Pango text markup language.
Tooltip text will also be used as accessible description. Use
Toggle:description to set it separately.
Its value is a string, or #f.
Set it with (set! (toggle:tooltip self) value).
Whether an embedded underline in the label indicates a mnemonic.
See Toggle:label.
Its value is a boolean.
Set it with (set! (toggle:use-underline self) value).
Gets the child widget of self.
Passed: a <AdwToggle>.
a toggle
Returned: a <GtkWidget>, or #f.
the toggle child
Gets the description of self.
Passed: a <AdwToggle>.
a toggle
Returned: a string.
the toggle description
Gets whether self is enabled.
Passed: a <AdwToggle>.
a toggle
Returned: a boolean.
whether the toggle is enabled
Gets the icon name of self.
Passed: a <AdwToggle>.
a toggle
Returned: a string, or #f.
the toggle icon name
Gets the index of self within its toggle group.
Passed: a <AdwToggle>.
a toggle
Returned: an unsigned 32-bit integer.
the index, or Gtk.INVALID_LIST_POSITION if it’s not in a group
Gets the label of self.
Passed: a <AdwToggle>.
a toggle
Returned: a string, or #f.
the toggle label
Gets the name of self.
Passed: a <AdwToggle>.
a toggle
Returned: a string.
the toggle name
Gets the tooltip of self.
Passed: a <AdwToggle>.
a toggle
Returned: a string.
the toggle tooltip
Gets whether self uses underlines.
Passed: a <AdwToggle>.
a toggle
Returned: a boolean.
whether the toggle uses underlines
Creates a new <AdwToggle>.
Returned: a <AdwToggle>.
the newly created <AdwToggle>
Sets the child of self to child.
When the child is set, icon and label are not displayed.
It’s recommended to still set the label, as it can still be used by the screen reader.
Passed: a <AdwToggle>.
a toggle
Passed, or left out: a <GtkWidget>, or
#f.
a child widget
Sets the description of self to description.
The description will be read out when using screen reader. If not set,
Toggle:tooltip will be used instead.
See Gtk.AccessibleProperty.description.
Passed: a <AdwToggle>.
a toggle
Passed: a string.
the description
Sets whether self is enabled.
Passed: a <AdwToggle>.
a toggle
Passed: a boolean.
whether the toggle should be enbled
Sets the icon name of self to icon-name.
The icon will be displayed alone or next to the label, unless
Toggle:child is set.
Passed: a <AdwToggle>.
a toggle
Passed, or left out: a string, or #f.
the icon name
Sets the label of self to label.
The label will be displayed alone or next to the icon, unless
Toggle:child is set, but will still be read out by the screen
reader.
Passed: a <AdwToggle>.
a toggle
Passed, or left out: a string, or #f.
a label
Sets the name of self to name.
Allows accessing self by its name instead of index.
See ToggleGroup:active-name.
Passed: a <AdwToggle>.
a toggle
Passed, or left out: a string, or #f.
a name
Sets the tooltip of self to tooltip.
tooltip can be marked up with the Pango text markup language.
Tooltip text will also be used as accessible description. Use
Toggle:description to set it separately.
Passed: a <AdwToggle>.
a toggle
Passed: a string.
the tooltip
Sets whether an embedded underline in the label indicates a mnemonic.
See Toggle:label.
Passed: a <AdwToggle>.
a toggle
Passed: a boolean.
whether an underline in the label indicates a mnemonic