Class TitleBar
- Namespace
- UILib
- Assembly
- UILib.dll
The title bar which is placed at the top of all Windows.
public class TitleBar : UIComponent
- Inheritance
-
TitleBar
- Inherited Members
Properties
closeButton
This title bar's close button.
public Button closeButton { get; }
Property Value
fullscreenButton
This title bar's fullscreen button.
public Button fullscreenButton { get; }
Property Value
Methods
OnBeginDrag(Vector2)
Restores a Window back from fullscreen when dragged with lmb.
protected override void OnBeginDrag(Vector2 position)
Parameters
positionVector2
OnDoubleClick()
Makes a Window fullscreen on double click.
protected override void OnDoubleClick()
OnDrag(Vector2)
Restores a Window back from fullscreen when dragged with lmb.
protected override void OnDrag(Vector2 position)
Parameters
positionVector2
SetThisTheme(Theme)
Allows setting the theme of this title bar.
This handles setting the theme specifically for this component, not its children. It's protected to allow overriding if you were to create a subclass.
In most cases, you'd probably want to use SetTheme(Theme) instead.
protected override void SetThisTheme(Theme theme)
Parameters
themeThemeThe theme to apply