Skip to content

UIDialog.AddChild(IUIComponent) Method

Definition

Namespace: Brine2D.UI

Adds an arbitrary UI component to the dialog's content area. Child positions are dialog-relative: (0, 0) is the top-left corner of the dialog. The component is offset by the dialog's current Brine2D.UI.UIDialog.Position during rendering and input dispatch, so it moves with the dialog when it is dragged or re-centered.

C#
public void AddChild(Brine2D.UI.IUIComponent child);

Parameters

child IUIComponent