C# Class Nez.UI.NinePatchDrawable

The drawable sizes are set when the ninepatch is set, but they are separate values. Eg, {@link Drawable#getLeftWidth()} could be set to more than {@link NinePatch#getLeftWidth()} in order to provide more space on the left than actually exists in the ninepatch. The min size is set to the ninepatch total size by default. It could be set to the left+right and top+bottom, excluding the middle size, to allow the drawable to be sized down as small as possible.
Inheritance: IDrawable
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

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

Méthodes publiques

Méthode Description
NinePatchDrawable ( NinePatchSubtexture subtexture ) : System
NinePatchDrawable ( Subtexture subtexture, int left, int right, int top, int bottom ) : System
NinePatchDrawable ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int left, int right, int top, int bottom ) : System

creates a NinePatchDrawable using the full texture

draw ( Graphics graphics, float x, float y, float width, float height, Color color ) : void
newTintedDrawable ( Color tint ) : NinePatchDrawable

returns a new drawable with the tint color specified

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

sets the padding on the NinePatchSubtexture

Method Details

NinePatchDrawable() public méthode

public NinePatchDrawable ( NinePatchSubtexture subtexture ) : System
subtexture Nez.Textures.NinePatchSubtexture
Résultat System

NinePatchDrawable() public méthode

public NinePatchDrawable ( Subtexture subtexture, int left, int right, int top, int bottom ) : System
subtexture Nez.Textures.Subtexture
left int
right int
top int
bottom int
Résultat System

NinePatchDrawable() public méthode

creates a NinePatchDrawable using the full texture
public NinePatchDrawable ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int left, int right, int top, int bottom ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D Texture.
left int Left.
right int Right.
top int Top.
bottom int Bottom.
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 ) : NinePatchDrawable
tint Color Tint.
Résultat NinePatchDrawable

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

setPadding() public méthode

sets the padding on the NinePatchSubtexture
public setPadding ( int left, int right, int top, int bottom ) : void
left int Left.
right int Right.
top int Top.
bottom int Bottom.
Résultat void

Property Details

tintColor public_oe property

public Color? tintColor
Résultat Color?