C# 클래스 Nez.UI.SubtextureDrawable

Drawable for a {@link Subtexture}
상속: IDrawable
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
tintColor Color?

보호된 프로퍼티들

프로퍼티 타입 설명
_subtexture Nez.Textures.Subtexture

공개 메소드들

메소드 설명
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

메소드 상세

SubtextureDrawable() 공개 메소드

public SubtextureDrawable ( Subtexture subtexture ) : System
subtexture Nez.Textures.Subtexture
리턴 System

SubtextureDrawable() 공개 메소드

public SubtextureDrawable ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
리턴 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 ) : SubtextureDrawable
tint Color Tint.
리턴 SubtextureDrawable

setPadding() 공개 메소드

public setPadding ( float top, float bottom, float left, float right ) : void
top float
bottom float
left float
right float
리턴 void

프로퍼티 상세

_subtexture 보호되어 있는 프로퍼티

protected Subtexture,Nez.Textures _subtexture
리턴 Nez.Textures.Subtexture

tintColor 공개적으로 프로퍼티

public Color? tintColor
리턴 Color?