DefaultMovable

class DefaultMovable(size: Size, position: Position) : Boundable, Movable

Functions

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 fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open 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.
moveBy
Link copied to clipboard
common
open fun moveBy(position: Position): Boolean
Moves this Movable relative to its current position by the given position.
moveDownBy
Link copied to clipboard
common
open fun moveDownBy(delta: Int): Boolean
moveLeftBy
Link copied to clipboard
common
open fun moveLeftBy(delta: Int): Boolean
moveRightBy
Link copied to clipboard
common
open fun moveRightBy(delta: Int): Boolean
moveTo
Link copied to clipboard
common
open override fun moveTo(position: Position): Boolean
Sets the position of this Movable.
moveUpBy
Link copied to clipboard
common
open fun moveUpBy(delta: Int): Boolean
toString
Link copied to clipboard
common
open fun toString(): String

Properties

height
Link copied to clipboard
common
open override val height: Int
position
Link copied to clipboard
common
open override val position: Position
Shorthand for Rect.position
rect
Link copied to clipboard
common
open override var rect: Rect
A Rect contains the coordinates and the size of a Boundable.
rectValue
Link copied to clipboard
common
open override val rectValue: Property<Rect>
Observable value that can be used to observe the changes of rect.
size
Link copied to clipboard
common
open override val size: Size
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