C# Class XNAInterfaceComponents.AbstractComponents.XNAButton

Inheritance: XNAInterfaceComponents.AbstractComponents.ChildComponent, Focusable, MouseClickListener
显示文件 Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void

Draws this button with a Z.

OnFocusLost ( ) : void
OnFocusReceived ( ) : void
OnMouseClick ( MouseEvent m_event ) : void
OnMouseEnter ( MouseEvent m_event ) : void
OnMouseExit ( MouseEvent m_event ) : void
OnMouseRelease ( MouseEvent m_event ) : void
Unload ( ) : void
Update ( ) : void
XNAButton ( ParentComponent parent, Rectangle bounds, String text ) : System

Method Details

Draw() public method

Draws this button with a Z.
public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch The spritebatch to draw on.
return void

OnFocusLost() public method

public OnFocusLost ( ) : void
return void

OnFocusReceived() public method

public OnFocusReceived ( ) : void
return void

OnMouseClick() public method

public OnMouseClick ( MouseEvent m_event ) : void
m_event MouseEvent
return void

OnMouseEnter() public method

public OnMouseEnter ( MouseEvent m_event ) : void
m_event MouseEvent
return void

OnMouseExit() public method

public OnMouseExit ( MouseEvent m_event ) : void
m_event MouseEvent
return void

OnMouseRelease() public method

public OnMouseRelease ( MouseEvent m_event ) : void
m_event MouseEvent
return void

Unload() public method

public Unload ( ) : void
return void

Update() public method

public Update ( ) : void
return void

XNAButton() public method

public XNAButton ( ParentComponent parent, Rectangle bounds, String text ) : System
parent ParentComponent
bounds Microsoft.Xna.Framework.Rectangle
text String
return System