C# 클래스 MonoGameUi.Slider

Das Slider-Control erlaubt das Verschieben eines Reglers per Maus oder Tastatur.
상속: Control
파일 보기 프로젝트 열기: OctoAwesome/monogameui 1 사용 예제들

공개 메소드들

메소드 설명
Slider ( BaseScreenComponent manager, string style = "" ) : System

Erzeugt einen neuen Slider.

보호된 메소드들

메소드 설명
OnDrawContent ( SpriteBatch batch, Rectangle contentArea, GameTime gameTime, float alpha ) : void

Malt den Content des Controls

OnKeyPress ( Microsoft.Xna.Framework.Input.KeyEventArgs args ) : void

Wird aufgerufen, wenn eine Taste gedrückt ist.

OnLeftMouseDown ( Microsoft.Xna.Framework.Input.MouseEventArgs args ) : void

Wird aufgerufen, wenn die linke Maustaste heruntergedrückt wird.

OnLeftMouseUp ( Microsoft.Xna.Framework.Input.MouseEventArgs args ) : void

Wird aufgerufen, wenn die linke Maustaste losgelassen wird.

메소드 상세

OnDrawContent() 보호된 메소드

Malt den Content des Controls
protected OnDrawContent ( SpriteBatch batch, Rectangle contentArea, GameTime gameTime, float alpha ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch Spritebatch
contentArea Microsoft.Xna.Framework.Rectangle Bereich für den Content in absoluten Koordinaten
gameTime Microsoft.Xna.Framework.GameTime GameTime
alpha float Die Transparenz des Controls.
리턴 void

OnKeyPress() 보호된 메소드

Wird aufgerufen, wenn eine Taste gedrückt ist.
protected OnKeyPress ( Microsoft.Xna.Framework.Input.KeyEventArgs args ) : void
args Microsoft.Xna.Framework.Input.KeyEventArgs Zusätzliche Daten zum Event.
리턴 void

OnLeftMouseDown() 보호된 메소드

Wird aufgerufen, wenn die linke Maustaste heruntergedrückt wird.
protected OnLeftMouseDown ( Microsoft.Xna.Framework.Input.MouseEventArgs args ) : void
args Microsoft.Xna.Framework.Input.MouseEventArgs Weitere Informationen zum Event.
리턴 void

OnLeftMouseUp() 보호된 메소드

Wird aufgerufen, wenn die linke Maustaste losgelassen wird.
protected OnLeftMouseUp ( Microsoft.Xna.Framework.Input.MouseEventArgs args ) : void
args Microsoft.Xna.Framework.Input.MouseEventArgs Weitere Informationen zum Event.
리턴 void

Slider() 공개 메소드

Erzeugt einen neuen Slider.
public Slider ( BaseScreenComponent manager, string style = "" ) : System
manager BaseScreenComponent Der verwendete
style string (Optional) Der zu verwendende Style.
리턴 System