Skip to content

GlobalBounds

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

data class GlobalBounds(val x: Long, val y: Long, val width: Long, val height: Long)

Defines the dimension and positions in Global coordinates for a geometry. By Global we mean that the View position will not be relative to its parent but to the Device screen. These dimensions are already normalized according with the current device screen density. Example: if a device has a DPI = 2, the value of the dimension or position is divided by 2 to get a normalized value.

Parameters

x as the position on X axis
y as the position on Y axis
width as the width
height as the height

Constructors

GlobalBounds

constructor(x: Long, y: Long, width: Long, height: Long)

Parameters
x as the position on X axis
y as the position on Y axis
width as the width
height as the height

Properties

height

val height: Long

Parameters
height as the height

width

val width: Long

Parameters
width as the width

x

val x: Long

Parameters
x as the position on X axis

y

val y: Long

Parameters
y as the position on Y axis
Clone this wiki locally