Example usage for com.badlogic.gdx.scenes.scene2d Actor setZIndex

List of usage examples for com.badlogic.gdx.scenes.scene2d Actor setZIndex

Introduction

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

Prototype

public void setZIndex(int index) 

Source Link

Document

Sets the z-index of this actor.

Usage

From source file:mobi.shad.s3lib.gui.GuiUtil.java

License:Apache License

/**
 * @param source/*from   w ww. java2  s .  com*/
 * @param destination
 */
public static void copyActor(Actor source, Actor destination) {
    destination.setBounds(source.getX(), source.getY(), source.getWidth(), source.getHeight());
    destination.setColor(source.getColor());
    destination.setName(source.getName());
    destination.setOrigin(source.getOriginX(), source.getOriginY());
    destination.setRotation(source.getRotation());
    destination.setScale(source.getScaleX(), source.getScaleY());
    destination.setTouchable(source.getTouchable());
    destination.setUserObject(source.getUserObject());
    destination.setVisible(source.isVisible());
    destination.setZIndex(source.getZIndex());
    destination.getStage();
}