Table of Contents

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

ptr IntPtr
ownedRef bool

Fields

ActivePropertyDefinition

public static readonly Property<bool, ToggleButton> ActivePropertyDefinition

Field Value

Property<bool, ToggleButton>

GroupPropertyDefinition

public static readonly Property<ToggleButton?, ToggleButton> GroupPropertyDefinition

Field Value

Property<ToggleButton, ToggleButton>

ToggledSignal

Signal Descriptor for OnToggled.

public static readonly Signal<ToggleButton> ToggledSignal

Field Value

Signal<ToggleButton>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

ActionName

public string? ActionName { get; set; }

Property Value

string

Active

public bool Active { get; set; }

Property Value

bool

Group

public ToggleButton? Group { set; }

Property Value

ToggleButton

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetActionName()

public string? GetActionName()

Returns

string

GetActionTargetValue()

public Variant? GetActionTargetValue()

Returns

Variant

GetActive()

public bool GetActive()

Returns

bool

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

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

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

New()

public static ToggleButton New()

Returns

ToggleButton

NewWithLabel(string)

public static ToggleButton NewWithLabel(string label)

Parameters

label string

Returns

ToggleButton

NewWithMnemonic(string)

public static ToggleButton NewWithMnemonic(string label)

Parameters

label string

Returns

ToggleButton

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 Accessible
nextSibling 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

Event Type

SignalHandler<ToggleButton>