Java com.badlogic.gdx.scenes.scene2d.ui Skin fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.scenes.scene2d.ui Skin fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.scenes.scene2d.ui Skin.

The text is from its open source code.

Subclass

com.badlogic.gdx.scenes.scene2d.ui.Skin has subclasses.
Click this link to see all its subclasses.

Constructor

Skin(FileHandle skinFile)
Creates a skin containing the resources in the specified skin JSON file.
Skin(TextureAtlas atlas)
Creates a skin containing the texture regions from the specified atlas.
Skin(FileHandle skinFile, TextureAtlas atlas)
Creates a skin containing the resources in the specified skin JSON file and the texture regions from the specified atlas.
Skin()
Creates an empty skin.

Method

voidadd(String name, Object resource)
voidadd(String name, Object resource, Class type)
voidaddRegions(TextureAtlas atlas)
Adds all named texture regions from the atlas.
Stringfind(Object resource)
Returns the name of the specified style object, or null if it is not in the skin.
Tget(String name, Class type)
Tget(Class type)
ObjectMapgetAll(Class type)
Returns the name to resource mapping for the specified type, or null if no resources of that type exist.
TextureAtlasgetAtlas()
Returns the TextureAtlas that resources in this skin reference, or null.
ColorgetColor(String name)
DrawablegetDrawable(String name)
Returns a registered drawable.
BitmapFontgetFont(String name)
TextureRegiongetRegion(String name)
Returns a registered texture region.
TiledDrawablegetTiledDrawable(String name)
Returns a registered tiled drawable.
voidload(FileHandle skinFile)
Adds all resources in the specified skin JSON file.
DrawablenewDrawable(String name, Color tint)
Returns a tinted copy of a drawable found in the skin via #getDrawable(String) .
DrawablenewDrawable(Drawable drawable, Color tint)
Returns a tinted copy of a drawable found in the skin via #getDrawable(String) .
Toptional(String name, Class type)