C# Class MoodSwingGUI.MSGUIClickable

MSGUIClickable is a GUI component that is both drawable and clickable
Inheritance: MoodSwingCoreComponents.MS2DClickable, MSGUIObject
显示文件 Open project: verngutz/MoodSwing Class Usage Examples

Protected Properties

Property Type Description
toolTip MSToolTip

Public Methods

Method Description
Hover ( ) : void

What to do when this MSGUIClickable has been hovered.

LeftClick ( ) : void

What to do when this MSGUIClickable has been left-clicked.

MSGUIClickable ( Rectangle boundingRectangle, Shape shape, MSToolTip toolTip, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
MiddleClick ( ) : void

What to do when this MSGUIClickable has been middle-clicked.

RightClick ( ) : void

What to do when this MSGUIClickable has been right-clicked.

UnHover ( ) : void

What to do when this MSGUIClickable has previously been hovered but now isn't.

UnLeftClick ( ) : void

What to do when this MSGUIClickable has previously been left-clicked and is now released.

UnMiddleClick ( ) : void

What to do when this MSGUIClickable has previously been middle-clicked and is now released.

UnRightClick ( ) : void

What to do when this MSGUIClickable has previously been right-clicked and is now released.

Method Details

Hover() public abstract method

What to do when this MSGUIClickable has been hovered.
public abstract Hover ( ) : void
return void

LeftClick() public abstract method

What to do when this MSGUIClickable has been left-clicked.
public abstract LeftClick ( ) : void
return void

MSGUIClickable() public method

public MSGUIClickable ( Rectangle boundingRectangle, Shape shape, MSToolTip toolTip, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
boundingRectangle Microsoft.Xna.Framework.Rectangle
shape Shape
toolTip MSToolTip
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
game Microsoft.Xna.Framework.Game
return System

MiddleClick() public abstract method

What to do when this MSGUIClickable has been middle-clicked.
public abstract MiddleClick ( ) : void
return void

RightClick() public abstract method

What to do when this MSGUIClickable has been right-clicked.
public abstract RightClick ( ) : void
return void

UnHover() public abstract method

What to do when this MSGUIClickable has previously been hovered but now isn't.
public abstract UnHover ( ) : void
return void

UnLeftClick() public abstract method

What to do when this MSGUIClickable has previously been left-clicked and is now released.
public abstract UnLeftClick ( ) : void
return void

UnMiddleClick() public abstract method

What to do when this MSGUIClickable has previously been middle-clicked and is now released.
public abstract UnMiddleClick ( ) : void
return void

UnRightClick() public abstract method

What to do when this MSGUIClickable has previously been right-clicked and is now released.
public abstract UnRightClick ( ) : void
return void

Property Details

toolTip protected_oe property

protected MSToolTip,MoodSwingGUI toolTip
return MSToolTip