C# Class XNAInterfaceComponents.Components.Component

Inheritance: Drawable, MouseOverable
Afficher le fichier Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Méthodes publiques

Méthode Description
Component ( ParentComponent parent, Rectangle bounds ) : System
Draw ( SpriteBatch sb ) : void
GetDepth ( ) : int

Gets the depth of this component.

GetLocation ( ) : Point

Gets the location relative to the parent.

GetScreenBounds ( ) : Rectangle

Gets the location on the screen of this component.

OnMouseEnter ( MouseEvent e ) : void
OnMouseExit ( MouseEvent e ) : void
Unload ( ) : void
Update ( ) : void

Méthodes protégées

Méthode Description
GetDrawDepthOffset ( ) : float

Takes the depth of this component, and multiplies it by 0.01f to get a value which you can use to draw the component at the correct depth on the screen.

Method Details

Component() public méthode

public Component ( ParentComponent parent, Rectangle bounds ) : System
parent XNAInterfaceComponents.AbstractComponents.ParentComponent
bounds Microsoft.Xna.Framework.Rectangle
Résultat System

Draw() public abstract méthode

public abstract Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

GetDepth() public méthode

Gets the depth of this component.
public GetDepth ( ) : int
Résultat int

GetDrawDepthOffset() protected méthode

Takes the depth of this component, and multiplies it by 0.01f to get a value which you can use to draw the component at the correct depth on the screen.
protected GetDrawDepthOffset ( ) : float
Résultat float

GetLocation() public méthode

Gets the location relative to the parent.
public GetLocation ( ) : Point
Résultat Point

GetScreenBounds() public méthode

Gets the location on the screen of this component.
public GetScreenBounds ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

OnMouseEnter() public abstract méthode

public abstract OnMouseEnter ( MouseEvent e ) : void
e MouseEvent
Résultat void

OnMouseExit() public abstract méthode

public abstract OnMouseExit ( MouseEvent e ) : void
e MouseEvent
Résultat void

Unload() public abstract méthode

public abstract Unload ( ) : void
Résultat void

Update() public abstract méthode

public abstract Update ( ) : void
Résultat void