UITabContainer Class
Tab container UI component for organizing content into tabs.
public class UITabContainer : Brine2D.UI.IUIComponent
Inheritance System.Object → UITabContainer
Implements IUIComponent
| Properties | |
|---|---|
| ActiveTabColor | Active tab color. |
| BorderColor | Border color. |
| ContentBackgroundColor | Content area background color. |
| HoverTabColor | Hover tab color. |
| SelectedTabIndex | Currently selected tab index. |
| TabBackgroundColor | Background color for tabs. |
| TabCount | Gets the number of tabs. |
| TabHeight | Height of the tab bar. |
| TextColor | Text color. |
| Methods | |
|---|---|
| AddComponentToTab(int, IUIComponent) | Adds a component to the specified tab. |
| AddComponentToTab(string, IUIComponent) | Adds a component to the specified tab by title. |
| AddTab(string) | Adds a new tab with the given title. |
| GetTabComponents(int) | Gets all components in the specified tab. |
| GetTabTitle(int) | Gets the title of the specified tab. |
| RemoveComponentFromTab(int, IUIComponent) | Removes a component from the specified tab. |
| SelectTab(Vector2) | Called by UICanvas when a tab is clicked. |
| UpdateHover(Vector2) | Called by UICanvas to update hover state. |
| Events | |
|---|---|
| OnTabChanged | Event fired when the selected tab changes. |