Package ch.bailu.gtk.adw
Klasse Toggle
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.adw.Toggle
- Alle implementierten Schnittstellen:
PointerInterface
A toggle within [class@ToggleGroup].
`AdwToggle` can optionally have a name, set with [property@Toggle:name].
If the name is set, [property@ToggleGroup:active-name] can be used to access
toggles instead of index.
`AdwToggle` can optionally have a name, set with [property@Toggle:name].
If the name is set, [property@ToggleGroup:active-name] can be used to access
toggles instead of index.
https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.Toggle.html
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetChild()
Gets the child widget of @self.static ClassHandler
boolean
Gets whether @self is enabled.Gets the icon name of @self.int
getIndex()
Gets the index of @self within its toggle group.static int
getLabel()
Gets the label of @self.getName()
Gets the name of @self.static long
static TypeSystem.TypeSize
Gets the tooltip of @self.static long
static TypeSystem.TypeSize
boolean
Gets whether @self uses underlines.void
Sets the child of @self to @child.void
setEnabled
(boolean enabled) Sets whether @self is enabled.void
setIconName
(Str icon_name) Sets the icon name of @self to @icon_name.void
setIconName
(String icon_name) Sets the icon name of @self to @icon_name.void
Sets the label of @self to @label.void
Sets the label of @self to @label.void
Sets the name of @self to @name.void
Sets the name of @self to @name.void
setTooltip
(Str tooltip) Sets the tooltip of @self to @tooltip.void
setTooltip
(String tooltip) Sets the tooltip of @self to @tooltip.void
setUseUnderline
(boolean use_underline) Sets whether an embedded underline in the label indicates a mnemonic.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
Toggle
-
Toggle
public Toggle()Creates a new `AdwToggle`.
-
-
Methodendetails
-
getClassHandler
-
getChild
Gets the child widget of @self.- Gibt zurück:
- the toggle child
-
getEnabled
public boolean getEnabled()Gets whether @self is enabled.- Gibt zurück:
- whether the toggle is enabled
-
getIconName
Gets the icon name of @self.- Gibt zurück:
- the toggle icon name
-
getIndex
public int getIndex()Gets the index of @self within its toggle group.- Gibt zurück:
- the index, or `GTK_INVALID_LIST_POSITION` if it's not in a group
-
getLabel
Gets the label of @self.- Gibt zurück:
- the toggle label
-
getName
Gets the name of @self.- Gibt zurück:
- the toggle name
-
getTooltip
Gets the tooltip of @self.- Gibt zurück:
- the toggle tooltip
-
getUseUnderline
public boolean getUseUnderline()Gets whether @self uses underlines.- Gibt zurück:
- whether the toggle uses underlines
-
setChild
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.- Parameter:
child
- a child widget
-
setEnabled
public void setEnabled(boolean enabled) Sets whether @self is enabled.- Parameter:
enabled
- whether the toggle should be enbled
-
setIconName
Sets the icon name of @self to @icon_name.
The icon will be displayed alone or next to the label, unless
[property@Toggle:child] is set.- Parameter:
icon_name
- the icon name
-
setIconName
Sets the icon name of @self to @icon_name.
The icon will be displayed alone or next to the label, unless
[property@Toggle:child] is set.- Parameter:
icon_name
- the icon name
-
setLabel
Sets the label of @self to @label.
The label will be displayed alone or next to the icon, unless
[property@Toggle:child] is set, but will still be read out by the screen
reader.- Parameter:
label
- a label
-
setLabel
Sets the label of @self to @label.
The label will be displayed alone or next to the icon, unless
[property@Toggle:child] is set, but will still be read out by the screen
reader.- Parameter:
label
- a label
-
setName
Sets the name of @self to @name.
Allows accessing @self by its name instead of index.
See [property@ToggleGroup:active-name].- Parameter:
name
- a name
-
setName
Sets the name of @self to @name.
Allows accessing @self by its name instead of index.
See [property@ToggleGroup:active-name].- Parameter:
name
- a name
-
setTooltip
Sets the tooltip of @self to @tooltip.
@tooltip can be marked up with the Pango text markup language.- Parameter:
tooltip
- the tooltip
-
setTooltip
Sets the tooltip of @self to @tooltip.
@tooltip can be marked up with the Pango text markup language.- Parameter:
tooltip
- the tooltip
-
setUseUnderline
public void setUseUnderline(boolean use_underline) Sets whether an embedded underline in the label indicates a mnemonic.
See [property@Toggle:label].- Parameter:
use_underline
- whether an underline in the label indicates a mnemonic
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-