C# Class spaceconquest.IconButton

Inheritance: MenuComponent
Show file Open project: cclay/spaceconquest Class Usage Examples

Public Properties

Property Type Description
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
selected bool
toggle bool

Public Methods

Method Description
Contains ( Point p ) : bool
Contains ( int x, int y ) : bool
Draw ( ) : void
IconButton ( Rectangle r, String t, EventHandler c ) : System
IconButton ( Rectangle r, String t, String t2, EventHandler c ) : System
Update ( Microsoft.Xna.Framework.Input.MouseState mscurrent, Microsoft.Xna.Framework.Input.MouseState msold ) : void
getArea ( ) : Rectangle

Method Details

Contains() public method

public Contains ( Point p ) : bool
p Point
return bool

Contains() public method

public Contains ( int x, int y ) : bool
x int
y int
return bool

Draw() public method

public Draw ( ) : void
return void

IconButton() public method

public IconButton ( Rectangle r, String t, EventHandler c ) : System
r Microsoft.Xna.Framework.Rectangle
t String
c EventHandler
return System

IconButton() public method

public IconButton ( Rectangle r, String t, String t2, EventHandler c ) : System
r Microsoft.Xna.Framework.Rectangle
t String
t2 String
c EventHandler
return System

Update() public method

public Update ( Microsoft.Xna.Framework.Input.MouseState mscurrent, Microsoft.Xna.Framework.Input.MouseState msold ) : void
mscurrent Microsoft.Xna.Framework.Input.MouseState
msold Microsoft.Xna.Framework.Input.MouseState
return void

getArea() public method

public getArea ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

Property Details

batch public static property

public static SpriteBatch,Microsoft.Xna.Framework.Graphics batch
return Microsoft.Xna.Framework.Graphics.SpriteBatch

selected public property

public bool selected
return bool

toggle public property

public bool toggle
return bool