class
GUITabButton
Specialization of a GUIToggle element used for displaying tabs in a GUITabbedTitleBar.
Aside from being toggleable these buttons also track drag and drop operations.
Public
Methods
staticGetGuiTypeName
Returns type name of the GUI element used for finding GUI element styles.
GetIndex
Returns the unique index for this tab button.
SetDraggedStateInternal
Changes the button state to dragged or not dragged, resulting primarily in a visual change.
staticCreate
Creates a new GUI element.
- contents
- Structure describing the contents of the GUI element to create.
- styleClass
- Style class that will be used for determining GUI element visuals from the current style sheet. If no class is provided, default style is determined based on GUI element type.
- options
- Additional options that control GUI element size and position. This will override options set in the style sheet.
Fields
OnDragged
Triggered when the user starts dragging the tab button.
Reported parameters are the unique index of the tab and pointer position relative to parent GUIWidget.
Internal
Constructors
GUITabButton
Protected
Methods
SetIsToggled
Checks or unchecks the toggle.
DoOnMouseEvent
Called when a mouse event is received on any GUI element the mouse is interacting with.
Return true if you have processed the event and don't want other elements to process it.