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

12 3 4

  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
Widget.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
25 /** An {@link Actor} that participates in layout and provides a minimum, preferred, and maximum size.
35 public class Widget extends Actor implements Layout {
Dialog.java 24 import com.badlogic.gdx.scenes.scene2d.Actor;
44 ObjectMap<Actor, Object> values = new ObjectMap();
46 Actor previousKeyboardFocus, previousScrollFocus;
87 public void changed (ChangeEvent event, Actor actor) {
88 if (!values.containsKey(actor)) return;
89 while (actor.getParent() != buttonTable)
90 actor = actor.getParent();
91 result(values.get(actor));
192 Actor actor = stage.getKeyboardFocus(); local
221 Actor actor = stage.getKeyboardFocus(); local
    [all...]
HorizontalGroup.java 19 import com.badlogic.gdx.scenes.scene2d.Actor;
55 SnapshotArray<Actor> children = getChildren();
60 Actor child = children.get(i);
84 SnapshotArray<Actor> children = getChildren();
86 Actor child = children.get(i);
VerticalGroup.java 19 import com.badlogic.gdx.scenes.scene2d.Actor;
51 SnapshotArray<Actor> children = getChildren();
56 Actor child = children.get(i);
80 SnapshotArray<Actor> children = getChildren();
82 Actor child = children.get(i);
TextTooltip.java 19 import com.badlogic.gdx.scenes.scene2d.Actor;
54 public float get (Actor context) {
ScrollPane.java 27 import com.badlogic.gdx.scenes.scene2d.Actor;
49 private Actor widget;
87 public ScrollPane (Actor widget) {
92 public ScrollPane (Actor widget, Skin skin) {
97 public ScrollPane (Actor widget, Skin skin, String styleName) {
102 public ScrollPane (Actor widget, ScrollPaneStyle style) {
665 /** Sets the {@link Actor} embedded in this scroll pane.
666 * @param widget May be null to remove any current actor. */
667 public void setWidget (Actor widget) {
674 /** Returns the actor embedded in this scroll pane, or null. */
    [all...]
Container.java 7 import com.badlogic.gdx.scenes.scene2d.Actor;
17 public class Container<T extends Actor> extends WidgetGroup {
18 private T actor; field in class:Container
29 /** Creates a container with no actor. */
35 public Container (T actor) {
37 setActor(actor);
105 if (actor == null) return;
110 float minWidth = this.minWidth.get(actor), minHeight = this.minHeight.get(actor);
111 float prefWidth = this.prefWidth.get(actor), prefHeight = this.prefHeight.get(actor)
    [all...]
Button.java 21 import com.badlogic.gdx.scenes.scene2d.Actor;
64 public Button (Actor child, Skin skin, String styleName) {
68 public Button (Actor child, ButtonStyle style) {
108 public Button (Actor child, Skin skin) {
226 Array<Actor> children = getChildren();
SelectBox.java 31 import com.badlogic.gdx.scenes.scene2d.Actor;
322 protected void onShow (Actor selectBoxList, boolean below) {
327 protected void onHide (Actor selectBoxList) {
339 private Actor previousScrollFocus;
371 public void exit (InputEvent event, float x, float y, int pointer, Actor toActor) {
378 Actor target = event.getTarget();
441 Actor actor = stage.getScrollFocus(); local
442 if (actor != null && !actor.isDescendantOf(this)) previousScrollFocus = actor;
459 Actor actor = stage.getScrollFocus(); local
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/
ClickListener.java 21 import com.badlogic.gdx.scenes.scene2d.Actor;
26 /** Detects mouse over, mouse or finger touch presses, and clicks on an actor. A touch must go down over the actor and is
27 * considered pressed as long as it is over the actor or within the {@link #setTapSquareSize(float) tap square}. This behavior
28 * makes it easier to press buttons on a touch interface when the initial touch happens near the edge of the actor. Double clicks
99 public void enter (InputEvent event, float x, float y, int pointer, Actor fromActor) {
103 public void exit (InputEvent event, float x, float y, int pointer, Actor toActor) {
117 /** Returns true if the specified position is over the specified actor or within the tap square. */
118 public boolean isOver (Actor actor, float x, float y) {
    [all...]
ActorGestureListener.java 22 import com.badlogic.gdx.scenes.scene2d.Actor;
27 /** Detects tap, long press, fling, pan, zoom, and pinch gestures on an actor. If there is only a need to detect tap, use
36 Actor actor, touchDownTarget; field in class:ActorGestureListener
50 actor.stageToLocalCoordinates(tmpCoords.set(stageX, stageY));
56 actor.stageToLocalCoordinates(tmpCoords.set(stageX, stageY));
57 return ActorGestureListener.this.longPress(actor, tmpCoords.x, tmpCoords.y);
70 actor.stageToLocalCoordinates(tmpCoords.set(stageX, stageY));
82 actor.stageToLocalCoordinates(initialPointer1.set(stageInitialPointer1));
83 actor.stageToLocalCoordinates(initialPointer2.set(stageInitialPointer2));
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/actions/
AlphaAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
22 /** Sets the alpha for an actor's color (or a specified color), from the current alpha to the new alpha. Note this action
47 /** Sets the color to modify. If null (the default), the {@link #getActor() actor's} {@link Actor#getColor() color} will be
ColorAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
22 /** Sets the actor's color (or a specified color), from the current to the new color. Note this action transitions from the color
55 /** Sets the color to modify. If null (the default), the {@link #getActor() actor's} {@link Actor#getColor() color} will be
ParallelAction.java 20 import com.badlogic.gdx.scenes.scene2d.Actor;
70 for (int i = 0, n = actions.size; i < n && actor != null; i++) {
73 if (actor == null) return true; // This action was removed.
95 if (actor != null) action.setActor(actor);
98 public void setActor (Actor actor) {
101 actions.get(i).setActor(actor);
102 super.setActor(actor);
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
SimpleStageCullingTest.java 28 import com.badlogic.gdx.scenes.scene2d.Actor;
45 /** We need to extend a base actor class so we can add the culling in the render method. We also add a method to get the stage
46 * coordinates of the actor so we can cull it against the camera's view volume.
63 // if this actor is not within the view of the camera we don't draw it.
83 // this assumes that neither this actor nor any of its
85 Actor parent = this.getParent();
92 // now we check if the rectangle of this actor in screen
122 Actor img = new CullableActor("img" + i, texture, (OrthographicCamera)stage.getCamera());
138 Array<Actor> actors = stage.getActors();
LabelScaleTest.java 22 import com.badlogic.gdx.scenes.scene2d.Actor;
33 Actor root;
StageTest.java 30 import com.badlogic.gdx.scenes.scene2d.Actor;
58 Array<Actor> sprites = new Array();
123 Actor shapeActor = new Actor() {
181 Actor actor = stage.hit(stageCoords.x, stageCoords.y, true); local
182 if (actor != null)
183 actor.setColor((float)Math.random(), (float)Math.random(), (float)Math.random(), 0.5f + 0.5f * (float)Math.random());
186 Array<Actor> actors = stage.getActors();
205 Actor sprite = sprites.get(i);
    [all...]
ScrollPaneTest.java 21 import com.badlogic.gdx.scenes.scene2d.Actor;
86 public void changed (ChangeEvent event, Actor actor) {
94 public void changed (ChangeEvent event, Actor actor) {
102 public void changed (ChangeEvent event, Actor actor) {
109 public void changed (ChangeEvent event, Actor actor) {
CpuSpriteBatchTest.java 29 import com.badlogic.gdx.scenes.scene2d.Actor;
42 private static class DrawableActor extends Actor {
86 Actor main = new DrawableActor(bob);
89 Actor hat = new DrawableActor(bob) {
SoundTest.java 23 import com.badlogic.gdx.scenes.scene2d.Actor;
96 public void changed (ChangeEvent event, Actor actor) {
102 public void changed (ChangeEvent event, Actor actor) {
108 public void changed (ChangeEvent event, Actor actor) {
UITest.java 24 import com.badlogic.gdx.scenes.scene2d.Actor;
108 public void changed (ChangeEvent event, Actor actor) {
176 public void changed (ChangeEvent event, Actor actor) {
182 public void changed (ChangeEvent event, Actor actor) {
193 public void changed (ChangeEvent event, Actor actor) {
MusicTest.java 26 import com.badlogic.gdx.scenes.scene2d.Actor;
63 public void changed (ChangeEvent event, Actor actor) {
StageDebugTest.java 26 import com.badlogic.gdx.scenes.scene2d.Actor;
42 class DebugActor extends Actor {
66 DebugActor actor = new DebugActor(); local
67 actor.setBounds(300, 140, 50, 100);
68 actor.setOrigin(25, 50);
69 actor.setRotation(-45);
70 actor.setScale(2f);
71 actor.addAction(forever(rotateBy(360, 8f)));
72 group.addActor(actor);
  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/
InputListener.java 25 * actor.addListener(new InputListener() {
77 /** Called when a mouse button or a finger touch goes down on the actor. If true is returned, this listener will receive all
78 * touchDragged and touchUp events, even those not over this actor, until touchUp is received. Also when true is returned, the
104 /** Called any time the mouse cursor or a finger touch is moved over an actor. On the desktop, this event occurs even when no
108 public void enter (InputEvent event, float x, float y, int pointer, Actor fromActor) {
111 /** Called any time the mouse cursor or a finger touch is moved out of an actor. On the desktop, this event occurs even when no
115 public void exit (InputEvent event, float x, float y, int pointer, Actor toActor) {
Actor.java 38 /** 2D scene graph node. An actor has a position, rectangular size, origin, scale, rotation, Z index, and color. The position
39 * corresponds to the unrotated, unscaled bottom left corner of the actor. The position is relative to the actor's parent. The
42 * An actor has a list of in progress {@link Action actions} that are applied to the actor (often over time). These are generally
43 * used to change the presentation of the actor (moving it, resizing it, etc). See {@link #act(float)}, {@link Action} and its
46 * An actor has two kinds of listeners associated with it: "capture" and regular. The listeners are notified of events the actor
47 * or its children receive. The regular listeners are designed to allow an actor to respond to events that have been delivered.
48 * The capture listeners are designed to allow a parent or container actor to handle events before child actors. See {@link #fire}
783 Actor actor = this; local
    [all...]

Completed in 775 milliseconds

12 3 4