Class Switch
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class Switch : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Actionable, Buildable, ConstraintTarget, IHandle, GTypeProvider
- Inheritance
-
Switch
- Implements
- Inherited Members
Constructors
Switch()
public Switch()
Switch(params ConstructArgument[])
protected Switch(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
Switch(IntPtr, bool)
protected Switch(IntPtr ptr, bool ownedRef)
Parameters
Fields
ActivateSignal
Signal Descriptor for OnActivate.
public static readonly Signal<Switch> ActivateSignal
Field Value
ActivePropertyDefinition
public static readonly Property<bool, Switch> ActivePropertyDefinition
Field Value
StatePropertyDefinition
public static readonly Property<bool, Switch> StatePropertyDefinition
Field Value
StateSetSignal
Signal Descriptor for OnStateSet.
public static readonly ReturningSignal<Switch, Switch.StateSetSignalArgs, bool> StateSetSignal
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
ActionName
public string? ActionName { get; set; }
Property Value
Active
public bool Active { get; set; }
Property Value
State
public bool State { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
stringpriority
AccessibleAnnouncementPriority
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetActionName()
public string? GetActionName()
Returns
GetActionTargetValue()
public Variant? GetActionTargetValue()
Returns
GetActive()
public bool GetActive()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
GetBounds(out int, out int, out int, out int)
[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)
Parameters
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
GetState()
public bool GetState()
Returns
New()
public static Switch New()
Returns
ResetProperty(AccessibleProperty)
public void ResetProperty(AccessibleProperty property)
Parameters
property
AccessibleProperty
ResetRelation(AccessibleRelation)
public void ResetRelation(AccessibleRelation relation)
Parameters
relation
AccessibleRelation
ResetState(AccessibleState)
public void ResetState(AccessibleState state)
Parameters
state
AccessibleState
SetAccessibleParent(Accessible?, Accessible?)
[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)
Parameters
parent
AccessiblenextSibling
Accessible
SetActionName(string?)
public void SetActionName(string? actionName)
Parameters
actionName
string
SetActionTargetValue(Variant?)
public void SetActionTargetValue(Variant? targetValue)
Parameters
targetValue
Variant
SetActive(bool)
public void SetActive(bool isActive)
Parameters
isActive
bool
SetDetailedActionName(string)
public void SetDetailedActionName(string detailedActionName)
Parameters
detailedActionName
string
SetState(bool)
public void SetState(bool state)
Parameters
state
bool
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSibling
Accessible
Events
OnActivate
public event SignalHandler<Switch> OnActivate
Event Type
OnStateSet
public event ReturningSignalHandler<Switch, Switch.StateSetSignalArgs, bool> OnStateSet