C# 클래스 Indiefreaks.Xna.Rendering.Gui.Button

The Button control provides a simple control that can be selected and clicked
상속: Control
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Normal ButtonSkin
Pressed ButtonSkin
Selected ButtonSkin

공개 메소드들

메소드 설명
Button ( string fontPath, string text ) : System

Creates a new instance

Clone ( ) : Control
LoadContent ( IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager ) : void

Load all XNA ContentManager content

Refresh ( GraphicsDevice device ) : void

Refreshes the control properties when it requires to be redrawn to the RenderTarget

Render ( SpriteBatch spriteRenderer ) : void

Renders the control

UnloadContent ( IContentCatalogue catalogue ) : void

Unload all XNA ContentManager content

비공개 메소드들

메소드 설명
OnButtonClicked ( object button, EventArgs e ) : void

OnFocusAcquired ( object button, EventArgs e ) : void

OnFocusLost ( object button, EventArgs e ) : void

메소드 상세

Button() 공개 메소드

Creates a new instance
public Button ( string fontPath, string text ) : System
fontPath string The font used by this control and its inner default ButtonSkins
text string The initial text for this button
리턴 System

Clone() 공개 메소드

public Clone ( ) : Control
리턴 Control

LoadContent() 공개 메소드

Load all XNA ContentManager content
public LoadContent ( IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager ) : void
catalogue IContentCatalogue
manager Microsoft.Xna.Framework.Content.ContentManager XNA content manage
리턴 void

Refresh() 공개 메소드

Refreshes the control properties when it requires to be redrawn to the RenderTarget
public Refresh ( GraphicsDevice device ) : void
device GraphicsDevice
리턴 void

Render() 공개 메소드

Renders the control
public Render ( SpriteBatch spriteRenderer ) : void
spriteRenderer Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

UnloadContent() 공개 메소드

Unload all XNA ContentManager content
public UnloadContent ( IContentCatalogue catalogue ) : void
catalogue IContentCatalogue
리턴 void

프로퍼티 상세

Normal 공개적으로 프로퍼티

The Normal Control skin
public ButtonSkin,Indiefreaks.Xna.Rendering.Gui Normal
리턴 ButtonSkin

Pressed 공개적으로 프로퍼티

The Pressed Control skin
public ButtonSkin,Indiefreaks.Xna.Rendering.Gui Pressed
리턴 ButtonSkin

Selected 공개적으로 프로퍼티

The Selected Control skin
public ButtonSkin,Indiefreaks.Xna.Rendering.Gui Selected
리턴 ButtonSkin