All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.czyzby.autumn.mvc.component.ui.controller.ViewShower Maven / Gradle / Ivy

Go to download

MVC framework based on LibGDX using Autumn for components management and LML as view templates.

There is a newer version: 1.9.1.9.6
Show newest version
package com.github.czyzby.autumn.mvc.component.ui.controller;

import com.badlogic.gdx.scenes.scene2d.Action;
import com.badlogic.gdx.scenes.scene2d.Stage;

/** Manages view hiding and showing.
 *
 * @author MJ */
public interface ViewShower {
    /** Called each time the view is shown.
     *
     * @param stage managed by the view.
     * @param action default showing action. Usually does not contain crucial logic (beside setting input processor to
     *            the current stage) and can be ignored. If you want the action to execute after the screen is fully
     *            shown, chain the action with your custom runnables and pass it to the stage. */
    public void show(Stage stage, Action action);

    /** Called each time the view is hidden.
     *
     * @param stage managed by the view.
     * @param action default hiding action. Might contain an action to show the next view, which might have to be
     *            extracted or reproduced. If you want the action to execute after the screen is fully hidden, chain the
     *            action with your custom runnables and pass it to the stage. */
    public void hide(Stage stage, Action action);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy