Positionable

interface Positionable

Represents an item that can be positioned.

See also

Types

Link copied to clipboard

Properties

Link copied to clipboard
abstract val bounds: Rectangle

The current screen location/size

Link copied to clipboard
abstract val idealSize: Size

The ideal size

Link copied to clipboard
abstract val position: Point

The current screen location

Link copied to clipboard
abstract val visible: Boolean

Whether this item is visible.

Functions

Link copied to clipboard
abstract operator fun contains(point: Point): Boolean

Checks whether this item contains point.

Link copied to clipboard
abstract fun preferredSize(min: Size, max: Size): Size

Preferred size within min and max.

Link copied to clipboard
open fun updateBounds(rectangle: Rectangle)

Sets the item's bounds to rectangle


abstract fun updateBounds(x: Double, y: Double, min: Size, max: Size): Size

Sets the item's position and asks it to choose a size within min and max

open fun updateBounds(x: Double, y: Double, width: Double, height: Double)

Sets the item's bounds to the specified values

Link copied to clipboard
open fun updatePosition(position: Point)

Sets item's Positionable.position to the given value

abstract fun updatePosition(x: Double, y: Double)

Sets item's position to x and y

Link copied to clipboard
open fun updateSize(size: Size)

open fun updateSize(min: Size, max: Size): Size

Asks the item to choose a size within min and max