| Modifier and Type | Method and Description |
|---|---|
void |
InputEventQueue.drain(InputProcessor processor) |
void |
Net.sendHttpRequest(Net.HttpRequest httpRequest,
Net.HttpResponseListener httpResponseListener)
Process the specified
Net.HttpRequest and reports the Net.HttpResponse to the specified
Net.HttpResponseListener. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
AssetManager.get(String fileName,
boolean required) |
<T> T |
AssetManager.get(String fileName,
Class<T> type,
boolean required) |
| Modifier and Type | Field and Description |
|---|---|
String[] |
TextureAtlas.TextureAtlasData.Region.names |
String[] |
TextureAtlas.AtlasRegion.names
Names for name/value pairs other than the fields provided on this class, each entry corresponding to
TextureAtlas.AtlasRegion.values. |
Texture |
TextureAtlas.TextureAtlasData.Page.texture
May be null if the texture is not yet loaded.
|
FileHandle |
TextureAtlas.TextureAtlasData.Page.textureFile
May be null if this page isn't associated with a file.
|
int[][] |
TextureAtlas.TextureAtlasData.Region.values |
int[][] |
TextureAtlas.AtlasRegion.values
Values for name/value pairs other than the fields provided on this class, each entry corresponding to
TextureAtlas.AtlasRegion.names. |
| Modifier and Type | Method and Description |
|---|---|
NinePatch |
TextureAtlas.createPatch(String name)
Returns the first region found with the specified name as a
NinePatch. |
Sprite |
TextureAtlas.createSprite(String name)
Returns the first region found with the specified name as a sprite.
|
Sprite |
TextureAtlas.createSprite(String name,
int index)
Returns the first region found with the specified name and index as a sprite.
|
TextureAtlas.AtlasRegion |
TextureAtlas.findRegion(String name)
Returns the first region found with the specified name.
|
TextureAtlas.AtlasRegion |
TextureAtlas.findRegion(String name,
int index)
Returns the first region found with the specified name and index.
|
int[] |
TextureAtlas.TextureAtlasData.Region.findValue(String name) |
int[] |
TextureAtlas.AtlasRegion.findValue(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
GlyphLayout.setText(BitmapFont font,
CharSequence str,
int start,
int end,
Color color,
float targetWidth,
int halign,
boolean wrap,
String truncate) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Actor> |
Group.findActor(String name)
Returns the first actor found with the specified name.
|
<T extends Actor> |
Actor.firstAscendant(Class<T> type)
Returns this actor or the first ascendant of this actor that is assignable with the specified type, or null if none were
found.
|
Rectangle |
Group.getCullingArea() |
Actor |
Stage.getKeyboardFocus()
Gets the actor that will receive key events.
|
String |
Actor.getName() |
Group |
Actor.getParent()
Returns the parent actor, or null if not in a group.
|
Pool |
Action.getPool() |
Actor |
InputEvent.getRelatedActor()
The actor related to the event.
|
Actor |
Stage.getScrollFocus()
Gets the actor that will receive scroll events.
|
Stage |
Actor.getStage()
Returns the stage that this actor is currently in, or null if not in a stage.
|
Object |
Actor.getUserObject()
Returns an application specific object for convenience, or null.
|
Actor |
Stage.hit(float stageX,
float stageY,
boolean touchable)
Returns the
Actor at the specified location in stage coordinates. |
Actor |
Group.hit(float x,
float y,
boolean touchable) |
Actor |
Actor.hit(float x,
float y,
boolean touchable)
|
| Modifier and Type | Method and Description |
|---|---|
void |
Stage.cancelTouchFocusExcept(EventListener exceptListener,
Actor exceptActor)
Cancels touch focus for all listeners except the specified listener.
|
void |
Stage.cancelTouchFocusExcept(EventListener exceptListener,
Actor exceptActor)
Cancels touch focus for all listeners except the specified listener.
|
void |
InputListener.enter(InputEvent event,
float x,
float y,
int pointer,
Actor fromActor)
Called any time the mouse cursor or a finger touch is moved over an actor.
|
void |
InputListener.exit(InputEvent event,
float x,
float y,
int pointer,
Actor toActor)
Called any time the mouse cursor or a finger touch is moved out of an actor.
|
Vector2 |
Actor.localToAscendantCoordinates(Actor ascendant,
Vector2 localCoords)
Converts coordinates for this actor to those of an ascendant.
|
void |
Actor.removeAction(Action action) |
void |
Group.setCullingArea(Rectangle cullingArea)
Children completely outside of this rectangle will not be drawn.
|
void |
Stage.setDebugTableUnderMouse(Table.Debug debugTableUnderMouse)
If not
Table.Debug.none, debug is enabled only for the first ascendant of the actor under the mouse that is a table. |
boolean |
Stage.setKeyboardFocus(Actor actor)
Sets the actor that will receive key events.
|
void |
Actor.setName(String name)
Set the actor's name, which is used for identification convenience and by
Actor.toString(). |
void |
Action.setPool(Pool pool)
Sets the pool that the action will be returned to when removed from the actor.
|
void |
InputEvent.setRelatedActor(Actor relatedActor) |
boolean |
Stage.setScrollFocus(Actor actor)
Sets the actor that will receive scroll events.
|
void |
Actor.setUserObject(Object userObject)
Sets an application specific object for convenience.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
ColorAction.getColor() |
Color |
AlphaAction.getColor() |
Interpolation |
TemporalAction.getInterpolation() |
| Modifier and Type | Method and Description |
|---|---|
static AlphaAction |
Actions.alpha(float a,
float duration,
Interpolation interpolation)
Transitions from the alpha at the time this action starts to the specified alpha.
|
static ColorAction |
Actions.color(Color color,
float duration,
Interpolation interpolation)
Transitions from the color at the time this action starts to the specified color.
|
static AlphaAction |
Actions.fadeIn(float duration,
Interpolation interpolation)
Transitions from the alpha at the time this action starts to an alpha of 1.
|
static AlphaAction |
Actions.fadeOut(float duration,
Interpolation interpolation)
Transitions from the alpha at the time this action starts to an alpha of 0.
|
static MoveByAction |
Actions.moveBy(float amountX,
float amountY,
float duration,
Interpolation interpolation) |
static MoveToAction |
Actions.moveTo(float x,
float y,
float duration,
Interpolation interpolation) |
static MoveToAction |
Actions.moveToAligned(float x,
float y,
int alignment,
float duration,
Interpolation interpolation) |
static RotateByAction |
Actions.rotateBy(float rotationAmount,
float duration,
Interpolation interpolation) |
static RotateToAction |
Actions.rotateTo(float rotation,
float duration,
Interpolation interpolation) |
static ScaleByAction |
Actions.scaleBy(float amountX,
float amountY,
float duration,
Interpolation interpolation) |
static ScaleToAction |
Actions.scaleTo(float x,
float y,
float duration,
Interpolation interpolation) |
void |
ColorAction.setColor(Color color)
Sets the color to modify.
|
void |
AlphaAction.setColor(Color color)
Sets the color to modify.
|
void |
TemporalAction.setInterpolation(Interpolation interpolation) |
static SizeByAction |
Actions.sizeBy(float amountX,
float amountY,
float duration,
Interpolation interpolation) |
static SizeToAction |
Actions.sizeTo(float x,
float y,
float duration,
Interpolation interpolation) |
| Constructor and Description |
|---|
FloatAction(float start,
float end,
float duration,
Interpolation interpolation)
Creates a FloatAction that transitions from start to end.
|
IntAction(int start,
int end,
float duration,
Interpolation interpolation)
Creates a FloatAction that transitions from start to end.
|
TemporalAction(float duration,
Interpolation interpolation) |
| Modifier and Type | Field and Description |
|---|---|
Drawable |
Window.WindowStyle.background |
Drawable |
Tree.TreeStyle.background |
Drawable |
Touchpad.TouchpadStyle.background
Stretched in both directions.
|
Drawable |
TextTooltip.TextTooltipStyle.background |
Drawable |
TextField.TextFieldStyle.background |
Drawable |
SelectBox.SelectBoxStyle.background |
Drawable |
ScrollPane.ScrollPaneStyle.background |
Drawable |
ProgressBar.ProgressBarStyle.background
The progress bar background, stretched only in one direction.
|
Drawable |
List.ListStyle.background |
Drawable |
Label.LabelStyle.background |
Drawable |
SelectBox.SelectBoxStyle.backgroundDisabled |
Drawable |
Slider.SliderStyle.backgroundDown |
Drawable |
SelectBox.SelectBoxStyle.backgroundOpen |
Drawable |
Slider.SliderStyle.backgroundOver |
Drawable |
SelectBox.SelectBoxStyle.backgroundOver |
Drawable |
CheckBox.CheckBoxStyle.checkboxOffDisabled |
Drawable |
CheckBox.CheckBoxStyle.checkboxOnDisabled |
Drawable |
CheckBox.CheckBoxStyle.checkboxOnOver |
Drawable |
CheckBox.CheckBoxStyle.checkboxOver |
Drawable |
Button.ButtonStyle.checked |
Drawable |
Button.ButtonStyle.checkedDown |
Color |
TextButton.TextButtonStyle.checkedDownFontColor |
Drawable |
Button.ButtonStyle.checkedFocused |
Color |
TextButton.TextButtonStyle.checkedFocusedFontColor |
Color |
TextButton.TextButtonStyle.checkedFontColor |
Drawable |
Button.ButtonStyle.checkedOver |
Color |
TextButton.TextButtonStyle.checkedOverFontColor |
Drawable |
ScrollPane.ScrollPaneStyle.corner |
Drawable |
TextField.TextFieldStyle.cursor |
Drawable |
Button.ButtonStyle.disabled |
Drawable |
TextField.TextFieldStyle.disabledBackground |
Drawable |
ProgressBar.ProgressBarStyle.disabledBackground
The progress bar background, stretched only in one direction.
|
Color |
TextField.TextFieldStyle.disabledFontColor |
Color |
TextButton.TextButtonStyle.disabledFontColor |
Color |
SelectBox.SelectBoxStyle.disabledFontColor |
Drawable |
ProgressBar.ProgressBarStyle.disabledKnob |
Drawable |
ProgressBar.ProgressBarStyle.disabledKnobAfter |
Drawable |
ProgressBar.ProgressBarStyle.disabledKnobBefore |
Drawable |
List.ListStyle.down |
Drawable |
Button.ButtonStyle.down |
Color |
TextButton.TextButtonStyle.downFontColor |
Drawable |
Button.ButtonStyle.focused |
Drawable |
TextField.TextFieldStyle.focusedBackground |
Color |
TextField.TextFieldStyle.focusedFontColor |
Color |
TextButton.TextButtonStyle.focusedFontColor |
Color |
TextButton.TextButtonStyle.fontColor |
Color |
Label.LabelStyle.fontColor |
Drawable |
ScrollPane.ScrollPaneStyle.hScroll |
Drawable |
ScrollPane.ScrollPaneStyle.hScrollKnob |
Drawable |
ImageTextButton.ImageTextButtonStyle.imageChecked |
Drawable |
ImageButton.ImageButtonStyle.imageChecked |
Drawable |
ImageTextButton.ImageTextButtonStyle.imageCheckedDown |
Drawable |
ImageButton.ImageButtonStyle.imageCheckedDown |
Drawable |
ImageTextButton.ImageTextButtonStyle.imageCheckedOver |
Drawable |
ImageButton.ImageButtonStyle.imageCheckedOver |
Drawable |
ImageTextButton.ImageTextButtonStyle.imageDisabled |
Drawable |
ImageButton.ImageButtonStyle.imageDisabled |
Drawable |
ImageTextButton.ImageTextButtonStyle.imageDown |
Drawable |
ImageButton.ImageButtonStyle.imageDown |
Drawable |
ImageTextButton.ImageTextButtonStyle.imageOver |
Drawable |
ImageButton.ImageButtonStyle.imageOver |
Drawable |
ImageTextButton.ImageTextButtonStyle.imageUp |
Drawable |
ImageButton.ImageButtonStyle.imageUp |
Drawable |
Touchpad.TouchpadStyle.knob |
Drawable |
ProgressBar.ProgressBarStyle.knob |
Drawable |
ProgressBar.ProgressBarStyle.knobAfter |
Drawable |
Slider.SliderStyle.knobAfterDown |
Drawable |
Slider.SliderStyle.knobAfterOver |
Drawable |
ProgressBar.ProgressBarStyle.knobBefore |
Drawable |
Slider.SliderStyle.knobBeforeDown |
Drawable |
Slider.SliderStyle.knobBeforeOver |
Drawable |
Slider.SliderStyle.knobDown |
Drawable |
Slider.SliderStyle.knobOver |
BitmapFont |
TextField.TextFieldStyle.messageFont |
Color |
TextField.TextFieldStyle.messageFontColor |
Drawable |
Tree.TreeStyle.minusOver |
Drawable |
Tree.TreeStyle.over |
Drawable |
List.ListStyle.over |
Drawable |
Button.ButtonStyle.over |
Color |
TextButton.TextButtonStyle.overFontColor |
Color |
SelectBox.SelectBoxStyle.overFontColor |
Drawable |
Tree.TreeStyle.plusOver |
Drawable |
Tree.TreeStyle.selection |
Drawable |
TextField.TextFieldStyle.selection |
Drawable |
Window.WindowStyle.stageBackground |
Color |
Window.WindowStyle.titleFontColor |
Drawable |
Button.ButtonStyle.up |
Drawable |
ScrollPane.ScrollPaneStyle.vScroll |
Drawable |
ScrollPane.ScrollPaneStyle.vScrollKnob |
| Modifier and Type | Method and Description |
|---|---|
String |
Skin.find(Object resource)
Returns the name of the specified style object, or null if it is not in the skin.
|
N |
Tree.findNode(V value)
Returns the node with the specified value, or null.
|
N |
Tree.Node.findNode(V value)
Returns this node or the child node with the specified value, or null.
|
T |
Tooltip.getActor() |
Actor |
ScrollPane.getActor()
Returns the actor embedded in this scroll pane, or null.
|
T |
Container.getActor() |
T |
Cell.getActor()
Returns the actor for this cell, or null.
|
<T> ObjectMap<String,T> |
Skin.getAll(Class<T> type)
Returns the name to resource mapping for the specified type, or null if no resources of that type exist.
|
TextureAtlas |
Skin.getAtlas()
Returns the
TextureAtlas passed to this skin constructor, or null. |
Drawable |
Table.getBackground() |
Drawable |
Container.getBackground() |
ButtonGroup |
Button.getButtonGroup() |
<T extends Actor> |
Table.getCell(T actor)
Returns the cell for the specified actor in this table, or null.
|
T |
ButtonGroup.getChecked() |
Drawable |
Image.getDrawable() |
Drawable |
Tree.Node.getIcon() |
T |
List.getItemAt(float y) |
Value |
Cell.getMaxHeightValue() |
Value |
Cell.getMaxWidthValue() |
String |
TextField.getMessageText() |
Value |
Cell.getMinHeightValue() |
Value |
Cell.getMinWidthValue() |
N |
Tree.getNodeAt(float y) |
N |
Tree.getOverNode() |
V |
Tree.getOverValue() |
Value |
Cell.getPadBottomValue() |
Value |
Cell.getPadLeftValue() |
Value |
Cell.getPadRightValue() |
Value |
Cell.getPadTopValue() |
N |
Tree.Node.getParent() |
Value |
Cell.getPrefHeightValue() |
Value |
Cell.getPrefWidthValue() |
Array<TextureRegion> |
Skin.getRegions(String regionName) |
T |
SelectBox.getSelected()
Returns the first selected item, or null.
|
T |
List.getSelected()
Returns the first selected item, or null.
|
N |
Tree.getSelectedNode()
Returns the first selected node, or null.
|
V |
Tree.getSelectedValue()
Returns the first selected value, or null.
|
Skin |
Table.getSkin() |
Value |
Cell.getSpaceBottomValue() |
Value |
Cell.getSpaceLeftValue() |
Value |
Cell.getSpaceRightValue() |
Value |
Cell.getSpaceTopValue() |
TextField.TextFieldFilter |
TextField.getTextFieldFilter() |
Tree<N,V> |
Tree.Node.getTree()
Returns the tree this node's actor is currently in, or null.
|
V |
Tree.Node.getValue() |
Actor |
ScrollPane.getWidget()
Deprecated.
|
Actor |
Window.hit(float x,
float y,
boolean touchable) |
Actor |
Table.hit(float x,
float y,
boolean touchable) |
Actor |
ScrollPane.hit(float x,
float y,
boolean touchable) |
Actor |
Container.hit(float x,
float y,
boolean touchable) |
<T> T |
Skin.optional(String name,
Class<T> type)
Returns a named resource of the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
Cell<Label> |
Table.add(CharSequence text)
Adds a new cell with a label.
|
Cell<Label> |
Table.add(CharSequence text,
String labelStyleName)
Adds a new cell with a label.
|
Cell<Label> |
Table.add(CharSequence text,
String fontName,
Color color)
Adds a new cell with a label.
|
Cell<Label> |
Table.add(CharSequence text,
String fontName,
Color color)
Adds a new cell with a label.
|
Cell<Label> |
Table.add(CharSequence text,
String fontName,
String colorName)
Adds a new cell with a label.
|
<T extends Actor> |
Table.add(T actor)
Adds a new cell to the table with the specified actor.
|
void |
TextField.appendText(String str) |
Table |
Table.background(Drawable background) |
Container<T> |
Container.background(Drawable background) |
Dialog |
Dialog.button(Button button,
Object object)
Adds the given button to the button table.
|
Dialog |
Dialog.button(String text)
Adds a text button to the button table.
|
Dialog |
Dialog.button(String text,
Object object)
Adds a text button to the button table.
|
Dialog |
Dialog.button(String text,
Object object)
Adds a text button to the button table.
|
Dialog |
Dialog.button(String text,
Object object,
TextButton.TextButtonStyle buttonStyle)
Adds a text button to the button table.
|
Dialog |
Dialog.button(String text,
Object object,
TextButton.TextButtonStyle buttonStyle)
Adds a text button to the button table.
|
void |
Tooltip.enter(InputEvent event,
float x,
float y,
int pointer,
Actor fromActor) |
void |
Tooltip.exit(InputEvent event,
float x,
float y,
int pointer,
Actor toActor) |
abstract float |
Value.get(Actor context) |
float |
Value.Fixed.get(Actor context) |
void |
Dialog.hide(Action action)
Removes the dialog from the stage, restoring the previous keyboard and scroll focus, and adds the specified action to the
dialog.
|
Dialog |
Dialog.key(int keycode,
Object object)
If this key is pressed,
Dialog.result(Object) is called with the specified object. |
<A extends Actor> |
Cell.setActor(A newActor)
Sets the actor in this cell and adds the actor to the cell's table.
|
void |
ScrollPane.setActor(Actor actor)
Sets the
Actor embedded in this scroll pane. |
void |
Tooltip.setActor(T contents) |
void |
Container.setActor(T actor) |
void |
Table.setBackground(Drawable background) |
void |
Container.setBackground(Drawable background)
Sets the background drawable and adjusts the container's padding to match the background.
|
void |
Container.setBackground(Drawable background,
boolean adjustPadding)
Sets the background drawable and, if adjustPadding is true, sets the container's padding to
Drawable.getBottomHeight() , Drawable.getTopHeight(), Drawable.getLeftWidth(), and
Drawable.getRightWidth(). |
void |
List.setCullingArea(Rectangle cullingArea) |
void |
Image.setDrawable(Drawable drawable)
Sets a new drawable for the image.
|
void |
Label.setEllipsis(String ellipsis)
When non-null the text will be truncated "..." if it does not fit within the width of the label.
|
void |
SplitPane.setFirstWidget(Actor widget) |
void |
Tree.Node.setIcon(Drawable icon)
Sets an icon that will be drawn to the left of the actor.
|
void |
TextField.setMessageText(String messageText)
Sets the text that will be drawn in the text field if no text has been entered.
|
void |
Dialog.setObject(Actor actor,
Object object) |
void |
Tree.setOverNode(N overNode) |
void |
SplitPane.setSecondWidget(Actor widget) |
void |
SelectBox.setSelected(T item)
Sets the selection to only the passed item, if it is a possible choice, else selects the first item.
|
void |
List.setSelected(T item)
Sets the selection to only the passed item, if it is a possible choice.
|
void |
Table.setSkin(Skin skin) |
void |
Slider.setSnapToValues(float[] values,
float threshold)
Will make this progress bar snap to the specified values, if the knob is within the threshold.
|
void |
Label.setText(CharSequence newText) |
void |
TextField.setText(String str) |
void |
TextButton.setText(String text) |
void |
TextField.setTextFieldFilter(TextField.TextFieldFilter filter) |
void |
TextField.setTextFieldListener(TextField.TextFieldListener listener) |
void |
Tree.Node.setValue(V value)
Sets an application specific value for this node.
|
void |
ScrollPane.setWidget(Actor actor)
Deprecated.
|
Dialog |
Dialog.show(Stage stage,
Action action)
Packs the dialog (but doesn't set the position), adds it to the stage, sets it as the keyboard and scroll
focus, clears any actions on the dialog, and adds the specified action to it. |
Cell<Stack> |
Table.stack(Actor... actors)
Adds a new cell to the table with the specified actors in a
Stack. |
Dialog |
Dialog.text(String text)
Adds a label to the content table.
|
Dialog |
Dialog.text(String text,
Label.LabelStyle labelStyle)
Adds a label to the content table.
|
| Constructor and Description |
|---|
Button(Drawable up) |
Button(Drawable up,
Drawable down) |
Button(Drawable up,
Drawable down) |
Button(Drawable up,
Drawable down,
Drawable checked) |
Button(Drawable up,
Drawable down,
Drawable checked) |
Button(Drawable up,
Drawable down,
Drawable checked) |
ButtonStyle(Drawable up,
Drawable down,
Drawable checked) |
ButtonStyle(Drawable up,
Drawable down,
Drawable checked) |
ButtonStyle(Drawable up,
Drawable down,
Drawable checked) |
CheckBox(String text,
CheckBox.CheckBoxStyle style) |
CheckBox(String text,
Skin skin) |
CheckBox(String text,
Skin skin,
String styleName) |
CheckBoxStyle(Drawable checkboxOff,
Drawable checkboxOn,
BitmapFont font,
Color fontColor) |
Container(T actor) |
Image(Drawable drawable)
Creates an image stretched, and aligned center.
|
Image(Drawable drawable,
Scaling scaling)
Creates an image aligned center.
|
Image(Drawable drawable,
Scaling scaling,
int align) |
Image(NinePatch patch)
Creates an image stretched, and aligned center.
|
Image(TextureRegion region)
Creates an image stretched, and aligned center.
|
ImageButton(Drawable imageUp) |
ImageButton(Drawable imageUp,
Drawable imageDown) |
ImageButton(Drawable imageUp,
Drawable imageDown) |
ImageButton(Drawable imageUp,
Drawable imageDown,
Drawable imageChecked) |
ImageButton(Drawable imageUp,
Drawable imageDown,
Drawable imageChecked) |
ImageButton(Drawable imageUp,
Drawable imageDown,
Drawable imageChecked) |
ImageButtonStyle(Drawable up,
Drawable down,
Drawable checked,
Drawable imageUp,
Drawable imageDown,
Drawable imageChecked) |
ImageButtonStyle(Drawable up,
Drawable down,
Drawable checked,
Drawable imageUp,
Drawable imageDown,
Drawable imageChecked) |
ImageButtonStyle(Drawable up,
Drawable down,
Drawable checked,
Drawable imageUp,
Drawable imageDown,
Drawable imageChecked) |
ImageButtonStyle(Drawable up,
Drawable down,
Drawable checked,
Drawable imageUp,
Drawable imageDown,
Drawable imageChecked) |
ImageButtonStyle(Drawable up,
Drawable down,
Drawable checked,
Drawable imageUp,
Drawable imageDown,
Drawable imageChecked) |
ImageButtonStyle(Drawable up,
Drawable down,
Drawable checked,
Drawable imageUp,
Drawable imageDown,
Drawable imageChecked) |
ImageTextButton(String text,
ImageTextButton.ImageTextButtonStyle style) |
ImageTextButton(String text,
Skin skin) |
ImageTextButton(String text,
Skin skin,
String styleName) |
ImageTextButtonStyle(Drawable up,
Drawable down,
Drawable checked,
BitmapFont font) |
ImageTextButtonStyle(Drawable up,
Drawable down,
Drawable checked,
BitmapFont font) |
ImageTextButtonStyle(Drawable up,
Drawable down,
Drawable checked,
BitmapFont font) |
Label(CharSequence text,
Label.LabelStyle style) |
Label(CharSequence text,
Skin skin) |
Label(CharSequence text,
Skin skin,
String styleName) |
Label(CharSequence text,
Skin skin,
String fontName,
Color color)
Creates a label, using a
Label.LabelStyle that has a BitmapFont with the specified name from the skin and the specified
color. |
Label(CharSequence text,
Skin skin,
String fontName,
String colorName)
Creates a label, using a
Label.LabelStyle that has a BitmapFont with the specified name and the specified color from the
skin. |
LabelStyle(BitmapFont font,
Color fontColor) |
ProgressBarStyle(Drawable background,
Drawable knob) |
ProgressBarStyle(Drawable background,
Drawable knob) |
ScrollPane(Actor widget) |
ScrollPane(Actor widget,
ScrollPane.ScrollPaneStyle style) |
ScrollPane(Actor widget,
Skin skin) |
ScrollPane(Actor widget,
Skin skin,
String styleName) |
ScrollPaneStyle(Drawable background,
Drawable hScroll,
Drawable hScrollKnob,
Drawable vScroll,
Drawable vScrollKnob) |
ScrollPaneStyle(Drawable background,
Drawable hScroll,
Drawable hScrollKnob,
Drawable vScroll,
Drawable vScrollKnob) |
ScrollPaneStyle(Drawable background,
Drawable hScroll,
Drawable hScrollKnob,
Drawable vScroll,
Drawable vScrollKnob) |
ScrollPaneStyle(Drawable background,
Drawable hScroll,
Drawable hScrollKnob,
Drawable vScroll,
Drawable vScrollKnob) |
ScrollPaneStyle(Drawable background,
Drawable hScroll,
Drawable hScrollKnob,
Drawable vScroll,
Drawable vScrollKnob) |
SelectBoxStyle(BitmapFont font,
Color fontColor,
Drawable background,
ScrollPane.ScrollPaneStyle scrollStyle,
List.ListStyle listStyle) |
SliderStyle(Drawable background,
Drawable knob) |
SliderStyle(Drawable background,
Drawable knob) |
SplitPane(Actor firstWidget,
Actor secondWidget,
boolean vertical,
Skin skin) |
SplitPane(Actor firstWidget,
Actor secondWidget,
boolean vertical,
Skin skin) |
SplitPane(Actor firstWidget,
Actor secondWidget,
boolean vertical,
Skin skin,
String styleName) |
SplitPane(Actor firstWidget,
Actor secondWidget,
boolean vertical,
Skin skin,
String styleName) |
SplitPane(Actor firstWidget,
Actor secondWidget,
boolean vertical,
SplitPane.SplitPaneStyle style) |
SplitPane(Actor firstWidget,
Actor secondWidget,
boolean vertical,
SplitPane.SplitPaneStyle style) |
Table(Skin skin)
Creates a table with a skin, which is required to use
Table.add(CharSequence) or Table.add(CharSequence, String). |
TextButton(String text,
Skin skin) |
TextButton(String text,
Skin skin,
String styleName) |
TextButton(String text,
TextButton.TextButtonStyle style) |
TextButtonStyle(Drawable up,
Drawable down,
Drawable checked,
BitmapFont font) |
TextButtonStyle(Drawable up,
Drawable down,
Drawable checked,
BitmapFont font) |
TextButtonStyle(Drawable up,
Drawable down,
Drawable checked,
BitmapFont font) |
TextButtonStyle(Drawable up,
Drawable down,
Drawable checked,
BitmapFont font) |
TextField(String text,
Skin skin) |
TextField(String text,
Skin skin,
String styleName) |
TextField(String text,
TextField.TextFieldStyle style) |
TextFieldStyle(BitmapFont font,
Color fontColor,
Drawable cursor,
Drawable selection,
Drawable background) |
TextFieldStyle(BitmapFont font,
Color fontColor,
Drawable cursor,
Drawable selection,
Drawable background) |
TextFieldStyle(BitmapFont font,
Color fontColor,
Drawable cursor,
Drawable selection,
Drawable background) |
TextTooltip(String text,
Skin skin) |
TextTooltip(String text,
Skin skin,
String styleName) |
TextTooltip(String text,
TextTooltip.TextTooltipStyle style) |
TextTooltip(String text,
TooltipManager manager,
Skin skin) |
TextTooltip(String text,
TooltipManager manager,
Skin skin,
String styleName) |
TextTooltip(String text,
TooltipManager manager,
TextTooltip.TextTooltipStyle style) |
TextTooltipStyle(Label.LabelStyle label,
Drawable background) |
Tooltip(T contents) |
Tooltip(T contents,
TooltipManager manager) |
TouchpadStyle(Drawable background,
Drawable knob) |
TouchpadStyle(Drawable background,
Drawable knob) |
TreeStyle(Drawable plus,
Drawable minus,
Drawable selection) |
WindowStyle(BitmapFont titleFont,
Color titleFontColor,
Drawable background) |
| Modifier and Type | Method and Description |
|---|---|
abstract DragAndDrop.Payload |
DragAndDrop.Source.dragStart(InputEvent event,
float x,
float y,
int pointer)
Called when a drag is started on the source.
|
T |
Selection.first()
Returns the first selected item, or null.
|
Actor |
DragAndDrop.getDragActor()
Returns the current drag actor, or null.
|
Actor |
DragAndDrop.Payload.getDragActor() |
DragAndDrop.Payload |
DragAndDrop.getDragPayload()
Returns the current drag payload, or null.
|
DragAndDrop.Source |
DragAndDrop.getDragSource()
Returns the current drag source, or null.
|
Actor |
DragAndDrop.Payload.getInvalidDragActor() |
T |
Selection.getLastSelected()
Makes a best effort to return the last item selected, else returns an arbitrary item or null if the selection is empty.
|
String |
BaseDrawable.getName() |
Object |
DragAndDrop.Payload.getObject() |
Actor |
FocusListener.FocusEvent.getRelatedActor()
The actor related to the event.
|
Actor |
ActorGestureListener.getTouchDownTarget() |
Actor |
DragAndDrop.Payload.getValidDragActor() |
static Rectangle |
ScissorStack.peekScissors() |
String |
BaseDrawable.toString() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Selection.contains(T item) |
void |
DragAndDrop.Source.dragStop(InputEvent event,
float x,
float y,
int pointer,
DragAndDrop.Payload payload,
DragAndDrop.Target target)
Called when a drag for the source is stopped.
|
void |
DragAndDrop.Source.dragStop(InputEvent event,
float x,
float y,
int pointer,
DragAndDrop.Payload payload,
DragAndDrop.Target target)
Called when a drag for the source is stopped.
|
void |
ClickListener.enter(InputEvent event,
float x,
float y,
int pointer,
Actor fromActor) |
void |
ClickListener.exit(InputEvent event,
float x,
float y,
int pointer,
Actor toActor) |
void |
Selection.setActor(Actor actor) |
void |
Cullable.setCullingArea(Rectangle cullingArea) |
void |
DragAndDrop.Payload.setDragActor(Actor dragActor) |
void |
DragAndDrop.Payload.setInvalidDragActor(Actor invalidDragActor) |
void |
BaseDrawable.setName(String name) |
void |
DragAndDrop.Payload.setObject(Object object) |
void |
FocusListener.FocusEvent.setRelatedActor(Actor relatedActor) |
void |
DragAndDrop.Payload.setValidDragActor(Actor validDragActor) |
| Modifier and Type | Field and Description |
|---|---|
QuadTreeFloat |
QuadTreeFloat.ne |
QuadTreeFloat |
QuadTreeFloat.nw |
QuadTreeFloat |
QuadTreeFloat.se |
QuadTreeFloat |
QuadTreeFloat.sw |
V |
ObjectMap.Entry.value |
V |
LongMap.Entry.value |
V |
IntMap.Entry.value |
| Modifier and Type | Method and Description |
|---|---|
String |
JsonValue.asString()
Returns this value as a string.
|
JsonValue |
JsonValue.child()
Returns the first child for this object or array.
|
K |
ObjectFloatMap.findKey(float value)
Returns the key for the specified value, or null if it is not in the map.
|
K |
ObjectFloatMap.findKey(float value,
float epsilon)
Returns the key for the specified value, or null if it is not in the map.
|
K |
ObjectIntMap.findKey(int value)
Returns the key for the specified value, or null if it is not in the map.
|
K |
ObjectLongMap.findKey(long value)
Returns the key for the specified value, or null if it is not in the map.
|
K |
ObjectMap.findKey(Object value,
boolean identity)
Returns the key for the specified value, or null if it is not in the map.
|
<T> T |
Json.fromJson(Class<T> type,
char[] data,
int offset,
int length) |
<T> T |
Json.fromJson(Class<T> type,
Class elementType,
char[] data,
int offset,
int length) |
<T> T |
Json.fromJson(Class<T> type,
Class elementType,
FileHandle file) |
<T> T |
Json.fromJson(Class<T> type,
Class elementType,
InputStream input) |
<T> T |
Json.fromJson(Class<T> type,
Class elementType,
Reader reader) |
<T> T |
Json.fromJson(Class<T> type,
Class elementType,
String json) |
<T> T |
Json.fromJson(Class<T> type,
FileHandle file) |
<T> T |
Json.fromJson(Class<T> type,
InputStream input) |
<T> T |
Json.fromJson(Class<T> type,
Reader reader) |
<T> T |
Json.fromJson(Class<T> type,
String json) |
JsonValue |
JsonValue.get(int index)
Returns the child at the specified index.
|
V |
ArrayMap.get(K key)
Returns the value (which may be null) for the specified key, or null if the key is not in the map.
|
V |
ArrayMap.get(K key,
V defaultValue)
Returns the value (which may be null) for the specified key, or the default value if the key is not in the map.
|
V |
LongMap.get(long key) |
JsonValue |
JsonValue.get(String name)
Returns the child with the specified name.
|
T |
ObjectSet.get(T key) |
<T extends K> |
ObjectMap.get(T key)
Returns the value for the specified key, or null if the key is not in the map.
|
JsonValue |
JsonValue.getChild(String name)
Finds the child with the specified name and returns its first child.
|
XmlReader.Element |
XmlReader.Element.getChildByName(String name) |
XmlReader.Element |
XmlReader.Element.getChildByNameRecursive(String name) |
Class |
Json.getClass(String tag)
Returns the class for the specified tag, or null.
|
K |
ArrayMap.getKey(V value,
boolean identity)
Returns the key for the specified value.
|
String |
Json.getTag(Class type)
Returns the tag for the specified class, or null.
|
E |
SortedIntList.insert(int index,
E value)
Inserts an element into the list at the given index
|
String |
JsonValue.name()
Returns the name for this object value.
|
T |
PooledLinkedList.next()
Gets the next item in the list
|
V |
ObjectMap.Values.next() |
V |
LongMap.Values.next() |
JsonValue |
JsonValue.next()
Returns the next sibling of this value.
|
V |
IntMap.Values.next() |
JsonValue |
JsonValue.parent()
Returns the parent for this value.
|
T |
AtomicQueue.poll() |
JsonValue |
JsonValue.prev()
Returns the previous sibling of this value.
|
T |
PooledLinkedList.previous()
Gets the previous item in the list
|
V |
IntMap.put(int key,
V value) |
V |
ObjectMap.put(K key,
V value)
Returns the old value associated with the specified key, or null.
|
V |
LongMap.put(long key,
V value) |
T |
Array.random()
Returns a random item from the array, or null if the array is empty.
|
String |
DataInput.readString()
Reads the length and string of UTF8 characters, or null.
|
<T> T |
Json.readValue(Class<T> type,
Class elementType,
JsonValue jsonData) |
<T> T |
Json.readValue(Class<T> type,
Class elementType,
T defaultValue,
JsonValue jsonData) |
<T> T |
Json.readValue(Class<T> type,
JsonValue jsonData) |
<T> T |
Json.readValue(String name,
Class<T> type,
Class elementType,
JsonValue jsonMap) |
<T> T |
Json.readValue(String name,
Class<T> type,
Class elementType,
T defaultValue,
JsonValue jsonMap) |
<T> T |
Json.readValue(String name,
Class<T> type,
JsonValue jsonMap) |
<T> T |
Json.readValue(String name,
Class<T> type,
T defaultValue,
JsonValue jsonMap) |
JsonValue |
JsonValue.remove(int index)
Removes the child with the specified index.
|
V |
IntMap.remove(int key)
Returns the value for the removed key, or null if the key is not in the map.
|
V |
ObjectMap.remove(K key)
Returns the value for the removed key, or null if the key is not in the map.
|
V |
LongMap.remove(long key)
Returns the value for the removed key, or null if the key is not in the map.
|
JsonValue |
JsonValue.remove(String name)
Removes the child with the specified name.
|
V |
ArrayMap.removeKey(K key) |
T |
PooledLinkedList.removeLast()
Removes the tail of the list regardless of iteration status
|
| Modifier and Type | Method and Description |
|---|---|
void |
Queue.addFirst(T object)
Prepend given object to the head.
|
void |
Queue.addLast(T object)
Append given object to the tail.
|
boolean |
Array.contains(T value,
boolean identity)
Returns true if this array contains the specified value.
|
boolean |
ObjectMap.containsValue(Object value,
boolean identity)
Returns true if the specified value is in the map.
|
boolean |
LongMap.containsValue(Object value,
boolean identity)
Returns true if the specified value is in the map.
|
boolean |
IntMap.containsValue(Object value,
boolean identity)
Returns true if the specified value is in the map.
|
static String |
StreamUtils.copyStreamToString(InputStream input,
int estimatedSize,
String charset)
Copy the data from an
InputStream to a string using the specified charset. |
boolean |
ObjectMap.equalsIdentity(Object obj)
Uses == for comparison of each value.
|
boolean |
LongMap.equalsIdentity(Object obj)
Uses == for comparison of each value.
|
boolean |
IntMap.equalsIdentity(Object obj)
Uses == for comparison of each value.
|
boolean |
StringBuilder.equalsIgnoreCase(String other) |
boolean |
StringBuilder.equalsIgnoreCase(StringBuilder other) |
K |
ObjectMap.findKey(Object value,
boolean identity)
Returns the key for the specified value, or null if it is not in the map.
|
int |
IntMap.findKey(Object value,
boolean identity,
int notFound)
Returns the key for the specified value, or notFound if it is not in the map.
|
long |
LongMap.findKey(Object value,
boolean identity,
long notFound)
Returns the key for the specified value, or notFound if it is not in the map.
|
V |
IntMap.get(int key,
V defaultValue) |
V |
ObjectMap.get(K key,
V defaultValue)
Returns the value for the specified key, or the default value if the key is not in the map.
|
V |
ArrayMap.get(K key,
V defaultValue)
Returns the value (which may be null) for the specified key, or the default value if the key is not in the map.
|
V |
LongMap.get(long key,
V defaultValue) |
String |
JsonValue.getString(String name,
String defaultValue)
Finds the child with the specified name and returns it as a string.
|
int |
Array.indexOf(T value,
boolean identity)
Returns the index of first occurrence of value in the array, or -1 if no such value exists.
|
int |
Array.lastIndexOf(T value,
boolean identity)
Returns an index of last occurrence of value in array or -1 if no such value exists.
|
String |
Json.prettyPrint(Object object) |
String |
Json.prettyPrint(Object object,
int singleLineColumns) |
String |
Json.prettyPrint(Object object,
JsonValue.PrettyPrintSettings settings) |
V |
IntMap.put(int key,
V value) |
V |
ObjectMap.put(K key,
V value)
Returns the old value associated with the specified key, or null.
|
V |
LongMap.put(long key,
V value) |
boolean |
AtomicQueue.put(T value) |
void |
Json.readField(Object object,
Field field,
String jsonName,
Class elementType,
JsonValue jsonMap) |
void |
Json.readField(Object object,
Field field,
String jsonName,
Class elementType,
JsonValue jsonMap) |
void |
Json.readField(Object object,
String name,
Class elementType,
JsonValue jsonData) |
void |
Json.readField(Object object,
String fieldName,
String jsonName,
Class elementType,
JsonValue jsonMap) |
<T> T |
Json.readValue(Class<T> type,
Class elementType,
JsonValue jsonData) |
<T> T |
Json.readValue(Class<T> type,
Class elementType,
JsonValue jsonData) |
<T> T |
Json.readValue(Class<T> type,
Class elementType,
T defaultValue,
JsonValue jsonData) |
<T> T |
Json.readValue(Class<T> type,
Class elementType,
T defaultValue,
JsonValue jsonData) |
<T> T |
Json.readValue(Class<T> type,
JsonValue jsonData) |
<T> T |
Json.readValue(String name,
Class<T> type,
Class elementType,
JsonValue jsonMap) |
<T> T |
Json.readValue(String name,
Class<T> type,
Class elementType,
JsonValue jsonMap) |
<T> T |
Json.readValue(String name,
Class<T> type,
Class elementType,
T defaultValue,
JsonValue jsonMap) |
<T> T |
Json.readValue(String name,
Class<T> type,
Class elementType,
T defaultValue,
JsonValue jsonMap) |
<T> T |
Json.readValue(String name,
Class<T> type,
JsonValue jsonMap) |
<T> T |
Json.readValue(String name,
Class<T> type,
T defaultValue,
JsonValue jsonMap) |
boolean |
Array.removeValue(T value,
boolean identity)
Removes the first instance of the specified value in the array.
|
void |
JsonValue.set(double value,
String stringValue) |
void |
JsonValue.set(long value,
String stringValue) |
void |
JsonValue.set(String value) |
void |
Json.setDefaultSerializer(Json.Serializer defaultSerializer)
Sets the serializer to use when the type being deserialized is not known (null).
|
void |
JsonValue.setName(String name) |
void |
JsonValue.setNext(JsonValue next)
Sets the next sibling of this value.
|
void |
JsonValue.setPrev(JsonValue prev)
Sets the next sibling of this value.
|
void |
Json.setTypeName(String typeName)
Sets the name of the JSON field to store the Java class name or class tag when required to avoid ambiguity during
deserialization.
|
String |
Json.toJson(Object object) |
String |
Json.toJson(Object object,
Class knownType) |
String |
Json.toJson(Object object,
Class knownType) |
String |
Json.toJson(Object object,
Class knownType,
Class elementType) |
String |
Json.toJson(Object object,
Class knownType,
Class elementType) |
String |
Json.toJson(Object object,
Class knownType,
Class elementType) |
void |
Json.toJson(Object object,
Class knownType,
Class elementType,
FileHandle file) |
void |
Json.toJson(Object object,
Class knownType,
Class elementType,
FileHandle file) |
void |
Json.toJson(Object object,
Class knownType,
Class elementType,
FileHandle file) |
void |
Json.toJson(Object object,
Class knownType,
Class elementType,
Writer writer) |
void |
Json.toJson(Object object,
Class knownType,
Class elementType,
Writer writer) |
void |
Json.toJson(Object object,
Class knownType,
Class elementType,
Writer writer) |
void |
Json.toJson(Object object,
Class knownType,
FileHandle file) |
void |
Json.toJson(Object object,
Class knownType,
FileHandle file) |
void |
Json.toJson(Object object,
Class knownType,
Writer writer) |
void |
Json.toJson(Object object,
Class knownType,
Writer writer) |
void |
Json.toJson(Object object,
FileHandle file) |
void |
Json.toJson(Object object,
Writer writer) |
void |
Json.writeField(Object object,
String name,
Class elementType) |
void |
Json.writeField(Object object,
String fieldName,
String jsonName,
Class elementType)
Writes the specified field to the current JSON object.
|
void |
Json.writeObjectStart(Class actualType,
Class knownType)
Starts writing an object, writing the actualType to a field if needed.
|
void |
Json.writeObjectStart(String name,
Class actualType,
Class knownType) |
void |
DataOutput.writeString(String value)
Writes a length and then the string as UTF8.
|
void |
Json.writeValue(Object value)
Writes the value, without writing the class of the object.
|
void |
Json.writeValue(Object value,
Class knownType)
Writes the value, writing the class of the object if it differs from the specified known type.
|
void |
Json.writeValue(Object value,
Class knownType)
Writes the value, writing the class of the object if it differs from the specified known type.
|
void |
Json.writeValue(Object value,
Class knownType,
Class elementType)
Writes the value, writing the class of the object if it differs from the specified known type.
|
void |
Json.writeValue(Object value,
Class knownType,
Class elementType)
Writes the value, writing the class of the object if it differs from the specified known type.
|
void |
Json.writeValue(Object value,
Class knownType,
Class elementType)
Writes the value, writing the class of the object if it differs from the specified known type.
|
void |
Json.writeValue(String name,
Object value)
Writes the value as a field on the current JSON object, without writing the actual class.
|
void |
Json.writeValue(String name,
Object value,
Class knownType)
Writes the value as a field on the current JSON object, writing the class of the object if it differs from the specified
known type.
|
void |
Json.writeValue(String name,
Object value,
Class knownType)
Writes the value as a field on the current JSON object, writing the class of the object if it differs from the specified
known type.
|
void |
Json.writeValue(String name,
Object value,
Class knownType,
Class elementType)
Writes the value as a field on the current JSON object, writing the class of the object if it differs from the specified
known type.
|
void |
Json.writeValue(String name,
Object value,
Class knownType,
Class elementType)
Writes the value as a field on the current JSON object, writing the class of the object if it differs from the specified
known type.
|
void |
Json.writeValue(String name,
Object value,
Class knownType,
Class elementType)
Writes the value as a field on the current JSON object, writing the class of the object if it differs from the specified
known type.
|
| Constructor and Description |
|---|
JsonValue(String value) |
Copyright © 2021. All rights reserved.