Package tripleplay.ui
Class ModalShadow
java.lang.Object
playn.scene.Layer
tripleplay.ui.ModalShadow
- All Implemented Interfaces:
AutoCloseable
,react.Closeable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class playn.scene.Layer
Layer.HitTester, Layer.Origin, Layer.State, Layer.Visitor
Nested classes/interfaces inherited from interface react.Closeable
react.Closeable.Set, react.Closeable.Util
-
Field Summary
Fields inherited from class playn.scene.Layer
DEBUG_RECTS, state
-
Constructor Summary
ConstructorDescriptionModalShadow
(float width, float height) ModalShadow
(pythagoras.f.IDimension size) -
Method Summary
Modifier and TypeMethodDescriptionreact.SignalView<ModalShadow>
clicked()
A signal emitted when the a touch, pointer or mouse press is happens on the shadow layer.float
height()
void
setColor
(int color, float alpha) float
width()
Methods inherited from class playn.scene.Layer
absorbHits, alpha, close, debugPrint, depth, disposed, events, hasEventListeners, hitTest, hitTestDefault, interactive, name, onAdded, onDisposed, onRemoved, origin, origin, originX, originY, paint, parent, rotation, scale, scaledHeight, scaledWidth, scaleX, scaleY, setAlpha, setBatch, setDepth, setHitTester, setInteractive, setName, setOrigin, setOrigin, setRotation, setScale, setScale, setScaleX, setScaleY, setTint, setTranslation, setTranslation, setTx, setTy, setVisible, tint, toString, transform, translation, translation, tx, ty, visible, visit
-
Constructor Details
-
ModalShadow
public ModalShadow(pythagoras.f.IDimension size) -
ModalShadow
public ModalShadow(float width, float height)
-
-
Method Details
-
width
public float width() -
height
public float height() -
setColor
public void setColor(int color, float alpha) -
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.
-