C# Class Myre.UI.Controls.ImageBox

A control which draws an image.
Inheritance: Control
Datei anzeigen Open project: TomGillen/Myre

Public Methods

Method 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 method

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.
return void

ImageBox() public method

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.
return System

ImageBox() public method

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.
return System