C# 클래스 Source.Graphics.Button

파일 보기 프로젝트 열기: HarkerGameDev/TheGame

공개 프로퍼티들

프로퍼티 타입 설명
OnClick System.Action

공개 메소드들

메소드 설명
Button ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 topLeft, Vector2 scale, System.Action onClick, Color color ) : System
Button ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 topLeft, Vector2 scale, System.Action onClick, Color color, SpriteFont font, string text, Color textColor ) : System
Draw ( SpriteBatch spriteBatch ) : void
TestPoint ( Point point ) : bool

메소드 상세

Button() 공개 메소드

public Button ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 topLeft, Vector2 scale, System.Action onClick, Color color ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
topLeft Vector2
scale Vector2
onClick System.Action
color Color
리턴 System

Button() 공개 메소드

public Button ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 topLeft, Vector2 scale, System.Action onClick, Color color, SpriteFont font, string text, Color textColor ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
topLeft Vector2
scale Vector2
onClick System.Action
color Color
font Microsoft.Xna.Framework.Graphics.SpriteFont
text string
textColor Color
리턴 System

Draw() 공개 메소드

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

TestPoint() 공개 메소드

public TestPoint ( Point point ) : bool
point Point
리턴 bool

프로퍼티 상세

OnClick 공개적으로 프로퍼티

public Action,System OnClick
리턴 System.Action