C# Class Nez.UI.SubtextureDrawable

Drawable for a {@link Subtexture}
Inheritance: IDrawable
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
tintColor Color?

Protected Properties

Свойство Type Description
_subtexture Nez.Textures.Subtexture

Méthodes publiques

Méthode Description
SubtextureDrawable ( Subtexture subtexture ) : System
SubtextureDrawable ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
draw ( Graphics graphics, float x, float y, float width, float height, Color color ) : void
newTintedDrawable ( Color tint ) : SubtextureDrawable

returns a new drawable with the tint color specified

setPadding ( float top, float bottom, float left, float right ) : void

Method Details

SubtextureDrawable() public méthode

public SubtextureDrawable ( Subtexture subtexture ) : System
subtexture Nez.Textures.Subtexture
Résultat System

SubtextureDrawable() public méthode

public SubtextureDrawable ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat System

draw() public méthode

public draw ( Graphics graphics, float x, float y, float width, float height, Color color ) : void
graphics Graphics
x float
y float
width float
height float
color Color
Résultat void

newTintedDrawable() public méthode

returns a new drawable with the tint color specified
public newTintedDrawable ( Color tint ) : SubtextureDrawable
tint Color Tint.
Résultat SubtextureDrawable

setPadding() public méthode

public setPadding ( float top, float bottom, float left, float right ) : void
top float
bottom float
left float
right float
Résultat void

Property Details

_subtexture protected_oe property

protected Subtexture,Nez.Textures _subtexture
Résultat Nez.Textures.Subtexture

tintColor public_oe property

public Color? tintColor
Résultat Color?