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
Methods
GetContainers()
public IReadOnlyList<FoldableContainer> GetContainers()
Returns
GetExpandedContainer()
Returns the group's single expanded container, or null when all members are folded.
public FoldableContainer GetExpandedContainer()
Returns
IsAllowFoldingAll()
public bool IsAllowFoldingAll()
Returns
SetAllowFoldingAll(bool)
public void SetAllowFoldingAll(bool enabled)
Parameters
enabledbool
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