C# Class FlatRedBall.Gui.ToggleButton

Summary description for ToggleButton.
Inheritance: Button
Exibir arquivo Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
radioGroup WindowArray

Public Methods

Method Description
AddToRadioGroup ( ToggleButton buttonToAdd ) : void
Press ( ) : void

Presses the ToggleButton down and calls the onClick event.

PressNoCall ( ) : void

Presses the ToggleButton down but does not call the onClick event.

SetOneAlwaysDown ( bool OneAlwaysDown ) : void
SetOverlayTextures ( Microsoft.Xna.Framework.Graphics.Texture2D upTexture, Microsoft.Xna.Framework.Graphics.Texture2D downTexture ) : void
SetText ( string unpressedText, string PressedText ) : void
TestCollision ( Cursor cursor ) : void
Toggle ( ) : void
ToggleButton ( Cursor cursor ) : System
Unpress ( ) : void

Private Methods

Method Description
RestoreToStateBefore ( Window callingWindow ) : void
UndoRestoreToStateBefore ( Window callingWindow ) : void

Method Details

AddToRadioGroup() public method

public AddToRadioGroup ( ToggleButton buttonToAdd ) : void
buttonToAdd ToggleButton
return void

Press() public method

Presses the ToggleButton down and calls the onClick event.
public Press ( ) : void
return void

PressNoCall() public method

Presses the ToggleButton down but does not call the onClick event.
public PressNoCall ( ) : void
return void

SetOneAlwaysDown() public method

public SetOneAlwaysDown ( bool OneAlwaysDown ) : void
OneAlwaysDown bool
return void

SetOverlayTextures() public method

public SetOverlayTextures ( Microsoft.Xna.Framework.Graphics.Texture2D upTexture, Microsoft.Xna.Framework.Graphics.Texture2D downTexture ) : void
upTexture Microsoft.Xna.Framework.Graphics.Texture2D
downTexture Microsoft.Xna.Framework.Graphics.Texture2D
return void

SetText() public method

public SetText ( string unpressedText, string PressedText ) : void
unpressedText string
PressedText string
return void

TestCollision() public method

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

Toggle() public method

public Toggle ( ) : void
return void

ToggleButton() public method

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

Unpress() public method

public Unpress ( ) : void
return void

Property Details

radioGroup public_oe property

public WindowArray radioGroup
return WindowArray