C# 클래스 Knot3.Framework.Widgets.SliderItem

상속: MenuItem, IMouseClickEventListener, IMouseMoveEventListener
파일 보기 프로젝트 열기: knot3/knot3-code 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
OnValueChanged Action

Private Properties

프로퍼티 타입 설명
Draw void
UpdateSlider void

공개 메소드들

메소드 설명
OnLeftClick ( Vector2 position, ClickState state, GameTime time ) : void
OnLeftMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
OnMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
OnNoMove ( ScreenPoint currentPosition, GameTime time ) : void
OnRightMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
SliderItem ( IScreen screen, DisplayLayer drawOrder, string text, int max, int min, int value ) : System

Erzeugt eine neue Instanz eines SliderItem-Objekts und initialisiert diese mit dem zugehörigen IGameScreen-Objekt. Zudem ist die Angabe der Zeichenreihenfolge, einem minimalen einstellbaren Wert, einem maximalen einstellbaren Wert und einem Standardwert Pflicht.

비공개 메소드들

메소드 설명
Draw ( GameTime time ) : void
UpdateSlider ( ScreenPoint position, GameTime time ) : void

메소드 상세

OnLeftClick() 공개 메소드

public OnLeftClick ( Vector2 position, ClickState state, GameTime time ) : void
position Vector2
state ClickState
time Microsoft.Xna.Framework.GameTime
리턴 void

OnLeftMove() 공개 메소드

public OnLeftMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
previousPosition ScreenPoint
currentPosition ScreenPoint
move ScreenPoint
time Microsoft.Xna.Framework.GameTime
리턴 void

OnMove() 공개 메소드

public OnMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
previousPosition ScreenPoint
currentPosition ScreenPoint
move ScreenPoint
time Microsoft.Xna.Framework.GameTime
리턴 void

OnNoMove() 공개 메소드

public OnNoMove ( ScreenPoint currentPosition, GameTime time ) : void
currentPosition ScreenPoint
time Microsoft.Xna.Framework.GameTime
리턴 void

OnRightMove() 공개 메소드

public OnRightMove ( ScreenPoint previousPosition, ScreenPoint currentPosition, ScreenPoint move, GameTime time ) : void
previousPosition ScreenPoint
currentPosition ScreenPoint
move ScreenPoint
time Microsoft.Xna.Framework.GameTime
리턴 void

SliderItem() 공개 메소드

Erzeugt eine neue Instanz eines SliderItem-Objekts und initialisiert diese mit dem zugehörigen IGameScreen-Objekt. Zudem ist die Angabe der Zeichenreihenfolge, einem minimalen einstellbaren Wert, einem maximalen einstellbaren Wert und einem Standardwert Pflicht.
public SliderItem ( IScreen screen, DisplayLayer drawOrder, string text, int max, int min, int value ) : System
screen IScreen
drawOrder DisplayLayer
text string
max int
min int
value int
리턴 System

프로퍼티 상세

OnValueChanged 공개적으로 프로퍼티

Wird aufgerufen, wenn der Wert geändert wurde
public Action OnValueChanged
리턴 Action