Class ToggleButton
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class ToggleButton : Button, IObject, INotifyPropertyChanged, IDisposable, Accessible, Actionable, Buildable, ConstraintTarget, IHandle, GTypeProvider
- Inheritance
-
ToggleButton
- Implements
- Inherited Members
Constructors
ToggleButton()
public ToggleButton()
ToggleButton(params ConstructArgument[])
protected ToggleButton(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
ToggleButton(IntPtr, bool)
protected ToggleButton(IntPtr ptr, bool ownedRef)
Parameters
Fields
ActivePropertyDefinition
public static readonly Property<bool, ToggleButton> ActivePropertyDefinition
Field Value
GroupPropertyDefinition
public static readonly Property<ToggleButton?, ToggleButton> GroupPropertyDefinition
Field Value
ToggledSignal
Signal Descriptor for OnToggled.
public static readonly Signal<ToggleButton> ToggledSignal
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
Group
public ToggleButton? Group { 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
New()
public static ToggleButton New()
Returns
NewWithLabel(string)
public static ToggleButton NewWithLabel(string label)
Parameters
label
string
Returns
NewWithMnemonic(string)
public static ToggleButton NewWithMnemonic(string label)
Parameters
label
string
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
SetGroup(ToggleButton?)
public void SetGroup(ToggleButton? group)
Parameters
group
ToggleButton
Toggled()
public void Toggled()
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSibling
Accessible
Events
OnToggled
public event SignalHandler<ToggleButton> OnToggled