class TransformedMotionEvent : Recyclable
static class TransformDiff : Recyclable |
static fun calcSnapArea(radius: float, snapRangeInPixel: float, pixelDensity: float): float |
|
static fun distance(pos1X: float, pos1Y: float, pos2X: float, pos2Y: float): float static fun distance(pos1: kotlin.Array<float>, pos2: kotlin.Array<float>): float |
|
fun getActionMasked(): int
Return the kind of action being performed. Consider using |
|
fun getAlsoRecyclable(): Recyclable |
|
fun getInterpolatedPosition(dest: kotlin.Array<float>): kotlin.Array<float> |
|
fun getPointerCount(): int
The number of pointers of data contained in this event. Always >= 1. |
|
fun getPosition(index: int): kotlin.Array<float> fun getPosition(index: int, dest: kotlin.Array<float>): kotlin.Array<float>
Get the transformed pos of the point. |
|
fun getRawEvent(): MotionEvent |
|
fun getScreenEvent(): TransformedMotionEvent |
|
fun hasClicked(): boolean
Check if the event is a click. |
|
fun hasDoubleTapped(): boolean |
|
fun hasFixedCenterPoint(): boolean
Return if the event has a fixed center point to emulate a multitouch rotating and scaling Event. |
|
fun isCheckpoint(): boolean
If this return true you must saveImage your current state. The TransformDifference values will be at the start values. (xDiff = 0, yDiff = 0; angleDiff = 0; distanceDiff, scale = 1;) |
|
fun isPositionHitting(area: MultiRect): boolean fun isPositionHitting(index: int, area: MultiRect): boolean fun isPositionHitting(index: int, area: MultiRect, areaMatrix: Transformation): boolean
Get the transformed pos of the point. |
|
fun isRelease(): boolean |
|
static fun mapFromSnapSystem(value: float, sortedSnapPoints: kotlin.Array<float>, snapArea: float, extendedRange: boolean): float |
|
static fun mapToSnapSystem(value: float, sortedSnapPoints: kotlin.Array<float>, snapArea: float, extendedRange: boolean): float static fun mapToSnapSystem(value: float, sortedSnapPoints: kotlin.Array<float>, snapArea: float, extendedRange: boolean, snapped: kotlin.Array<boolean>): float |
|
static fun obtain(event: MotionEvent): TransformedMotionEvent static fun obtain(event: MotionEvent, matrix: Matrix): TransformedMotionEvent |
|
fun obtainTransformDifference(): TransformedMotionEvent.TransformDiff
Return the differences to the checkpoint. The initial values are (xDiff = 0, yDiff = 0; angleDiff = 0; distanceDiff, scale = 1) |
|
fun onRecycle(): void |
|
fun recycle(): void |
|
fun setAlsoRecyclable(recyclable: Recyclable): void |
|
fun setFixedCenterPoint(pos: kotlin.Array<float>): void fun setFixedCenterPoint(x: float, y: float): void
Set a center point to emulate a multitouch rotating and scaling Event |