ViewBounds

data class ViewBounds(var left: Int = 0, var top: Int = 0, var right: Int = 0, var bottom: Int = 0)

Replaces Rect for unit testing purposes

Constructors

Link copied to clipboard
constructor(left: Int = 0, top: Int = 0, right: Int = 0, bottom: Int = 0)

Properties

Link copied to clipboard
var bottom: Int
Link copied to clipboard
val height: Int
Link copied to clipboard
var left: Int
Link copied to clipboard
var right: Int
Link copied to clipboard
var top: Int
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
fun asRect(): Rect
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setEmpty()
Link copied to clipboard
open override fun toString(): String