public abstract class Input<L> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Input.BoundsRegion
A region that encompasses the supplied (screen) bounds.
|
static class |
Input.LayerRegion
A region that encompasses supplied bounds, as transformed by the supplied layer's
transform.
|
static class |
Input.Region
Encapsulates enabledness, expiry, and hit testing.
|
static interface |
Input.Registration
Provides a handle on a listener or action registration.
|
static class |
Input.ScreenRegion
A region that encompasses the entire screen.
|
static class |
Input.SizedLayerRegion
A region that encompasses the supplied layer's (transformed) bounds.
|
Constructor and Description |
---|
Input() |
Modifier and Type | Method and Description |
---|---|
abstract Input.Registration |
register(Input.Region region,
L listener)
Configures a reaction to be notified of pointer activity.
|
Input.Registration |
register(pythagoras.f.IRectangle bounds,
L listener)
Registers a reaction using
Input.BoundsRegion and the supplied listener. |
Input.Registration |
register(L listener)
Registers a reaction using
Input.ScreenRegion and the supplied listener. |
Input.Registration |
register(Layer.HasSize layer,
L listener)
Registers a reaction using
Input.SizedLayerRegion and the supplied listener. |
Input.Registration |
register(Layer layer,
pythagoras.f.IRectangle bounds,
L listener)
Registers a reaction using
Input.LayerRegion and the supplied listener. |
public abstract Input.Registration register(Input.Region region, L listener)
Subsequent pointer drag and end events will be dispatched to the reaction that successfully hit-tested the pointer start.
public Input.Registration register(L listener)
Input.ScreenRegion
and the supplied listener.public Input.Registration register(pythagoras.f.IRectangle bounds, L listener)
Input.BoundsRegion
and the supplied listener.public Input.Registration register(Layer layer, pythagoras.f.IRectangle bounds, L listener)
Input.LayerRegion
and the supplied listener.public Input.Registration register(Layer.HasSize layer, L listener)
Input.SizedLayerRegion
and the supplied listener.Copyright © 2015. All Rights Reserved.