com.badlogic.gdx.graphics.g2d
Class NinePatch
java.lang.Object
com.badlogic.gdx.graphics.g2d.NinePatch
- Direct Known Subclasses:
- EmptyNinePatch
public class NinePatch
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOP_LEFT
public static final int TOP_LEFT
- See Also:
- Constant Field Values
TOP_CENTER
public static final int TOP_CENTER
- See Also:
- Constant Field Values
TOP_RIGHT
public static final int TOP_RIGHT
- See Also:
- Constant Field Values
MIDDLE_LEFT
public static final int MIDDLE_LEFT
- See Also:
- Constant Field Values
MIDDLE_CENTER
public static final int MIDDLE_CENTER
- See Also:
- Constant Field Values
MIDDLE_RIGHT
public static final int MIDDLE_RIGHT
- See Also:
- Constant Field Values
BOTTOM_LEFT
public static final int BOTTOM_LEFT
- See Also:
- Constant Field Values
BOTTOM_CENTER
public static final int BOTTOM_CENTER
- See Also:
- Constant Field Values
BOTTOM_RIGHT
public static final int BOTTOM_RIGHT
- See Also:
- Constant Field Values
NinePatch
public NinePatch(Texture texture,
int left,
int right,
int top,
int bottom)
NinePatch
public NinePatch(TextureRegion region,
int left,
int right,
int top,
int bottom)
NinePatch
public NinePatch(TextureRegion region)
NinePatch
public NinePatch(TextureRegion... patches)
draw
public void draw(SpriteBatch batch,
float x,
float y,
float width,
float height)
getLeftWidth
public float getLeftWidth()
getRightWidth
public float getRightWidth()
getTopHeight
public float getTopHeight()
getBottomHeight
public float getBottomHeight()
getTotalHeight
public float getTotalHeight()
getTotalWidth
public float getTotalWidth()
getPatches
public TextureRegion[] getPatches()
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)