RectF

Rectangle representation based on pixels

Constructors

Link copied to clipboard
constructor()
constructor(address: Long)
constructor(left: Number = 0.0f, top: Number = 0.0f, right: Number = 0.0f, bottom: Number = 0.0f)
constructor(pos: XyF, size: SizeF)
constructor(pos: XyF, size: Size)
constructor(topLeft: XyF, botRight: XyF)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Return the lowest y coordinate (bottom side) of the rectangle.

Link copied to clipboard
val center: XyF?

Returns the center of the rectangle

Link copied to clipboard

Returns the dimensions of the rectangle

Link copied to clipboard

Viewport height, in pixels.from top edge of screen.

Link copied to clipboard

Return the rightmost x coordinate (right side) of the rectangle.

Link copied to clipboard

Viewport width, in pixels.from top edge of screen.

Link copied to clipboard
var x: Float

Horizontal offset of viewport from left edge of screen.

Link copied to clipboard
var y: Float

Vertical offset of viewport from top edge of screen.

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun inflate(dx: Float, dy: Float)

Expand viewport by adding 2dx to its width and 2dy to its height, while leaving its center unmoved.

Link copied to clipboard
external fun isEmpty(): Boolean

Returns true if all 4 sides of the rectangle are set to zero.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
external fun pointInRectangle(xy: XyF): Boolean

Check if XY position is inside rectangle

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
fun toRect(): Rect

Converts this to Rect