Example usage for com.badlogic.gdx.scenes.scene2d Event isCapture

List of usage examples for com.badlogic.gdx.scenes.scene2d Event isCapture

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d Event isCapture.

Prototype

public boolean isCapture() 

Source Link

Document

If true, the event was fired during the capture phase.

Usage

From source file:com.blastedstudios.gdxworld.util.ui.Scene2DUtils.java

License:Apache License

/** @param c the event to copy to
 *  @param e the event to copy from */
public static void copy(Event c, Event e) {
    c.setTarget(e.getTarget());//from  w w w .j  a va2 s . c om
    c.setStage(e.getStage());
    c.setCapture(e.isCapture());
    c.setBubbles(e.getBubbles());
    c.setListenerActor(e.getListenerActor());
}

From source file:de.bitbrain.craft.ui.ProfessionSelectionView.java

License:Open Source License

@Override
public boolean handle(Event event) {

    if (event.isCapture()) {
        notify(event, true);/*ww  w . j ava2 s  .  c o  m*/
        return true;
    }

    return false;
}

From source file:net.dermetfan.gdx.scenes.scene2d.Scene2DUtils.java

License:Apache License

/** @param c the event to copy from
 *  @param e the event to copy to */
public static void copy(Event e, Event c) {
    c.setTarget(e.getTarget());//from   ww  w . j av  a2 s.co m
    c.setStage(e.getStage());
    c.setCapture(e.isCapture());
    c.setBubbles(e.getBubbles());
    c.setListenerActor(e.getListenerActor());
}