Table of Contents

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

Button

fullscreenButton

This title bar's fullscreen button.

public Button fullscreenButton { get; }

Property Value

Button

Methods

OnBeginDrag(Vector2)

Restores a Window back from fullscreen when dragged with lmb.

protected override void OnBeginDrag(Vector2 position)

Parameters

position Vector2

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

position Vector2

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

theme Theme

The theme to apply