Example usage for com.badlogic.gdx.scenes.scene2d.ui Value subclass-usage

List of usage examples for com.badlogic.gdx.scenes.scene2d.ui Value subclass-usage

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d.ui Value subclass-usage.

Usage

From source file com.kotcrab.vis.editor.util.scene2d.ScrollPaneScrollWidthValue.java

/**
 * Values returning width of provided scroll pane scroll area width. Usedful when embeding {@link GridGroup} in a
 * {@link VisTable} in a {@link VisScrollPane} with scrolling X disabled.
 * @author Kotcrab
 */
public class ScrollPaneScrollWidthValue extends Value {

From source file com.kotcrab.vis.ui.util.value.ConstantIfVisibleValue.java

/**
 * Value that returns given fixed constant value if widget is visible. If actor is invisible then returns 0.
 * @author Kotcrab
 * @since 1.1.0
 */
public class ConstantIfVisibleValue extends Value {

From source file com.kotcrab.vis.ui.util.value.PrefHeightIfVisibleValue.java

/**
 * Value that returns widget preferred height if it's visible. If widget is invisible then returns 0.
 * This can be only added to classes extending {@link Widget} or {@link Table}, if you try to add it to any other class
 * you will get {@link IllegalStateException} during runtime.
 * @author Kotcrab
 * @since 0.9.3

From source file com.kotcrab.vis.ui.util.value.PrefWidthIfVisibleValue.java

/**
 * Value that returns widget preferred width if it's visible. If widget is invisible then returns 0.
 * This can be only added to classes extending {@link Widget} or {@link Table}, if you try to add it to any other class
 * you will get {@link IllegalStateException} during runtime.
 * @author Kotcrab
 * @since 1.0.0

From source file com.kotcrab.vis.ui.util.value.VisValue.java

/**
 * Allows to use LibGDX {@link Value} with lambdas. Using this on Java lower than 1.8 is pointless because lambadas are
 * not supported.
 * @author Kotcrab
 * @see VisWidgetValue
 * @since 0.9.3

From source file com.kotcrab.vis.ui.util.value.VisWidgetValue.java

/**
 * Allows to use LibGDX {@link Value} with lambdas for scene2d.ui widgets. Note that this cannot be added to actors,
 * only widgets are supported, if you try to do so you will get {@link ClassCastException} when this Value has been invoked.
 * Using this on Java lower than 1.8 is pointless because lambadas are not supported.
 * @author Kotcrab
 * @see VisValue