C# 클래스 FlatRedBall.Gui.TimeLine

상속: NS004.c000068
파일 보기 프로젝트 열기: vchelaru/FlatRedBall 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateScrollBar void
DestroyScrollBar void
DrawSelfAndChildren void
FixStartAndCurrentValue void
GetNumberOfVerticesToDraw int
PositionBarDrag void
ScrollBarChanged void
SetBarToValue void
UpdateIncrementValueCache void
UpdatePositionBarVisibility void
UpdatePositionBarYValues void
UpdateScrollBarToRange void

공개 메소드들

메소드 설명
AutoCalculateVerticalLineSpacing ( ) : void

Automatically sets the VerticalBarIncrement and SmallVerticalBarIncrement based off of the ValueWidth property.

CallOnGUIChange ( ) : void

Raises the events which raise when the GUI changes.

ClearEvents ( ) : void

Clears all events.

FixBar ( ) : void

Keeps the position bar within the visible range of the TimeLine.

TestCollision ( Cursor cursor ) : void
TimeLine ( Cursor cursor ) : System

Creates a new TimeLine;

TimeLine ( GuiSkin guiSkin, Cursor cursor ) : System

Creates a new TimeLine using the argument GuiSkin to control the visible representation.

보호된 메소드들

메소드 설명
ClickEvent ( Window callingWindow ) : void

Method raised when the user clicks on the Window. This moves the position bar to the appropriate location.

GetPosOnBar ( double valueToGet ) : double

Converts an absolute value to visible position on the bar

PositionToValueAbsolute ( float pos ) : double

Returns the precision-adjusted value of the time line given an absolute position.

PositionToValueRelative ( float worldUnitRelativeX ) : double

Converts the argument relative-to-TimeLine argument to a value that it represents.

This mehod is used to convert the position bar's relative X to an actual value.

ValueToPositionRelative ( double value ) : float

Converts the value to the corresponding relative X position on the timeline.

비공개 메소드들

메소드 설명
CreateScrollBar ( ) : void
DestroyScrollBar ( ) : void
DrawSelfAndChildren ( Camera camera ) : void
FixStartAndCurrentValue ( ) : void
GetNumberOfVerticesToDraw ( ) : int
PositionBarDrag ( Window callingWindow ) : void
ScrollBarChanged ( Window callingWindow ) : void
SetBarToValue ( ) : void
UpdateIncrementValueCache ( float largeIncrementValues ) : void
UpdatePositionBarVisibility ( ) : void
UpdatePositionBarYValues ( ) : void
UpdateScrollBarToRange ( ) : void

메소드 상세

AutoCalculateVerticalLineSpacing() 공개 메소드

Automatically sets the VerticalBarIncrement and SmallVerticalBarIncrement based off of the ValueWidth property.
public AutoCalculateVerticalLineSpacing ( ) : void
리턴 void

CallOnGUIChange() 공개 메소드

Raises the events which raise when the GUI changes.
public CallOnGUIChange ( ) : void
리턴 void

ClearEvents() 공개 메소드

Clears all events.
public ClearEvents ( ) : void
리턴 void

ClickEvent() 보호된 메소드

Method raised when the user clicks on the Window. This moves the position bar to the appropriate location.
protected ClickEvent ( Window callingWindow ) : void
callingWindow Window The window raising this event.
리턴 void

FixBar() 공개 메소드

Keeps the position bar within the visible range of the TimeLine.
public FixBar ( ) : void
리턴 void

GetPosOnBar() 보호된 메소드

Converts an absolute value to visible position on the bar
protected GetPosOnBar ( double valueToGet ) : double
valueToGet double The absolute value to convert to position.
리턴 double

PositionToValueAbsolute() 보호된 메소드

Returns the precision-adjusted value of the time line given an absolute position.
protected PositionToValueAbsolute ( float pos ) : double
pos float The absolute X position.
리턴 double

PositionToValueRelative() 보호된 메소드

Converts the argument relative-to-TimeLine argument to a value that it represents.
This mehod is used to convert the position bar's relative X to an actual value.
protected PositionToValueRelative ( float worldUnitRelativeX ) : double
worldUnitRelativeX float The relative-to-Timeline position.
리턴 double

TestCollision() 공개 메소드

public TestCollision ( Cursor cursor ) : void
cursor Cursor
리턴 void

TimeLine() 공개 메소드

Creates a new TimeLine;
public TimeLine ( Cursor cursor ) : System
cursor Cursor The Cursor that will interact with the TimeLine.
리턴 System

TimeLine() 공개 메소드

Creates a new TimeLine using the argument GuiSkin to control the visible representation.
public TimeLine ( GuiSkin guiSkin, Cursor cursor ) : System
guiSkin GuiSkin The GuiSkin to use.
cursor Cursor The Cursor that will interact with the TimeLine.
리턴 System

ValueToPositionRelative() 보호된 메소드

Converts the value to the corresponding relative X position on the timeline.
protected ValueToPositionRelative ( double value ) : float
value double The value to convert to a relative position.
리턴 float