Package tripleplay.ui

Class ModalShadow

java.lang.Object
playn.scene.Layer
tripleplay.ui.ModalShadow
All Implemented Interfaces:
AutoCloseable, react.Closeable

public class ModalShadow extends Layer
A layer that fills a region with shadow and absorbs all pointer, mouse and touch interactions that land on it. This is primarily intended to be displayed below modal interfaces which must prevent interaction with any interfaces over which they are displayed.
  • Constructor Details

    • ModalShadow

      public ModalShadow(pythagoras.f.IDimension size)
    • ModalShadow

      public ModalShadow(float width, float height)
  • Method Details

    • width

      public float width()
      Overrides:
      width in class Layer
    • height

      public float height()
      Overrides:
      height in class Layer
    • setColor

      public void setColor(int color, float alpha)
    • clicked

      public react.SignalView<ModalShadow> clicked()
      A signal emitted when the a touch, pointer or mouse press is happens on the shadow layer. This can be useful in situations where one wants to dismiss a modal dialog when the user taps anywhere outside the dialog.