HomeSort by relevance Sort by last modified time
    Searched refs:Actor (Results 1 - 25 of 77) sorted by null

1 2 3 4

  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
Value.java 19 import com.badlogic.gdx.scenes.scene2d.Actor;
22 /** Value placeholder, allowing the value to be computed on request. Values are provided an actor for context which reduces the
27 abstract public float get (Actor context);
41 public float get (Actor context) {
46 /** Value that is the minWidth of the actor in the cell. */
48 public float get (Actor context) {
54 /** Value that is the minHeight of the actor in the cell. */
56 public float get (Actor context) {
62 /** Value that is the prefWidth of the actor in the cell. */
64 public float get (Actor context)
    [all...]
Stack.java 30 import com.badlogic.gdx.scenes.scene2d.Actor;
52 public Stack (Actor... actors) {
54 for (Actor actor : actors)
55 addActor(actor);
71 SnapshotArray<Actor> children = getChildren();
73 Actor child = children.get(i);
96 public void add (Actor actor) {
97 addActor(actor);
    [all...]
WidgetGroup.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
46 public WidgetGroup (Actor... actors) {
47 for (Actor actor : actors)
48 addActor(actor);
82 SnapshotArray<Actor> children = parent.getChildren();
84 Actor actor = children.get(i); local
85 if (actor instanceof Layout)
86 ((Layout)actor).setLayoutEnabled(enabled);
    [all...]
Tooltip.java 21 import com.badlogic.gdx.scenes.scene2d.Actor;
27 /** A listener that shows a tooltip actor when another actor is hovered over with the mouse.
29 public class Tooltip<T extends Actor> extends InputListener {
35 Actor targetActor;
96 private void setContainerPosition (Actor actor, float x, float y) {
97 this.targetActor = actor;
98 Stage stage = actor.getStage();
103 Vector2 point = actor.localToStageCoordinates(tmp.set(x + offsetX, y - offsetY - container.getHeight()))
    [all...]
SplitPane.java 24 import com.badlogic.gdx.scenes.scene2d.Actor;
41 private Actor firstWidget, secondWidget;
57 public SplitPane (Actor firstWidget, Actor secondWidget, boolean vertical, Skin skin) {
63 public SplitPane (Actor firstWidget, Actor secondWidget, boolean vertical, Skin skin, String styleName) {
69 public SplitPane (Actor firstWidget, Actor secondWidget, boolean vertical, SplitPaneStyle style) {
150 Actor firstWidget = this.firstWidget;
156 Actor secondWidget = this.secondWidget;
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/
Action.java 24 /** Actions attach to an {@link Actor} and perform some task, often over time.
27 /** The actor this action is attached to, or null if it is not attached. */
28 protected Actor actor; field in class:Action
30 /** The actor this action targets, or null if a target has not been set. */
31 protected Actor target;
35 /** Updates the action based on time. Typically this is called each frame by {@link Actor#act(float)}.
44 /** Sets the actor this action is attached to. This also sets the {@link #setTarget(Actor) target} actor if it is null. This
    [all...]
Event.java 23 * By default an event will "bubble" up through an actor's parent's handlers (see {@link #setBubbles(boolean)}).
25 * An actor's capture listeners can {@link #stop()} an event to prevent child actors from seeing it.
28 * {@link Actor#fire(Event)} will mark events handled if an {@link EventListener} returns true.
34 * @see Actor#fire(Event) */
37 private Actor targetActor;
38 private Actor listenerActor;
61 * listener actor} are notified, but after that no other listeners are notified. */
77 /** Returns the actor that the event originated from. */
78 public Actor getTarget () {
82 public void setTarget (Actor targetActor) {
    [all...]
InputEvent.java 22 /** Event for actor input: touch, mouse, keyboard, and scroll.
29 private Actor relatedActor;
111 /** The actor related to the event. Valid for: enter and exit. For enter, this is the actor being exited, or null. For exit,
112 * this is the actor being entered, or null. */
113 public Actor getRelatedActor () {
118 public void setRelatedActor (Actor relatedActor) {
122 /** Sets actorCoords to this event's coordinates relative to the specified actor.
124 public Vector2 toCoordinates (Actor actor, Vector2 actorCoords) {
    [all...]
Group.java 32 * actors added earlier. Touch events that hit more than one actor are distributed to topmost actors first.
35 public class Group extends Actor implements Cullable {
38 final SnapshotArray<Actor> children = new SnapshotArray(true, 4, Actor.class);
47 Actor[] actors = children.begin();
67 SnapshotArray<Actor> children = this.children;
68 Actor[] actors = children.begin();
78 Actor child = actors[i];
90 Actor child = actors[i];
108 Actor child = actors[i]
355 Actor actor = ((Group)child).findActor(name); local
457 Actor actor = actors[i]; local
    [all...]
Stage.java 49 /** A 2D scene graph containing hierarchies of {@link Actor actors}. Stage handles the viewport and distributes input events.
56 * used to handle input events before or after the stage does. If an actor handles an event by returning true from the input
65 /** True if any actor has ever had debug enabled. */
73 private final Actor[] pointerOverActors = new Actor[20];
78 private Actor mouseOverActor;
79 private Actor keyboardFocus, scrollFocus;
143 Actor actor = hit(tempCoords.x, tempCoords.y, true); local
144 if (actor == null) return
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/
FocusListener.java 19 import com.badlogic.gdx.scenes.scene2d.Actor;
40 /** @param actor The event target, which is the actor that emitted the focus event. */
41 public void keyboardFocusChanged (FocusEvent event, Actor actor, boolean focused) {
44 /** @param actor The event target, which is the actor that emitted the focus event. */
45 public void scrollFocusChanged (FocusEvent event, Actor actor, boolean focused) {
48 /** Fired when an actor gains or loses keyboard or scroll focus. Can be cancelled to prevent losing or gaining focus
    [all...]
ChangeListener.java 19 import com.badlogic.gdx.scenes.scene2d.Actor;
32 /** @param actor The event target, which is the actor that emitted the change event. */
33 abstract public void changed (ChangeEvent event, Actor actor);
35 /** Fired when something in an actor has changed. This is a generic event, exactly what changed in an actor will vary.
DragAndDrop.java 21 import com.badlogic.gdx.scenes.scene2d.Actor;
36 Actor dragActor;
84 Actor hit = event.getStage().hit(stageX, stageY, true); // Prefer touchable actors.
89 if (!target.actor.isAscendantOf(hit)) continue;
91 target.actor.stageToLocalCoordinates(tmpVector.set(stageX, stageY));
107 // Add/remove and position the drag actor.
108 Actor actor = null;
109 if (target != null) actor = isValidTarget ? payload.validDragActor : payload.invalidDragActor;
110 if (actor == null) actor = payload.dragActor
225 final Actor actor; field in class:DragAndDrop.Source
248 final Actor actor; field in class:DragAndDrop.Target
    [all...]
Layout.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
23 /** Provides methods for an actor to participate in layout and to provide a minimum, preferred, and maximum size.
26 /** Computes and caches any information needed for drawing and, if this actor has children, positions and sizes each child,
31 /** Invalidates this actor's layout, causing {@link #layout()} to happen the next time {@link #validate()} is called. This
32 * method should be called when state changes in the actor that requires a layout but does not change the minimum, preferred,
33 * maximum, or actual size of the actor (meaning it does not affect the parent actor's layout). */
36 /** Invalidates this actor and all its parents, calling {@link #invalidate()} on each. This method should be called when state
37 * changes in the actor that affects the minimum, preferred, maximum, or actual size of the actor (meaning it it potentially
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/actions/
LayoutAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
24 /** Sets an actor's {@link Layout#setLayoutEnabled(boolean) layout} to enabled or disabled. The actor must implements
30 public void setTarget (Actor actor) {
31 if (actor != null && !(actor instanceof Layout)) throw new GdxRuntimeException("Actor must implement layout: " + actor);
32 super.setTarget(actor);
    [all...]
RemoveActorAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
22 /** Removes an actor from the stage.
VisibleAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
22 /** Sets the actor's {@link Actor#setVisible(boolean) visibility}.
AfterAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
23 /** Executes an action only after all other actions on the actor at the time this action's target was set have finished.
28 public void setTarget (Actor target) {
RemoveAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
22 /** Removes an action from an actor.
TouchableAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
23 /** Sets the actor's {@link Actor#setTouchable(Touchable) touchability}.
DelegateAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
58 public void setActor (Actor actor) {
59 if (action != null) action.setActor(actor);
60 super.setActor(actor);
63 public void setTarget (Actor target) {
AddAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
22 /** Adds an action to an actor.
AddListenerAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
23 /** Adds a listener to an actor.
RemoveListenerAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
23 /** Removes a listener from an actor.
EventAction.java 5 import com.badlogic.gdx.scenes.scene2d.Actor;
10 /** Adds a listener to the actor for a specific event type and does not complete until {@link #handle(Event)} returns true.
34 public void setTarget (Actor newTarget) {
40 /** Called when the specific type of event occurs on the actor.

Completed in 254 milliseconds

1 2 3 4