Class ButtonGroup

Namespace
Forma
Assembly
Forma.dll

Maintains Godot-style mutually exclusive toggle buttons.

public sealed class ButtonGroup
Inheritance
ButtonGroup
Inherited Members

Constructors

ButtonGroup()

public ButtonGroup()

Properties

AllowUnpress

Whether the selected button may be unpressed, leaving no selection.

public bool AllowUnpress { get; set; }

Property Value

bool

Buttons

public IReadOnlyList<BaseButton> Buttons { get; }

Property Value

IReadOnlyList<BaseButton>

PressedButton

public BaseButton PressedButton { get; }

Property Value

BaseButton

Events

Pressed

Raised when a member becomes the active button.

public event Action<ButtonGroup, BaseButton> Pressed

Event Type

Action<ButtonGroup, BaseButton>