C# Class FlatRedBall.Gui.Button

A UI element which displays text and visually responds to pushes.
Inheritance: Window
Mostra file Open project: vchelaru/FlatRedBall Class Usage Examples

Protected Properties

Property Type Description
mOverlayTexture FlatRedBall.Texture2D

Public Methods

Method Description
Button ( Cursor cursor ) : System
Button ( GuiSkin guiSkin, Cursor cursor ) : System
Button ( string buttonTexture, Cursor cursor, string contentManagerName ) : System
Press ( ) : void
SetOverlayAnimationChain ( AnimationChain achToSet ) : void
SetOverlayTextures ( FlatRedBall.Texture2D upTexture, FlatRedBall.Texture2D downTexture ) : void
SetOverlayTextures ( int col, int row ) : void
SetOverlayTextures ( int col, int row, int downCol, int downRow ) : void
SetSkin ( ButtonSkin upSkin, ButtonSkin downSkin ) : void
SetSkin ( GuiSkin guiSkin ) : void
TestCollision ( Cursor cursor ) : void

Protected Methods

Method Description
Destroy ( bool keepEvents ) : void

Private Methods

Method Description
Destroy ( ) : void
DrawSelfAndChildren ( Camera camera ) : void
GetNumberOfVerticesToDraw ( ) : int
SetTexturePropertiesFromSkin ( ButtonSkin buttonSkin ) : void

Method Details

Button() public method

public Button ( Cursor cursor ) : System
cursor Cursor
return System

Button() public method

public Button ( GuiSkin guiSkin, Cursor cursor ) : System
guiSkin GuiSkin
cursor Cursor
return System

Button() public method

public Button ( string buttonTexture, Cursor cursor, string contentManagerName ) : System
buttonTexture string
cursor Cursor
contentManagerName string
return System

Destroy() protected method

protected Destroy ( bool keepEvents ) : void
keepEvents bool
return void

Press() public method

public Press ( ) : void
return void

SetOverlayAnimationChain() public method

public SetOverlayAnimationChain ( AnimationChain achToSet ) : void
achToSet FlatRedBall.Graphics.Animation.AnimationChain
return void

SetOverlayTextures() public method

public SetOverlayTextures ( FlatRedBall.Texture2D upTexture, FlatRedBall.Texture2D downTexture ) : void
upTexture FlatRedBall.Texture2D
downTexture FlatRedBall.Texture2D
return void

SetOverlayTextures() public method

public SetOverlayTextures ( int col, int row ) : void
col int
row int
return void

SetOverlayTextures() public method

public SetOverlayTextures ( int col, int row, int downCol, int downRow ) : void
col int
row int
downCol int
downRow int
return void

SetSkin() public method

public SetSkin ( ButtonSkin upSkin, ButtonSkin downSkin ) : void
upSkin ButtonSkin
downSkin ButtonSkin
return void

SetSkin() public method

public SetSkin ( GuiSkin guiSkin ) : void
guiSkin GuiSkin
return void

TestCollision() public method

public TestCollision ( Cursor cursor ) : void
cursor Cursor
return void

Property Details

mOverlayTexture protected_oe property

protected FlatRedBall.Texture2D mOverlayTexture
return FlatRedBall.Texture2D