C# Class spaceconquest.IconButton

Inheritance: MenuComponent
Afficher le fichier Open project: cclay/spaceconquest Class Usage Examples

Méthodes publiques

Свойство Type Description
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
selected bool
toggle bool

Méthodes publiques

Méthode 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 méthode

public Contains ( Point p ) : bool
p Point
Résultat bool

Contains() public méthode

public Contains ( int x, int y ) : bool
x int
y int
Résultat bool

Draw() public méthode

public Draw ( ) : void
Résultat void

IconButton() public méthode

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

IconButton() public méthode

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

Update() public méthode

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
Résultat void

getArea() public méthode

public getArea ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

Property Details

batch public_oe static_oe property

public static SpriteBatch,Microsoft.Xna.Framework.Graphics batch
Résultat Microsoft.Xna.Framework.Graphics.SpriteBatch

selected public_oe property

public bool selected
Résultat bool

toggle public_oe property

public bool toggle
Résultat bool