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
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
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?