C# 클래스 Defend_your_home.UI.Button

상속: IGraphicsControl
파일 보기 프로젝트 열기: MandragoraStudio/Defend-your-home 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
font Microsoft.Xna.Framework.Graphics.SpriteFont
position Vector2
pressed bool
text string
textSize Vector2
tintColor Color
tintWhenTouched Color

공개 메소드들

메소드 설명
Button ( string text, SpriteFont font, Vector2 position ) : System
Draw ( SpriteBatch spriteBatch ) : void
Update ( ) : void

보호된 메소드들

메소드 설명
CheckIfFirstTouchDown ( Vector2 touchPosition ) : bool
CheckIfTouchRelease ( Vector2 touchPosition ) : bool
DoOnTouchDown ( ) : void
DoOnTouchRelease ( ) : void
OnClick ( EventArgs e ) : void
OnTouchDown ( EventArgs e ) : void

메소드 상세

Button() 공개 메소드

public Button ( string text, SpriteFont font, Vector2 position ) : System
text string
font Microsoft.Xna.Framework.Graphics.SpriteFont
position Vector2
리턴 System

CheckIfFirstTouchDown() 보호된 메소드

protected CheckIfFirstTouchDown ( Vector2 touchPosition ) : bool
touchPosition Vector2
리턴 bool

CheckIfTouchRelease() 보호된 메소드

protected CheckIfTouchRelease ( Vector2 touchPosition ) : bool
touchPosition Vector2
리턴 bool

DoOnTouchDown() 보호된 메소드

protected DoOnTouchDown ( ) : void
리턴 void

DoOnTouchRelease() 보호된 메소드

protected DoOnTouchRelease ( ) : void
리턴 void

Draw() 공개 메소드

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

OnClick() 보호된 메소드

protected OnClick ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnTouchDown() 보호된 메소드

protected OnTouchDown ( EventArgs e ) : void
e System.EventArgs
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

font 보호되어 있는 프로퍼티

protected SpriteFont,Microsoft.Xna.Framework.Graphics font
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont

position 보호되어 있는 프로퍼티

protected Vector2 position
리턴 Vector2

pressed 보호되어 있는 프로퍼티

protected bool pressed
리턴 bool

text 보호되어 있는 프로퍼티

protected string text
리턴 string

textSize 보호되어 있는 프로퍼티

protected Vector2 textSize
리턴 Vector2

tintColor 보호되어 있는 프로퍼티

protected Color tintColor
리턴 Color

tintWhenTouched 보호되어 있는 프로퍼티

protected Color tintWhenTouched
리턴 Color