DefaultRect

class DefaultRect(position: Position, size: Size) : BaseRect

Functions

component1
Link copied to clipboard
common
open operator override fun component1(): Int
The first component (for destructuring) is x position.
component2
Link copied to clipboard
common
open operator override fun component2(): Int
The second component (for destructuring) is y position.
component3
Link copied to clipboard
common
open operator override fun component3(): Int
The third component (for destructuring) is width.
component4
Link copied to clipboard
common
open operator override fun component4(): Int
The fourth component (for destructuring) is height.
containsBoundable
Link copied to clipboard
common
open infix override fun containsBoundable(boundable: Boundable): Boolean
Tells whether this boundable contains the other boundable.
containsPosition
Link copied to clipboard
common
open infix override fun containsPosition(position: Position): Boolean
Tells whether position is within this boundable's bounds.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
fetchPositions
Link copied to clipboard
common
open override fun fetchPositions(): Iterable<Position>
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
intersects
Link copied to clipboard
common
open infix override fun intersects(boundable: Boundable): Boolean
Tells whether this Boundable intersects with the other boundable.
minus
Link copied to clipboard
common
open operator override fun minus(rect: Rect): Rect
plus
Link copied to clipboard
common
open operator override fun plus(rect: Rect): Rect
splitHorizontal
Link copied to clipboard
common
open override fun splitHorizontal(splitAtX: Int): Pair<Rect, Rect>
splitVertical
Link copied to clipboard
common
open override fun splitVertical(splitAtY: Int): Pair<Rect, Rect>
toString
Link copied to clipboard
common
open override fun toString(): String
withHeight
Link copied to clipboard
common
open override fun withHeight(height: Int): Rect
withPosition
Link copied to clipboard
common
open override fun withPosition(position: Position): Rect
withRelativeHeight
Link copied to clipboard
common
open override fun withRelativeHeight(delta: Int): Rect
withRelativePosition
Link copied to clipboard
common
open override fun withRelativePosition(position: Position): Rect
withRelativeSize
Link copied to clipboard
common
open override fun withRelativeSize(size: Size): Rect
withRelativeWidth
Link copied to clipboard
common
open override fun withRelativeWidth(delta: Int): Rect
withRelativeX
Link copied to clipboard
common
open override fun withRelativeX(delta: Int): Rect
withRelativeY
Link copied to clipboard
common
open override fun withRelativeY(delta: Int): Rect
withSize
Link copied to clipboard
common
open override fun withSize(size: Size): Rect
withWidth
Link copied to clipboard
common
open override fun withWidth(width: Int): Rect
withX
Link copied to clipboard
common
open override fun withX(x: Int): Rect
withY
Link copied to clipboard
common
open override fun withY(y: Int): Rect

Properties

bottomCenter
Link copied to clipboard
common
open override val bottomCenter: Position
bottomLeft
Link copied to clipboard
common
open override val bottomLeft: Position
bottomRight
Link copied to clipboard
common
open override val bottomRight: Position
center
Link copied to clipboard
common
open override val center: Position
height
Link copied to clipboard
common
open override val height: Int
leftCenter
Link copied to clipboard
common
open override val leftCenter: Position
position
Link copied to clipboard
common
open override val position: Position
Shorthand for Rect.position
rect
Link copied to clipboard
common
open override val rect: Rect
A Rect contains the coordinates and the size of a Boundable.
rightCenter
Link copied to clipboard
common
open override val rightCenter: Position
size
Link copied to clipboard
common
open override val size: Size
topCenter
Link copied to clipboard
common
open override val topCenter: Position
topLeft
Link copied to clipboard
common
open override val topLeft: Position
topRight
Link copied to clipboard
common
open override val topRight: Position
width
Link copied to clipboard
common
open override val width: Int
x
Link copied to clipboard
common
open override val x: Int
Shorthand for Rect.x
y
Link copied to clipboard
common
open override val y: Int
Shorthand for Rect.y

Sources

(source)
Link copied to clipboard