C# Class MonoGdx.Graphics.G2D.NinePatch

Show file Open project: jaquadro/MonoGdx Class Usage Examples

Public Methods

Method Description
Draw ( GdxSpriteBatch spriteBatch, float x, float y, float width, float height ) : void
NinePatch ( ) : System
NinePatch ( NinePatch ninePatch ) : System
NinePatch ( NinePatch ninePatch, Color color ) : System
NinePatch ( TextureContext texture ) : System
NinePatch ( TextureContext texture, Color color ) : System
NinePatch ( TextureContext texture, int left, int right, int top, int bottom ) : System
NinePatch ( TextureRegion region, Color color ) : System
NinePatch ( TextureRegion region, int left, int right, int top, int bottom ) : System
SetPadding ( int left, int right, int top, int bottom ) : void

Private Methods

Method Description
Add ( TextureRegion region, Color color ) : int
Load ( TextureRegion patches ) : void
Set ( int index, float x, float y, float width, float height, Color color ) : void

Method Details

Draw() public method

public Draw ( GdxSpriteBatch spriteBatch, float x, float y, float width, float height ) : void
spriteBatch GdxSpriteBatch
x float
y float
width float
height float
return void

NinePatch() public method

public NinePatch ( ) : System
return System

NinePatch() public method

public NinePatch ( NinePatch ninePatch ) : System
ninePatch NinePatch
return System

NinePatch() public method

public NinePatch ( NinePatch ninePatch, Color color ) : System
ninePatch NinePatch
color Color
return System

NinePatch() public method

public NinePatch ( TextureContext texture ) : System
texture TextureContext
return System

NinePatch() public method

public NinePatch ( TextureContext texture, Color color ) : System
texture TextureContext
color Color
return System

NinePatch() public method

public NinePatch ( TextureContext texture, int left, int right, int top, int bottom ) : System
texture TextureContext
left int
right int
top int
bottom int
return System

NinePatch() public method

public NinePatch ( TextureRegion region, Color color ) : System
region TextureRegion
color Color
return System

NinePatch() public method

public NinePatch ( TextureRegion region, int left, int right, int top, int bottom ) : System
region TextureRegion
left int
right int
top int
bottom int
return System

SetPadding() public method

public SetPadding ( int left, int right, int top, int bottom ) : void
left int
right int
top int
bottom int
return void