C# Class Myre.UI.Controls.ImageBox

A control which draws an image.
Inheritance: Control
Afficher le fichier Open project: TomGillen/Myre

Méthodes publiques

Méthode Description
Draw ( SpriteBatch batch ) : void

Draws the control.

ImageBox ( Control parent, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System

Initializes a new instance of the ImageBox class.

ImageBox ( Control parent, Microsoft.Xna.Framework.Graphics.Texture2D texture, Color colour, Rectangle sourceRectangle ) : System

Initializes a new instance of the ImageBox class.

Method Details

Draw() public méthode

Draws the control.
public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch An spritebactch already started for alpha blending with deferred sort mode.
Résultat void

ImageBox() public méthode

Initializes a new instance of the ImageBox class.
public ImageBox ( Control parent, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
parent Control This controls parent control.
texture Microsoft.Xna.Framework.Graphics.Texture2D The texture.
Résultat System

ImageBox() public méthode

Initializes a new instance of the ImageBox class.
public ImageBox ( Control parent, Microsoft.Xna.Framework.Graphics.Texture2D texture, Color colour, Rectangle sourceRectangle ) : System
parent Control This controls parent control.
texture Microsoft.Xna.Framework.Graphics.Texture2D The texture.
colour Color The colour.
sourceRectangle Microsoft.Xna.Framework.Rectangle The source rectangle.
Résultat System