Insets

class Insets(val top: Double = 0.0, val left: Double = 0.0, val bottom: Double = 0.0, val right: Double = 0.0)

Represents offsets from a Rectangle's boundary. Each of the 4 sides are specified independently as follows:

┌───────────────────┐
│       t           │
│   ┌─────────┐     │
│ l │         │  r  │
│   └─────────┘     │
│       b           │
└───────────────────┘

The values l,t,r, and b represent the Left, Top, Right, and Bottom values for the Insets respectively.

Author

Nicholas Eddy

Constructors

Link copied to clipboard
constructor(all: Double)

Creates a Insets with equal offset from all edges. This is equivalent to calling Insets(all, all, all, all)

constructor(top: Double = 0.0, left: Double = 0.0, bottom: Double = 0.0, right: Double = 0.0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val bottom: Double = 0.0
Link copied to clipboard
val left: Double = 0.0
Link copied to clipboard
val right: Double = 0.0
Link copied to clipboard
val top: Double = 0.0

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String