Uses of Class
com.badlogic.gdx.scenes.scene2d.Actor
-
Packages that use Actor Package Description com.badlogic.gdx.scenes.scene2d com.badlogic.gdx.scenes.scene2d.actions com.badlogic.gdx.scenes.scene2d.ui com.badlogic.gdx.scenes.scene2d.utils -
-
Uses of Actor in com.badlogic.gdx.scenes.scene2d
Subclasses of Actor in com.badlogic.gdx.scenes.scene2d Modifier and Type Class Description class
Group
2D scene graph node that may contain other actors.Fields in com.badlogic.gdx.scenes.scene2d declared as Actor Modifier and Type Field Description protected Actor
Action. actor
The actor this action is attached to, or null if it is not attached.protected Actor
Action. target
The actor this action targets, or null if a target has not been set.Methods in com.badlogic.gdx.scenes.scene2d with type parameters of type Actor Modifier and Type Method Description <T extends Actor>
TGroup. findActor(java.lang.String name)
Returns the first actor found with the specified name.<T extends Actor>
TActor. firstAscendant(java.lang.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.Methods in com.badlogic.gdx.scenes.scene2d that return Actor Modifier and Type Method Description Actor
Actor. debug()
CallssetDebug(boolean)
withtrue
.Actor
Action. getActor()
Actor
Group. getChild(int index)
Returns the child at the specified index.Actor
Stage. getKeyboardFocus()
Gets the actor that will receive key events.Actor
Event. getListenerActor()
Returns the actor that this listener is attached to.Actor
InputEvent. getRelatedActor()
The actor related to the event.Actor
Stage. getScrollFocus()
Gets the actor that will receive scroll events.Actor
Action. getTarget()
Actor
Event. getTarget()
Returns the actor that the event originated from.Actor
Actor. hit(float x, float y, boolean touchable)
Actor
Group. hit(float x, float y, boolean touchable)
Actor
Stage. hit(float stageX, float stageY, boolean touchable)
Returns theActor
at the specified location in stage coordinates.Actor
Group. removeActorAt(int index, boolean unfocus)
Removes an actor from this group.Methods in com.badlogic.gdx.scenes.scene2d that return types with arguments of type Actor Modifier and Type Method Description Array<Actor>
Stage. getActors()
Returns the root's child actors.SnapshotArray<Actor>
Group. getChildren()
Returns an ordered list of child actors in this group.Methods in com.badlogic.gdx.scenes.scene2d with parameters of type Actor Modifier and Type Method Description protected void
Stage. actorRemoved(Actor actor)
Called just before an actor is removed from a group.void
Group. addActor(Actor actor)
Adds an actor as a child of this group, removing it from its previous parent.void
Stage. addActor(Actor actor)
Adds an actor to the root of the stage.void
Group. addActorAfter(Actor actorAfter, Actor actor)
Adds an actor as a child of this group immediately after another child actor, removing it from its previous parent.void
Group. addActorAt(int index, Actor actor)
Adds an actor as a child of this group at a specific index, removing it from its previous parent.void
Group. addActorBefore(Actor actorBefore, Actor actor)
Adds an actor as a child of this group immediately before another child actor, removing it from its previous parent.void
Stage. addTouchFocus(EventListener listener, Actor listenerActor, Actor target, int pointer, int button)
Adds the listener to be notified for all touchDragged and touchUp events for the specified pointer and button.void
Stage. cancelTouchFocus(Actor listenerActor)
Cancels touch focus for all listeners with the specified listener actor.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.boolean
Actor. isAscendantOf(Actor actor)
Returns true if this actor is the same as or is the ascendant of the specified actor.boolean
Actor. isDescendantOf(Actor actor)
Returns true if this actor is the same as or is the descendant of the specified actor.Vector2
Actor. localToActorCoordinates(Actor actor, Vector2 localCoords)
Converts coordinates for this actor to those of another actor, which can be anywhere in the stage.Vector2
Actor. localToAscendantCoordinates(Actor ascendant, Vector2 localCoords)
Converts coordinates for this actor to those of an ascendant.Vector2
Group. localToDescendantCoordinates(Actor descendant, Vector2 localCoords)
Converts coordinates for this group to those of a descendant actor.boolean
Group. removeActor(Actor actor)
Removes an actor from this group and unfocuses it.boolean
Group. removeActor(Actor actor, boolean unfocus)
Removes an actor from this group.void
Stage. removeTouchFocus(EventListener listener, Actor listenerActor, Actor target, int pointer, int button)
Removes touch focus for the specified listener, pointer, and button.void
Action. setActor(Actor actor)
Sets the actor this action is attached to.boolean
Stage. setKeyboardFocus(Actor actor)
Sets the actor that will receive key events.void
Event. setListenerActor(Actor listenerActor)
void
InputEvent. setRelatedActor(Actor relatedActor)
boolean
Stage. setScrollFocus(Actor actor)
Sets the actor that will receive scroll events.void
Action. setTarget(Actor target)
Sets the actor this action will manipulate.void
Event. setTarget(Actor targetActor)
boolean
Group. swapActor(Actor first, Actor second)
Swaps two actors.Vector2
InputEvent. toCoordinates(Actor actor, Vector2 actorCoords)
Sets actorCoords to this event's coordinates relative to the specified actor.void
Stage. unfocus(Actor actor)
Removes the touch, keyboard, and scroll focus for the specified actor and any descendants. -
Uses of Actor in com.badlogic.gdx.scenes.scene2d.actions
Methods in com.badlogic.gdx.scenes.scene2d.actions with parameters of type Actor Modifier and Type Method Description static AddAction
Actions. addAction(Action action, Actor targetActor)
static AddListenerAction
Actions. addListener(EventListener listener, boolean capture, Actor targetActor)
static RemoveAction
Actions. removeAction(Action action, Actor targetActor)
static RemoveActorAction
Actions. removeActor(Actor removeActor)
static RemoveListenerAction
Actions. removeListener(EventListener listener, boolean capture, Actor targetActor)
void
DelegateAction. setActor(Actor actor)
void
ParallelAction. setActor(Actor actor)
void
AfterAction. setTarget(Actor target)
void
DelegateAction. setTarget(Actor target)
void
EventAction. setTarget(Actor newTarget)
void
LayoutAction. setTarget(Actor actor)
static Action
Actions. targeting(Actor target, Action action)
Sets the target of an action and returns the action. -
Uses of Actor in com.badlogic.gdx.scenes.scene2d.ui
Classes in com.badlogic.gdx.scenes.scene2d.ui with type parameters of type Actor Modifier and Type Class Description class
Cell<T extends Actor>
A cell for aTable
.class
Container<T extends Actor>
A group with a single child that sizes and positions the child using constraints.class
Tooltip<T extends Actor>
A listener that shows a tooltip actor when the mouse is over another actor.static class
Tree.Node<N extends Tree.Node,V,A extends Actor>
ATree
node which has an actor and value.Subclasses of Actor in com.badlogic.gdx.scenes.scene2d.ui Modifier and Type Class Description class
Button
class
CheckBox
A checkbox is a button that contains an image indicating the checked or unchecked state and a label.class
Container<T extends Actor>
A group with a single child that sizes and positions the child using constraints.class
Dialog
Displays a dialog, which is a window with a title, a content table, and a button table.class
HorizontalGroup
A group that lays out its children side by side horizontally, with optional wrapping.class
Image
Displays aDrawable
, scaled various way within the widgets bounds.class
ImageButton
A button with a childImage
to display an image.class
ImageTextButton
class
Label
A text label, with optional word wrapping.class
List<T>
A list (aka list box) displays textual items and highlights the currently selected item.class
ParticleEffectActor
ParticleEffectActor holds anParticleEffect
to use in Scene2d applications.class
ProgressBar
A progress bar is a widget that visually displays the progress of some activity or a value within given range.class
ScrollPane
A group that scrolls a child actor using scrollbars and/or mouse or touch dragging.class
SelectBox<T>
A select box (aka a drop-down list) allows a user to choose one of a number of values from a list.static class
SelectBox.SelectBoxScrollPane<T>
The scroll pane shown when a select box is open.class
Slider
A slider is a horizontal indicator that allows a user to set a value.class
SplitPane
A container that contains two widgets and is divided either horizontally or vertically.class
Stack
A stack is a container that sizes its children to its size and positions them at 0,0 on top of each other.class
Table
A group that sizes and positions children using table constraints.class
TextArea
A text input field with multiple lines.class
TextButton
A button with a childLabel
to display text.class
TextField
A single-line text input field.class
Touchpad
An on-screen joystick.class
Tree<N extends Tree.Node,V>
A tree widget where each node has an icon, actor, and child nodes.class
VerticalGroup
A group that lays out its children top to bottom vertically, with optional wrapping.class
Widget
AnActor
that participates in layout and provides a minimum, preferred, and maximum size.class
WidgetGroup
AGroup
that participates in layout and provides a minimum, preferred, and maximum size.class
Window
A table that can be dragged and act as a modal window.Methods in com.badlogic.gdx.scenes.scene2d.ui with type parameters of type Actor Modifier and Type Method Description <T extends Actor>
Cell<T>Table. add(T actor)
Adds a new cell to the table with the specified actor.<T extends Actor>
Cell<T>Table. getCell(T actor)
Returns the cell for the specified actor in this table, or null.<A extends Actor>
Cell<A>Cell. setActor(A newActor)
Sets the actor in this cell and adds the actor to the cell's table.Methods in com.badlogic.gdx.scenes.scene2d.ui that return Actor Modifier and Type Method Description Actor
ScrollPane. getActor()
Returns the actor embedded in this scroll pane, or null.Actor
ScrollPane. getWidget()
Deprecated.Actor
Container. hit(float x, float y, boolean touchable)
Actor
ScrollPane. hit(float x, float y, boolean touchable)
Actor
Table. hit(float x, float y, boolean touchable)
Actor
Touchpad. hit(float x, float y, boolean touchable)
Actor
WidgetGroup. hit(float x, float y, boolean touchable)
If this method is overridden, the super method orWidgetGroup.validate()
should be called to ensure the widget group is laid out.Actor
Window. hit(float x, float y, boolean touchable)
Actor
Container. removeActorAt(int index, boolean unfocus)
Actor
ScrollPane. removeActorAt(int index, boolean unfocus)
Actor
SplitPane. removeActorAt(int index, boolean unfocus)
Actor
Table. removeActorAt(int index, boolean unfocus)
Methods in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Actor Modifier and Type Method Description void
Stack. add(Actor actor)
Table
Table. add(Actor... actors)
void
Container. addActor(Actor actor)
Deprecated.Container may have only a single child.void
ScrollPane. addActor(Actor actor)
Deprecated.ScrollPane may have only a single child.void
SplitPane. addActor(Actor actor)
void
Container. addActorAfter(Actor actorAfter, Actor actor)
Deprecated.Container may have only a single child.void
ScrollPane. addActorAfter(Actor actorAfter, Actor actor)
Deprecated.ScrollPane may have only a single child.void
Container. addActorAt(int index, Actor actor)
Deprecated.Container may have only a single child.void
ScrollPane. addActorAt(int index, Actor actor)
Deprecated.ScrollPane may have only a single child.void
SplitPane. addActorAt(int index, Actor actor)
void
Container. addActorBefore(Actor actorBefore, Actor actor)
Deprecated.Container may have only a single child.void
ScrollPane. addActorBefore(Actor actorBefore, Actor actor)
Deprecated.ScrollPane may have only a single child.void
SplitPane. addActorBefore(Actor actorBefore, Actor actor)
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)
float
Value.Fixed. get(Actor context)
abstract float
Value. get(Actor context)
protected void
SelectBox. onHide(Actor scrollPane)
protected void
SelectBox. onShow(Actor scrollPane, boolean below)
static Value
Value. percentHeight(float percent, Actor actor)
Returns a value that is a percentage of the specified actor's height.static Value
Value. percentWidth(float percent, Actor actor)
Returns a value that is a percentage of the specified actor's width.boolean
Container. removeActor(Actor actor)
boolean
Container. removeActor(Actor actor, boolean unfocus)
boolean
ScrollPane. removeActor(Actor actor)
boolean
ScrollPane. removeActor(Actor actor, boolean unfocus)
boolean
SplitPane. removeActor(Actor actor)
boolean
SplitPane. removeActor(Actor actor, boolean unfocus)
boolean
Table. removeActor(Actor actor)
boolean
Table. removeActor(Actor actor, boolean unfocus)
void
ScrollPane. setActor(Actor actor)
Sets theActor
embedded in this scroll pane.void
Skin. setEnabled(Actor actor, boolean enabled)
Sets the style on the actor to disabled or enabled.void
SplitPane. setFirstWidget(Actor widget)
void
Dialog. setObject(Actor actor, java.lang.Object object)
void
SplitPane. setSecondWidget(Actor widget)
void
ScrollPane. setWidget(Actor actor)
Deprecated.Cell<Stack>
Table. stack(Actor... actors)
Adds a new cell to the table with the specified actors in aStack
.Constructors in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Actor Constructor Description Button(Actor child, Button.ButtonStyle style)
Button(Actor child, Skin skin)
Button(Actor child, Skin skin, java.lang.String styleName)
ScrollPane(Actor actor)
ScrollPane(Actor actor, ScrollPane.ScrollPaneStyle style)
ScrollPane(Actor actor, Skin skin)
ScrollPane(Actor actor, Skin skin, java.lang.String styleName)
SplitPane(Actor firstWidget, Actor secondWidget, boolean vertical, Skin skin)
SplitPane(Actor firstWidget, Actor secondWidget, boolean vertical, Skin skin, java.lang.String styleName)
SplitPane(Actor firstWidget, Actor secondWidget, boolean vertical, SplitPane.SplitPaneStyle style)
Stack(Actor... actors)
WidgetGroup(Actor... actors)
Creates a new widget group containing the specified actors. -
Uses of Actor in com.badlogic.gdx.scenes.scene2d.utils
Methods in com.badlogic.gdx.scenes.scene2d.utils that return Actor Modifier and Type Method Description Actor
DragAndDrop.Source. getActor()
Actor
DragAndDrop.Target. getActor()
Actor
DragAndDrop. getDragActor()
Returns the current drag actor, or null.Actor
DragAndDrop.Payload. getDragActor()
Actor
DragAndDrop.Payload. getInvalidDragActor()
Actor
FocusListener.FocusEvent. getRelatedActor()
The actor related to the event.Actor
ActorGestureListener. getTouchDownTarget()
Actor
DragAndDrop.Payload. getValidDragActor()
Methods in com.badlogic.gdx.scenes.scene2d.utils with parameters of type Actor Modifier and Type Method Description abstract void
ChangeListener. changed(ChangeListener.ChangeEvent event, Actor actor)
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)
boolean
ClickListener. isOver(Actor actor, float x, float y)
Returns true if the specified position is over the specified actor or within the tap square.void
FocusListener. keyboardFocusChanged(FocusListener.FocusEvent event, Actor actor, boolean focused)
boolean
ActorGestureListener. longPress(Actor actor, float x, float y)
If true is returned, additional gestures will not be triggered.void
FocusListener. scrollFocusChanged(FocusListener.FocusEvent event, Actor actor, boolean focused)
void
Selection. setActor(Actor actor)
void
DragAndDrop.Payload. setDragActor(Actor dragActor)
void
DragAndDrop.Payload. setInvalidDragActor(Actor invalidDragActor)
void
FocusListener.FocusEvent. setRelatedActor(Actor relatedActor)
void
DragAndDrop.Payload. setValidDragActor(Actor validDragActor)
Constructors in com.badlogic.gdx.scenes.scene2d.utils with parameters of type Actor Constructor Description Source(Actor actor)
Target(Actor actor)
-