API ReferenceSandbox.UI
Tabclass
A selectable tab belonging to a `Sandbox.UI.TabBar`.
Constructors1
Showing 1 constructors
public Tab()
No results match this filter.
Methods10
Showing 10 methods
public virtual void OnButtonTyped(Sandbox.UI.ButtonEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | ButtonEvent | — |
Returns:
void—protected virtual void OnClick(Sandbox.UI.MousePanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MousePanelEvent | — |
Returns:
void—public virtual void OnDeleted()
Returns:
void—protected virtual void OnDrag(Sandbox.UI.DragEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | DragEvent | — |
Returns:
void—protected virtual void OnDragCancel(Sandbox.UI.DragEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | DragEvent | — |
Returns:
void—protected virtual void OnDragEnd(Sandbox.UI.DragEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | DragEvent | — |
Returns:
void—protected virtual void OnDragStart(Sandbox.UI.DragEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | DragEvent | — |
Returns:
void—protected virtual void OnMiddleClick(Sandbox.UI.MousePanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MousePanelEvent | — |
Returns:
void—protected virtual void OnMouseDown(Sandbox.UI.MousePanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MousePanelEvent | — |
Returns:
void—protected virtual void OnRightClick(Sandbox.UI.MousePanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MousePanelEvent | — |
Returns:
void—No results match this filter.
Properties10
Showing 10 properties
public System.Action`1<Sandbox.UI.Menu> Sandbox.UI.Tab.BuildContextMenu { get; set; }
Populate the right-click menu. A Close option is supplied for closable tabs.
public bool Sandbox.UI.Tab.CanClose { get; set; }
Whether to show the close button and allow middle-click closing.
Returns:
bool—public System.Nullable`1<int> Sandbox.UI.Tab.Count { get; set; }
Optional count badge. Null hides the badge; zero is displayed.
Returns:
Nullable<int>—public Sandbox.Texture Sandbox.UI.Tab.IconTexture { get; set; }
Optional texture, taking precedence over the icon. The caller owns the texture.
No results match this filter.