struct Rect
source · line 14public
public struct Rect(val x: Double, val y: Double, val width: Double, val height: Double)
A logical rectangle. Parent relationships do not imply clipping to this rectangle.
function contains
source · line 17public
public fun contains(point: Point): Boolean
parameter point
source · line 17public
point: Point
constructor constructor
source · line 14public
constructor(val x: Double, val y: Double, val width: Double, val height: Double)
parameter height
source · line 14public
val height: Double
parameter y
source · line 14public
val y: Double
parameter width
source · line 14public
val width: Double
parameter x
source · line 14public
val x: Double
field height
source · line 14public
val height: Double
field y
source · line 14public
val y: Double
property origin
source · line 15public
public val origin: Point
get: public read-only
getter get
source · line 15public
get(): Point
field width
source · line 14public
val width: Double
property size
source · line 16public
public val size: Size
get: public read-only
getter get
source · line 16public
get(): Size
field x
source · line 14public
val x: Double
function equals
source · line 14publiccompiler-derived
operator fun equals(other: Rect): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: Double.