C# 클래스 Gearset.UI.LayoutBox

A box.
파일 보기 프로젝트 열기: juancampa/Gearset 1 사용 예제들

공개 메소드들

메소드 설명
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