C# Класс 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.
Наследование: IDrawable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
tintColor Color?

Открытые методы

Метод Описание
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

Описание методов

NinePatchDrawable() публичный Метод

public NinePatchDrawable ( NinePatchSubtexture subtexture ) : System
subtexture Nez.Textures.NinePatchSubtexture
Результат System

NinePatchDrawable() публичный Метод

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
Результат System

NinePatchDrawable() публичный Метод

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.
Результат System

draw() публичный Метод

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
Результат void

newTintedDrawable() публичный Метод

returns a new drawable with the tint color specified
public newTintedDrawable ( Color tint ) : NinePatchDrawable
tint Color Tint.
Результат NinePatchDrawable

setPadding() публичный Метод

public setPadding ( float top, float bottom, float left, float right ) : void
top float
bottom float
left float
right float
Результат void

setPadding() публичный Метод

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.
Результат void

Описание свойств

tintColor публичное свойство

public Color? tintColor
Результат Color?