FirstModulAR 0.1.0
Loading...
Searching...
No Matches
FMAR.UI.Widgets.TabbedDisplaySlot Class Reference

A slot in a tabbed display. More...

Inheritance diagram for FMAR.UI.Widgets.TabbedDisplaySlot:
FMAR.UI.Widgets.GridSlot FMAR.UI.Widgets.WidgetContainer

Public Member Functions

void SetTabbedDisplay (TabbedDisplay tabbedDisplay)
 Sets the tabbed display.
 
override WidgetContainer Init (Widget widget, Vector2 size, bool disableCollidersOverride=false, float scaleFactor=-1, bool disableInitEvent=false)
 Initializes the tabbed display slot.
 
void ForceReplace (Widget widget)
 Forces a replacement of the widget in the tabbed display slot.
 
override void DetachWidget ()
 Detaches the current widget from the tabbed display.
 
- Public Member Functions inherited from FMAR.UI.Widgets.GridSlot
- Public Member Functions inherited from FMAR.UI.Widgets.WidgetContainer
void UpdateSize (Vector2 size)
 Sets the size of the widget container.
 
void ToggleLockedState ()
 Toggles the locked state of the widget container, which determines if the widget can be removed or added.
 
bool TryMove ()
 Tries to move the widget.
 

Additional Inherited Members

- Public Attributes inherited from FMAR.UI.Widgets.GridSlot
bool acceptsMany
 
- Protected Member Functions inherited from FMAR.UI.Widgets.WidgetContainer
virtual void Awake ()
 
void CreateBorder ()
 
virtual void Update ()
 
- Protected Attributes inherited from FMAR.UI.Widgets.WidgetContainer
Widget widget
 
Vector2 size = Vector2.one
 
Material borderMaterial
 
LineRenderer border
 
bool locked
 
- Properties inherited from FMAR.UI.Widgets.WidgetContainer
Widget Widget [get]
 
Vector2 Size [get]
 
float ScaleFactor [get]
 
LineRenderer Border [get]
 
bool HoverLeft [get]
 
bool HoverRight [get]
 
bool Hover [get]
 
bool Locked [get]
 
- Events inherited from FMAR.UI.Widgets.GridSlot
static Action< GridSlotOnGridSlotInit
 Event triggered when the grid slot is initialized.
 
- Events inherited from FMAR.UI.Widgets.WidgetContainer
static Action< WidgetContainerOnInit
 

Detailed Description

A slot in a tabbed display.

Member Function Documentation

◆ DetachWidget()

override void FMAR.UI.Widgets.TabbedDisplaySlot.DetachWidget ( )
inlinevirtual

Detaches the current widget from the tabbed display.

Reimplemented from FMAR.UI.Widgets.GridSlot.

◆ ForceReplace()

void FMAR.UI.Widgets.TabbedDisplaySlot.ForceReplace ( Widget widget)
inline

Forces a replacement of the widget in the tabbed display slot.

Parameters
widgetThe widget to place into the tabbed display slot.

◆ Init()

override WidgetContainer FMAR.UI.Widgets.TabbedDisplaySlot.Init ( Widget widget,
Vector2 size,
bool disableCollidersOverride = false,
float scaleFactor = -1,
bool disableInitEvent = false )
inlinevirtual

Initializes the tabbed display slot.

Parameters
widgetThe widget to place into the tabbed display slot.
sizeThe size of the tabbed display slot.
disableCollidersOverrideWhether to disable the colliders.
scaleFactorThe scale factor to use.
disableInitEventWhether to disable the init event.
Returns
This tabbed display slot, as a WidgetContainer.

Reimplemented from FMAR.UI.Widgets.GridSlot.

◆ SetTabbedDisplay()

void FMAR.UI.Widgets.TabbedDisplaySlot.SetTabbedDisplay ( TabbedDisplay tabbedDisplay)
inline

Sets the tabbed display.

Parameters
tabbedDisplayThe tabbed display to set.

The documentation for this class was generated from the following file: