Class Toggle
- Namespace
- Adw
- Assembly
- Adw-1.dll
public sealed class Toggle : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Toggle
- Implements
- Inherited Members
Constructors
Toggle(ToggleHandle)
protected Toggle(ToggleHandle handle)
Parameters
handleToggleHandle
Toggle(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Toggle(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Toggle(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Toggle(CreationData data)
Parameters
dataCreationData
Fields
ChildPropertyDefinition
public static readonly Property<Widget?, Toggle> ChildPropertyDefinition
Field Value
EnabledPropertyDefinition
public static readonly Property<bool, Toggle> EnabledPropertyDefinition
Field Value
IconNamePropertyDefinition
public static readonly Property<string?, Toggle> IconNamePropertyDefinition
Field Value
LabelPropertyDefinition
public static readonly Property<string?, Toggle> LabelPropertyDefinition
Field Value
NamePropertyDefinition
public static readonly Property<string?, Toggle> NamePropertyDefinition
Field Value
TooltipPropertyDefinition
public static readonly Property<string?, Toggle> TooltipPropertyDefinition
Field Value
UseUnderlinePropertyDefinition
public static readonly Property<bool, Toggle> UseUnderlinePropertyDefinition
Field Value
Properties
Child
public Widget? Child { get; set; }
Property Value
Enabled
public bool Enabled { get; set; }
Property Value
IconName
public string? IconName { get; set; }
Property Value
Label
public string? Label { get; set; }
Property Value
Name
public string? Name { get; set; }
Property Value
Tooltip
public string? Tooltip { get; set; }
Property Value
UseUnderline
public bool UseUnderline { get; set; }
Property Value
Methods
GetChild()
[Version("1.7")]
public Widget? GetChild()
Returns
GetEnabled()
[Version("1.7")]
public bool GetEnabled()
Returns
GetGType()
public static Type GetGType()
Returns
GetIconName()
[Version("1.7")]
public string? GetIconName()
Returns
GetIndex()
[Version("1.7")]
public uint GetIndex()
Returns
GetLabel()
[Version("1.7")]
public string? GetLabel()
Returns
GetName()
[Version("1.7")]
public string GetName()
Returns
GetTooltip()
[Version("1.7")]
public string GetTooltip()
Returns
GetUseUnderline()
[Version("1.7")]
public bool GetUseUnderline()
Returns
New()
[Version("1.7")]
public static Toggle New()
Returns
NewFromPointer(nint, bool)
Creates a new managed Toggle instance for a given pointer.
public static Toggle NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Toggle and sets the properties specified by the construct arguments.
public static Toggle NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetChild(Widget?)
[Version("1.7")]
public void SetChild(Widget? child)
Parameters
childWidget
SetEnabled(bool)
[Version("1.7")]
public void SetEnabled(bool enabled)
Parameters
enabledbool
SetIconName(string?)
[Version("1.7")]
public void SetIconName(string? iconName)
Parameters
iconNamestring
SetLabel(string?)
[Version("1.7")]
public void SetLabel(string? label)
Parameters
labelstring
SetName(string?)
[Version("1.7")]
public void SetName(string? name)
Parameters
namestring
SetTooltip(string)
[Version("1.7")]
public void SetTooltip(string tooltip)
Parameters
tooltipstring
SetUseUnderline(bool)
[Version("1.7")]
public void SetUseUnderline(bool useUnderline)
Parameters
useUnderlinebool