Google is committed to advancing racial equity for Black communities. See how.

BaseGestureScope

sealed class BaseGestureScope
kotlin.Any
   ↳ androidx.ui.test.BaseGestureScope

Summary

Extension functions
From androidx.ui.test
Offset

Transforms the position to global coordinates, as defined by globalBounds

Offset
BaseGestureScope.percentOffset(@FloatRange(-1.0, 1.0) x: Float = 0f, @FloatRange(-1.0, 1.0) y: Float = 0f)

Creates an Offset relative to the size of the component we're interacting with.

Extension properties
From androidx.ui.test
Float

Returns the y-coordinate for the bottom of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Offset

Returns the center of the bottom edge of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Offset

Returns the bottom left corner of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Offset

Returns the bottom right corner of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Offset

Returns the center of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Offset

Returns the center of the left edge of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Offset

Returns the center of the right edge of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Float

Returns the x-coordinate for the center of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Float

Returns the y-coordinate for the center of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

PxBounds

Returns the global bounds of the component we're interacting with

Int

Shorthand for size.height

Float

Returns the x-coordinate for the left edge of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Float

Returns the x-coordinate for the right edge of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

IntSize

Returns the size of the component we're interacting with

Float

Returns the y-coordinate for the bottom of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Offset

Returns the center of the top edge of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Offset

Returns the top left corner of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Offset

Returns the top right corner of the component we're interacting with, in the component's local coordinate system, where (0, 0) is the top left corner of the component.

Int

Shorthand for size.width