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 classGroup2D scene graph node that may contain other actors.Fields in com.badlogic.gdx.scenes.scene2d declared as Actor Modifier and Type Field Description protected ActorAction. actorThe actor this action is attached to, or null if it is not attached.protected ActorAction. targetThe 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 ActorActor. debug()CallssetDebug(boolean)withtrue.ActorAction. getActor()ActorGroup. getChild(int index)Returns the child at the specified index.ActorStage. getKeyboardFocus()Gets the actor that will receive key events.ActorEvent. getListenerActor()Returns the actor that this listener is attached to.ActorInputEvent. getRelatedActor()The actor related to the event.ActorStage. getScrollFocus()Gets the actor that will receive scroll events.ActorAction. getTarget()ActorEvent. getTarget()Returns the actor that the event originated from.ActorActor. hit(float x, float y, boolean touchable)ActorGroup. hit(float x, float y, boolean touchable)ActorStage. hit(float stageX, float stageY, boolean touchable)Returns theActorat the specified location in stage coordinates.ActorGroup. 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 voidStage. actorRemoved(Actor actor)Called just before an actor is removed from a group.voidGroup. addActor(Actor actor)Adds an actor as a child of this group, removing it from its previous parent.voidStage. addActor(Actor actor)Adds an actor to the root of the stage.voidGroup. 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.voidGroup. addActorAt(int index, Actor actor)Adds an actor as a child of this group at a specific index, removing it from its previous parent.voidGroup. 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.voidStage. 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.voidStage. cancelTouchFocus(Actor listenerActor)Cancels touch focus for all listeners with the specified listener actor.voidStage. cancelTouchFocusExcept(EventListener exceptListener, Actor exceptActor)Cancels touch focus for all listeners except the specified listener.voidInputListener. 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.voidInputListener. 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.booleanActor. isAscendantOf(Actor actor)Returns true if this actor is the same as or is the ascendant of the specified actor.booleanActor. isDescendantOf(Actor actor)Returns true if this actor is the same as or is the descendant of the specified actor.Vector2Actor. localToActorCoordinates(Actor actor, Vector2 localCoords)Converts coordinates for this actor to those of another actor, which can be anywhere in the stage.Vector2Actor. localToAscendantCoordinates(Actor ascendant, Vector2 localCoords)Converts coordinates for this actor to those of an ascendant.Vector2Group. localToDescendantCoordinates(Actor descendant, Vector2 localCoords)Converts coordinates for this group to those of a descendant actor.booleanGroup. removeActor(Actor actor)Removes an actor from this group and unfocuses it.booleanGroup. removeActor(Actor actor, boolean unfocus)Removes an actor from this group.voidStage. removeTouchFocus(EventListener listener, Actor listenerActor, Actor target, int pointer, int button)Removes touch focus for the specified listener, pointer, and button.voidAction. setActor(Actor actor)Sets the actor this action is attached to.booleanStage. setKeyboardFocus(Actor actor)Sets the actor that will receive key events.voidEvent. setListenerActor(Actor listenerActor)voidInputEvent. setRelatedActor(Actor relatedActor)booleanStage. setScrollFocus(Actor actor)Sets the actor that will receive scroll events.voidAction. setTarget(Actor target)Sets the actor this action will manipulate.voidEvent. setTarget(Actor targetActor)booleanGroup. swapActor(Actor first, Actor second)Swaps two actors.Vector2InputEvent. toCoordinates(Actor actor, Vector2 actorCoords)Sets actorCoords to this event's coordinates relative to the specified actor.voidStage. 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 AddActionActions. addAction(Action action, Actor targetActor)static AddListenerActionActions. addListener(EventListener listener, boolean capture, Actor targetActor)static RemoveActionActions. removeAction(Action action, Actor targetActor)static RemoveActorActionActions. removeActor(Actor removeActor)static RemoveListenerActionActions. removeListener(EventListener listener, boolean capture, Actor targetActor)voidDelegateAction. setActor(Actor actor)voidParallelAction. setActor(Actor actor)voidAfterAction. setTarget(Actor target)voidDelegateAction. setTarget(Actor target)voidEventAction. setTarget(Actor newTarget)voidLayoutAction. setTarget(Actor actor)static ActionActions. 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 classCell<T extends Actor>A cell for aTable.classContainer<T extends Actor>A group with a single child that sizes and positions the child using constraints.classTooltip<T extends Actor>A listener that shows a tooltip actor when the mouse is over another actor.static classTree.Node<N extends Tree.Node,V,A extends Actor>ATreenode which has an actor and value.Subclasses of Actor in com.badlogic.gdx.scenes.scene2d.ui Modifier and Type Class Description classButtonclassCheckBoxA checkbox is a button that contains an image indicating the checked or unchecked state and a label.classContainer<T extends Actor>A group with a single child that sizes and positions the child using constraints.classDialogDisplays a dialog, which is a window with a title, a content table, and a button table.classHorizontalGroupA group that lays out its children side by side horizontally, with optional wrapping.classImageDisplays aDrawable, scaled various way within the widgets bounds.classImageButtonA button with a childImageto display an image.classImageTextButtonclassLabelA text label, with optional word wrapping.classList<T>A list (aka list box) displays textual items and highlights the currently selected item.classParticleEffectActorParticleEffectActor holds anParticleEffectto use in Scene2d applications.classProgressBarA progress bar is a widget that visually displays the progress of some activity or a value within given range.classScrollPaneA group that scrolls a child actor using scrollbars and/or mouse or touch dragging.classSelectBox<T>A select box (aka a drop-down list) allows a user to choose one of a number of values from a list.static classSelectBox.SelectBoxScrollPane<T>The scroll pane shown when a select box is open.classSliderA slider is a horizontal indicator that allows a user to set a value.classSplitPaneA container that contains two widgets and is divided either horizontally or vertically.classStackA stack is a container that sizes its children to its size and positions them at 0,0 on top of each other.classTableA group that sizes and positions children using table constraints.classTextAreaA text input field with multiple lines.classTextButtonA button with a childLabelto display text.classTextFieldA single-line text input field.classTouchpadAn on-screen joystick.classTree<N extends Tree.Node,V>A tree widget where each node has an icon, actor, and child nodes.classVerticalGroupA group that lays out its children top to bottom vertically, with optional wrapping.classWidgetAnActorthat participates in layout and provides a minimum, preferred, and maximum size.classWidgetGroupAGroupthat participates in layout and provides a minimum, preferred, and maximum size.classWindowA 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 ActorScrollPane. getActor()Returns the actor embedded in this scroll pane, or null.ActorScrollPane. getWidget()Deprecated.ActorContainer. hit(float x, float y, boolean touchable)ActorScrollPane. hit(float x, float y, boolean touchable)ActorTable. hit(float x, float y, boolean touchable)ActorTouchpad. hit(float x, float y, boolean touchable)ActorWidgetGroup. 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.ActorWindow. hit(float x, float y, boolean touchable)ActorContainer. removeActorAt(int index, boolean unfocus)ActorScrollPane. removeActorAt(int index, boolean unfocus)ActorSplitPane. removeActorAt(int index, boolean unfocus)ActorTable. removeActorAt(int index, boolean unfocus)Methods in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Actor Modifier and Type Method Description voidStack. add(Actor actor)TableTable. add(Actor... actors)voidContainer. addActor(Actor actor)Deprecated.Container may have only a single child.voidScrollPane. addActor(Actor actor)Deprecated.ScrollPane may have only a single child.voidSplitPane. addActor(Actor actor)voidContainer. addActorAfter(Actor actorAfter, Actor actor)Deprecated.Container may have only a single child.voidScrollPane. addActorAfter(Actor actorAfter, Actor actor)Deprecated.ScrollPane may have only a single child.voidContainer. addActorAt(int index, Actor actor)Deprecated.Container may have only a single child.voidScrollPane. addActorAt(int index, Actor actor)Deprecated.ScrollPane may have only a single child.voidSplitPane. addActorAt(int index, Actor actor)voidContainer. addActorBefore(Actor actorBefore, Actor actor)Deprecated.Container may have only a single child.voidScrollPane. addActorBefore(Actor actorBefore, Actor actor)Deprecated.ScrollPane may have only a single child.voidSplitPane. addActorBefore(Actor actorBefore, Actor actor)voidTooltip. enter(InputEvent event, float x, float y, int pointer, Actor fromActor)voidTooltip. exit(InputEvent event, float x, float y, int pointer, Actor toActor)floatValue.Fixed. get(Actor context)abstract floatValue. get(Actor context)protected voidSelectBox. onHide(Actor scrollPane)protected voidSelectBox. onShow(Actor scrollPane, boolean below)static ValueValue. percentHeight(float percent, Actor actor)Returns a value that is a percentage of the specified actor's height.static ValueValue. percentWidth(float percent, Actor actor)Returns a value that is a percentage of the specified actor's width.booleanContainer. removeActor(Actor actor)booleanContainer. removeActor(Actor actor, boolean unfocus)booleanScrollPane. removeActor(Actor actor)booleanScrollPane. removeActor(Actor actor, boolean unfocus)booleanSplitPane. removeActor(Actor actor)booleanSplitPane. removeActor(Actor actor, boolean unfocus)booleanTable. removeActor(Actor actor)booleanTable. removeActor(Actor actor, boolean unfocus)voidScrollPane. setActor(Actor actor)Sets theActorembedded in this scroll pane.voidSkin. setEnabled(Actor actor, boolean enabled)Sets the style on the actor to disabled or enabled.voidSplitPane. setFirstWidget(Actor widget)voidDialog. setObject(Actor actor, java.lang.Object object)voidSplitPane. setSecondWidget(Actor widget)voidScrollPane. 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 ActorDragAndDrop.Source. getActor()ActorDragAndDrop.Target. getActor()ActorDragAndDrop. getDragActor()Returns the current drag actor, or null.ActorDragAndDrop.Payload. getDragActor()ActorDragAndDrop.Payload. getInvalidDragActor()ActorFocusListener.FocusEvent. getRelatedActor()The actor related to the event.ActorActorGestureListener. getTouchDownTarget()ActorDragAndDrop.Payload. getValidDragActor()Methods in com.badlogic.gdx.scenes.scene2d.utils with parameters of type Actor Modifier and Type Method Description abstract voidChangeListener. changed(ChangeListener.ChangeEvent event, Actor actor)voidClickListener. enter(InputEvent event, float x, float y, int pointer, Actor fromActor)voidClickListener. exit(InputEvent event, float x, float y, int pointer, Actor toActor)booleanClickListener. isOver(Actor actor, float x, float y)Returns true if the specified position is over the specified actor or within the tap square.voidFocusListener. keyboardFocusChanged(FocusListener.FocusEvent event, Actor actor, boolean focused)booleanActorGestureListener. longPress(Actor actor, float x, float y)If true is returned, additional gestures will not be triggered.voidFocusListener. scrollFocusChanged(FocusListener.FocusEvent event, Actor actor, boolean focused)voidSelection. setActor(Actor actor)voidDragAndDrop.Payload. setDragActor(Actor dragActor)voidDragAndDrop.Payload. setInvalidDragActor(Actor invalidDragActor)voidFocusListener.FocusEvent. setRelatedActor(Actor relatedActor)voidDragAndDrop.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)
-