C# Класс Gearset.UI.LayoutBox

A box.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DrawBorderLines ( Color color ) : void

Helper methods, draws the border of the box. Must be called every frame.

DrawCrossLines ( Color color ) : void

Helper methods, draws the border of the box. Must be called every frame.

DrawCrossLines ( Color color, Gearset.Components.InternalLineDrawer lineDrawer ) : void
GetScreenPosition ( ) : Vector2
LayoutBox ( Vector2 position ) : System
LayoutBox ( Vector2 position, Vector2 size ) : System
WorldToLocal ( Vector2 point ) : Vector2

Returns the passed world point in local point of this LayoutBox.

Защищенные методы

Метод Описание
OnPositionChanged ( ) : void
OnSizeChanged ( ) : void

Приватные методы

Метод Описание
Contains ( Vector2 point ) : bool

Returns true if the passed point is contained in this box.

DrawBorderLines ( Color color, Gearset.Components.InternalLineDrawer lineDrawer ) : void

Helper methods, draws the border of the box. Must be called every frame. TODO: Move this to a UI debug drawer or something similar

RaiseClick ( Vector2 position ) : void

Only to be called by the MouseRouter

RaiseDragged ( Vector2 delta ) : void

Only to be called by the MouseRouter

RaiseMouseDown ( Vector2 position ) : void

Only to be called by the MouseRouter

RaiseMouseUp ( Vector2 position ) : void

Only to be called by the MouseRouter

Описание методов

DrawBorderLines() публичный Метод

Helper methods, draws the border of the box. Must be called every frame.
public DrawBorderLines ( Color color ) : void
color Color
Результат void

DrawCrossLines() публичный Метод

Helper methods, draws the border of the box. Must be called every frame.
public DrawCrossLines ( Color color ) : void
color Color
Результат void

DrawCrossLines() публичный Метод

public DrawCrossLines ( Color color, Gearset.Components.InternalLineDrawer lineDrawer ) : void
color Color
lineDrawer Gearset.Components.InternalLineDrawer
Результат void

GetScreenPosition() публичный Метод

public GetScreenPosition ( ) : Vector2
Результат Vector2

LayoutBox() публичный Метод

public LayoutBox ( Vector2 position ) : System
position Vector2
Результат System

LayoutBox() публичный Метод

public LayoutBox ( Vector2 position, Vector2 size ) : System
position Vector2
size Vector2
Результат System

OnPositionChanged() защищенный Метод

protected OnPositionChanged ( ) : void
Результат void

OnSizeChanged() защищенный Метод

protected OnSizeChanged ( ) : void
Результат void

WorldToLocal() публичный Метод

Returns the passed world point in local point of this LayoutBox.
public WorldToLocal ( Vector2 point ) : Vector2
point Vector2
Результат Vector2