C# Class Nez.UI.SubtextureDrawable

Drawable for a {@link Subtexture}
Inheritance: IDrawable
ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
tintColor Color?

Protected Properties

Property Type Description
_subtexture Nez.Textures.Subtexture

Public Methods

Method 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 method

public SubtextureDrawable ( Subtexture subtexture ) : System
subtexture Nez.Textures.Subtexture
return System

SubtextureDrawable() public method

public SubtextureDrawable ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
return System

draw() public method

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
return void

newTintedDrawable() public method

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

setPadding() public method

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

Property Details

_subtexture protected_oe property

protected Subtexture,Nez.Textures _subtexture
return Nez.Textures.Subtexture

tintColor public_oe property

public Color? tintColor
return Color?