Package-level declarations

Functions

Link copied to clipboard
fun Color(red: Float, green: Float, blue: Float, alpha: Float = 1.0f): Color
fun Color(red: Float, green: Float, blue: Float, alpha: Float = 1.0f): Color

Creates a new instance of Color with the given parameters.

Link copied to clipboard
fun FontName(value: String): FontName
fun FontName(value: String): FontName

Creates a new instance of FontName with the given value.

Link copied to clipboard

Creates a new instance of FontSizeInPixels with the given value.

Link copied to clipboard
fun KeyModifiers(altDown: Boolean = false, metaDown: Boolean = false, shiftDown: Boolean = false, controlDown: Boolean = false, altGraphDown: Boolean = false): KeyModifiers
fun KeyModifiers(altDown: Boolean = false, metaDown: Boolean = false, shiftDown: Boolean = false, controlDown: Boolean = false, altGraphDown: Boolean = false): KeyModifiers

Creates a new instance of KeyModifiers with the given parameters.

Link copied to clipboard
fun MouseModifiers(primaryButtonDown: Boolean = false, middleButtonDown: Boolean = false, secondaryButtonDown: Boolean = false): MouseModifiers
fun MouseModifiers(primaryButtonDown: Boolean = false, middleButtonDown: Boolean = false, secondaryButtonDown: Boolean = false): MouseModifiers

Creates a new instance of MouseModifiers with the given parameters.

Link copied to clipboard
fun Point(x: Int, y: Int): Point
fun Point(x: Int, y: Int): Point

Creates a new instance of Point with the given x and y coordinates.

Link copied to clipboard
fun Rect(origin: Point = Point.empty(), size: Size): Rect
fun Rect(origin: Point = Point.empty(), size: Size): Rect

Creates a new instance of Rect with the given origin and size.

fun Rect(x: Int = 0, y: Int = 0, width: Int, height: Int): Rect
fun Rect(x: Int = 0, y: Int = 0, width: Int, height: Int): Rect

Creates a new instance of Rect with the given parameters.

Link copied to clipboard
fun Size(width: Int, height: Int): Size
fun Size(width: Int, height: Int): Size

Creates a new instance of Size with the given width and height.

Link copied to clipboard
fun TouchPoint(id: Int, state: <Error class: unknown class>, positionInScreen: Point, positionInWidget: Point = Point.empty(), force: Float = 0.0f, radiusX: Float = 0.0f, radiusY: Float = 0.0f, rotationAngle: Float = 0.0f): TouchPoint
fun TouchPoint(id: Int, state: <Error class: unknown class>, positionInScreen: Point, positionInWidget: Point = Point.empty(), force: Float = 0.0f, radiusX: Float = 0.0f, radiusY: Float = 0.0f, rotationAngle: Float = 0.0f): TouchPoint

Creates a new instance of TouchPoint with the given parameters.