Skip to content

IAnchoredUIComponent Interface

Definition

Namespace: Brine2D.UI

Extension interface for UI components that position themselves relative to a screen anchor. Components that do not implement this are treated as Brine2D.UI.UIAnchor.TopLeft with no offset.

C#
public interface IAnchoredUIComponent : Brine2D.UI.IUIComponent

Derived
↳ UIButton
↳ UICheckbox
↳ UIDropdown
↳ UIDropTarget
↳ UIGrid
↳ UIImage
↳ UILabel
↳ UIMenuBar
↳ UIPanel
↳ UIProgressBar
↳ UIRadioButton
↳ UIRichTextLabel
↳ UIScrollView
↳ UISlider
↳ UISpinBox
↳ UIStackPanel
↳ UITabContainer
↳ UITextArea
↳ UITextInput
↳ UITreeView
↳ UIVirtualListBase

Implements IUIComponent

Properties
Anchor The screen anchor point this component is positioned relative to.
AnchorOffset Pixel offset from the resolved anchor point.