com.badlogic.gdx.scenes.scene2d.ui
Class Skin
java.lang.Object
com.badlogic.gdx.scenes.scene2d.ui.Skin
- All Implemented Interfaces:
- Disposable
public class Skin
- extends java.lang.Object
- implements Disposable
- Author:
- Nathan Sweet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Skin
public Skin()
Skin
public Skin(FileHandle skinFile,
FileHandle textureFile)
Skin
public Skin(FileHandle skinFile,
Skin.SkinData data)
addResource
public <T> void addResource(java.lang.String name,
T resource)
getResource
public <T> T getResource(java.lang.String name,
java.lang.Class<T> type)
addStyle
public <T> void addStyle(java.lang.String name,
T style)
getStyle
public <T> T getStyle(java.lang.Class<T> type)
getStyle
public <T> T getStyle(java.lang.String name,
java.lang.Class<T> type)
dispose
public void dispose()
- Disposes the
Texture
and all Disposable
resources of this Skin.
- Specified by:
dispose
in interface Disposable
setTexture
public void setTexture(Texture texture)
getTexture
public Texture getTexture()
- Returns:
- the
Texture
containing all NinePatch
and TextureRegion
pixels of this Skin.
save
public void save(FileHandle skinFile)
getJsonLoader
protected Json getJsonLoader(FileHandle skinFile)
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)