HomeSort by relevance Sort by last modified time
    Searched full:actor (Results 1 - 25 of 162) sorted by null

1 2 3 4 5 6 7

  /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...]
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) {
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);
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
  /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...]
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...]
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...]
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...]
  /external/opencv3/modules/viz/src/
widget.cpp 96 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
97 actor->GetProperty()->SetInterpolationToFlat();
98 actor->GetProperty()->BackfaceCullingOn();
99 actor->SetMapper(mapper);
102 WidgetAccessor::setProp(widget, actor);
108 vtkActor *actor = vtkActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
109 CV_Assert("Widget type is not supported." && actor);
113 case POINT_SIZE: actor->GetProperty()->SetPointSize(float(value)); break;
114 case OPACITY: actor->GetProperty()->SetOpacity(value); break;
115 case LINE_WIDTH: actor->GetProperty()->SetLineWidth(float(value)); break
176 vtkActor *actor = vtkActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
238 vtkProp3D *actor = vtkProp3D::SafeDownCast(WidgetAccessor::getProp(*this)); local
248 vtkProp3D *actor = vtkProp3D::SafeDownCast(WidgetAccessor::getProp(*this)); local
267 vtkProp3D *actor = vtkProp3D::SafeDownCast(WidgetAccessor::getProp(*this)); local
274 vtkActor *actor = vtkActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
287 vtkActor *actor = vtkActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
299 vtkProp3D *actor = vtkProp3D::SafeDownCast(WidgetAccessor::getProp(*this)); local
312 vtkActor2D *actor = vtkActor2D::SafeDownCast(WidgetAccessor::getProp(*this)); local
321 vtkActor2D *actor = vtkActor2D::SafeDownCast(WidgetAccessor::getProp(*this)); local
    [all...]
shapes.cpp 63 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
64 actor->SetMapper(mapper);
66 WidgetAccessor::setProp(*this, actor);
94 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
95 actor->SetMapper(mapper);
97 WidgetAccessor::setProp(*this, actor);
123 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
124 actor->SetMapper(mapper);
125 actor->GetProperty()->LightingOff();
127 WidgetAccessor::setProp(*this, actor);
175 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
204 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
247 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
292 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
335 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
379 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
413 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
458 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
495 vtkSmartPointer<vtkFollower> actor = vtkSmartPointer<vtkFollower>::New(); local
503 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
516 vtkActor *actor = vtkActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
531 vtkFollower *actor = vtkFollower::SafeDownCast(WidgetAccessor::getProp(*this)); local
552 vtkSmartPointer<vtkTextActor> actor = vtkSmartPointer<vtkTextActor>::New(); local
578 vtkTextActor *actor = vtkTextActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
585 vtkTextActor *actor = vtkTextActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
618 vtkSmartPointer<vtkActor2D> actor = vtkSmartPointer<vtkActor2D>::New(); local
630 vtkActor2D *actor = vtkActor2D::SafeDownCast(WidgetAccessor::getProp(*this)); local
691 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
719 vtkActor *actor = vtkActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
796 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
816 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
833 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
868 vtkSmartPointer<vtkActor> actor = getActor(image_widget); local
900 vtkSmartPointer<vtkActor> actor = getActor(image_widget); local
950 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
985 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
1011 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
1079 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
    [all...]
clouds.cpp 84 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
85 actor->GetProperty()->SetInterpolationToFlat();
86 actor->GetProperty()->BackfaceCullingOn();
87 actor->SetMapper(mapper);
89 WidgetAccessor::setProp(*this, actor);
124 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
125 actor->GetProperty()->SetInterpolationToFlat();
126 actor->GetProperty()->BackfaceCullingOn();
127 actor->SetMapper(mapper);
129 WidgetAccessor::setProp(*this, actor);
150 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
190 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
218 vtkSmartPointer<vtkLODActor> actor = vtkSmartPointer<vtkLODActor>::New(); local
234 vtkSmartPointer<vtkLODActor> actor = vtkLODActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
251 vtkSmartPointer<vtkLODActor> actor = vtkLODActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
346 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
422 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
475 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); local
492 vtkSmartPointer<vtkActor> actor = vtkActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
502 vtkSmartPointer<vtkActor> actor = vtkActor::SafeDownCast(WidgetAccessor::getProp(*this)); local
    [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...]
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...]
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...]
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.
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/
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...]
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...]
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...]
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...]
Touchable.java 19 /** Determines how touch input events are distributed to an actor and any children.
22 /** All touch input events will be received by the actor and any children. */
24 /** No touch input events will be received by the actor or any children. */
26 /** No touch input events will be received by the actor, but children will still receive events. Note that events on the
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...]
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
Scene2dTest.java 27 import com.badlogic.gdx.scenes.scene2d.Actor;
57 final Actor actor = new Actor() { local
65 actor.setBounds(15, 15, 100, 100);
66 actor.setOrigin(50, 50);
67 stage.addActor(actor);
68 actor.addListener(new InputListener() {
111 public boolean longPress (Actor actor, float x, float y) {
    [all...]
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);

Completed in 48 milliseconds

1 2 3 4 5 6 7