C# 클래스 Gruppe22.Client.Button

상속: UIElement, IDisposable
파일 보기 프로젝트 열기: propra13-orga/gruppe22 1 사용 예제들

공개 메소드들

메소드 설명
Button ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, string label, int id, bool staydown = false ) : System

Create a button using a text label

Button ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, string normal, string active, string pressed, int id ) : System

Create a button using a bitmap

Dispose ( ) : void
Draw ( GameTime gameTime ) : void

HandleEvent ( bool downstream, Backend eventID ) : void
Hide ( ) : void
OnKeyDown ( Keys k ) : bool
OnMouseDown ( int button ) : bool

Show ( ) : void

메소드 상세

Button() 공개 메소드

Create a button using a text label
public Button ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, string label, int id, bool staydown = false ) : System
parent Backend
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
displayRect Microsoft.Xna.Framework.Rectangle
label string
id int
staydown bool
리턴 System

Button() 공개 메소드

Create a button using a bitmap
public Button ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, string normal, string active, string pressed, int id ) : System
parent Backend
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
displayRect Microsoft.Xna.Framework.Rectangle
normal string
active string
pressed string
id int
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Draw() 공개 메소드

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

HandleEvent() 공개 메소드

public HandleEvent ( bool downstream, Backend eventID ) : void
downstream bool
eventID Backend
리턴 void

Hide() 공개 메소드

public Hide ( ) : void
리턴 void

OnKeyDown() 공개 메소드

public OnKeyDown ( Keys k ) : bool
k Keys
리턴 bool

OnMouseDown() 공개 메소드

public OnMouseDown ( int button ) : bool
button int
리턴 bool

Show() 공개 메소드

public Show ( ) : void
리턴 void