|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.scenes.scene2d.Event
public class Event
The base class for all events.
InputEvent
,
Actor.fire(Event)
Constructor Summary | |
---|---|
Event()
|
Method Summary | |
---|---|
void |
cancel()
Marks this event has being cancelled. |
boolean |
getBubbles()
|
Actor |
getListenerActor()
Returns the actor that this listener is attached to. |
Stage |
getStage()
The stage for the actor the event was fired on. |
Actor |
getTarget()
Returns the actor that the event originated from. |
void |
handle()
Marks this event has being handled. |
boolean |
isCancelled()
|
boolean |
isCapture()
If true, the event was fired during the capture phase. |
boolean |
isHandled()
handle() |
boolean |
isStopped()
|
void |
reset()
Resets the object for reuse. |
void |
setBubbles(boolean bubbles)
If true, after the event is fired on the target actor, it will also be fired on each of the parent actors, all the way to the root. |
void |
setCapture(boolean capture)
|
void |
setListenerActor(Actor listenerActor)
|
void |
setStage(Stage stage)
|
void |
setTarget(Actor targetActor)
|
void |
stop()
Marks this event has being stopped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Event()
Method Detail |
---|
public void handle()
Stage
event methods to return false, which will eat the event so it is not passed on to the application under the stage.
public void cancel()
handles
the event and stops
the event
propagation. It also cancels any default action that would have been taken by the code that fired the event. Eg, if the
event is for a checkbox being checked, cancelling the event could uncheck the checkbox.
public void stop()
listener actor
are notified, but after that no other listeners are notified.
public void reset()
Pool.Poolable
reset
in interface Pool.Poolable
public Actor getTarget()
public void setTarget(Actor targetActor)
public Actor getListenerActor()
public void setListenerActor(Actor listenerActor)
public boolean getBubbles()
public void setBubbles(boolean bubbles)
public boolean isHandled()
handle()
public boolean isStopped()
stop()
public boolean isCancelled()
cancel()
public void setCapture(boolean capture)
public boolean isCapture()
Actor.fire(Event)
public void setStage(Stage stage)
public Stage getStage()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |