Class FoldableContainer

Namespace
Forma
Assembly
Forma.dll

Collapsible vertically arranged section used by inspector-style interfaces.

public sealed class FoldableContainer : TemplatedControl, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
Inheritance
FoldableContainer
Implements
Inherited Members

Constructors

FoldableContainer()

public FoldableContainer()

Properties

AccessibilityActions

public override AccessibilityActions AccessibilityActions { get; }

Property Value

AccessibilityActions

AccessibilityName

public override string AccessibilityName { get; }

Property Value

string

AccessibilityRole

public override AccessibilityRole AccessibilityRole { get; }

Property Value

AccessibilityRole

AccessibilityStates

public override AccessibilityStates AccessibilityStates { get; }

Property Value

AccessibilityStates

FoldableGroup

Assigns the accordion group this container participates in, matching Godot's set_foldable_group.

public FoldableGroup FoldableGroup { get; set; }

Property Value

FoldableGroup

Folded

public bool Folded { get; set; }

Property Value

bool

HeaderHeight

public float HeaderHeight { get; set; }

Property Value

float

Title

public string Title { get; set; }

Property Value

string

Methods

ArrangeChildren()

protected override void ArrangeChildren()

Expand()

public void Expand()

Fold()

public void Fold()

GetFoldableGroup()

public FoldableGroup GetFoldableGroup()

Returns

FoldableGroup

GetMinimumSize()

public override Vector2 GetMinimumSize()

Returns

Vector2

PointerPressed(Point)

A pointer press landed on this control, in global coordinates.

Protected as well as internal so a control defined outside this assembly can take part in pointer input. Without that, an app hosting its own drawing surface has to read raw mouse state instead, which bypasses hit-testing, modal gating and the injection side-channel — so such a surface cannot be driven by a test at all.

protected override void PointerPressed(Point point)

Parameters

point Point

SetFoldableGroup(FoldableGroup)

public void SetFoldableGroup(FoldableGroup group)

Parameters

group FoldableGroup

Events

FoldedChanged

public event Action<FoldableContainer, bool> FoldedChanged

Event Type

Action<FoldableContainer, bool>