Class Container

Namespace
Forma
Assembly
Forma.dll

Base for controls that measure and arrange their visible children.

public class Container : Control, IAddChild<Control>, IAddChild, INotifyPropertyChanged
Inheritance
Container
Implements
Derived
Inherited Members

Constructors

Container()

public Container()

Methods

FitChildInRect(Control, Vector2, Vector2, bool)

Sizes and positions a child within a rectangle honoring its size flags, matching Godot's Container::fit_child_in_rect. A non-Fill axis sizes the child to its own minimum and aligns it within the span; horizontal (X) alignment flips under RTL, vertical (Y) never does, matching Godot exactly. This port has no desired-size/maximum-size layer, so a non-Fill axis always resolves to the child's plain minimum size.

protected static void FitChildInRect(Control child, Vector2 rectPosition, Vector2 rectSize, bool rtl)

Parameters

child Control
rectPosition Vector2
rectSize Vector2
rtl bool