Zone

interface Zone

A Zone represents a simple shape that indicates this screen zone can interact with user.

See also

Functions

contains
Link copied to clipboard
common
abstract fun contains(point: Point): Boolean
Does this Zone contains the given Point?
getAnchorPoint
Link copied to clipboard
common
abstract fun getAnchorPoint(layoutPosition: LayoutPosition): Point
Define an "anchor point" at the given LayoutPosition, useful to place labels or tooltips over a Zone.

Properties

bounds
Link copied to clipboard
common
abstract val bounds: Rect
The bounds of this Zone as a Rect.
center
Link copied to clipboard
common
abstract val center: Point
The geometric center coordinates of this Zone.

Inheritors

CircleZone
Link copied to clipboard
RectZone
Link copied to clipboard