Class FoldableGroup

Namespace
Forma
Assembly
Forma.dll

Enforces single-expansion accordion behavior across a set of FoldableContainer instances, matching Godot's FoldableGroup resource.

public sealed class FoldableGroup
Inheritance
FoldableGroup
Inherited Members

Constructors

FoldableGroup()

public FoldableGroup()

Properties

AllowFoldingAll

When false, folding the group's only expanded container is refused, matching Godot's allow_folding_all.

public bool AllowFoldingAll { get; set; }

Property Value

bool

Methods

GetContainers()

public IReadOnlyList<FoldableContainer> GetContainers()

Returns

IReadOnlyList<FoldableContainer>

GetExpandedContainer()

Returns the group's single expanded container, or null when all members are folded.

public FoldableContainer GetExpandedContainer()

Returns

FoldableContainer

IsAllowFoldingAll()

public bool IsAllowFoldingAll()

Returns

bool

SetAllowFoldingAll(bool)

public void SetAllowFoldingAll(bool enabled)

Parameters

enabled bool

Events

Expanded

Raised after a member container expands and its siblings are folded, matching Godot's FoldableGroup.expanded signal.

public event Action<FoldableGroup, FoldableContainer> Expanded

Event Type

Action<FoldableGroup, FoldableContainer>