IUIComponent Interface
Definition
Namespace: Brine2D.UI
Base interface for all UI components.
Derived
↳ UIButton
↳ UICheckbox
↳ UIDialog
↳ UIDropdown
↳ UIImage
↳ UILabel
↳ UIPanel
↳ UIProgressBar
↳ UIRadioButton
↳ UIScrollView
↳ UISlider
↳ UITabContainer
↳ UITextInput
| Properties | |
|---|---|
| Enabled | Whether this component is enabled \(can receive input\). |
| Position | Position in screen space \(pixels\). |
| Size | Size in pixels. |
| Tooltip | Optional tooltip for this component. |
| Visible | Whether this component is visible. |
| Methods | |
|---|---|
| Contains\(Vector2\) | Check if a screen position is within this component's bounds. |
| Render\(IRenderer\) | Render the component. |
| Update\(float\) | Update component logic \(animations, hover states, etc\.\). |