Package-level declarations

Types

Link copied to clipboard
data class Align(val main: Align.Main = Main.Start, val cross: Align.Cross = Cross.Center, val mode: Align.Mode = Mode.Horizontal, val padding: Vec2 = Vec2(6f, 6f), val maxRowSize: Int = 50)
Link copied to clipboard
enum Point : Enum<Point>
Link copied to clipboard
open class Vec2(var x: Float, var y: Float) : Cloneable, Comparable<Vec2>

Class that represents a 2D vector.

Properties

Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "hours")
val Number.hours: Long
Link copied to clipboard
@get:JvmName(name = "microseconds")
val Number.microseconds: Long
Link copied to clipboard
@get:JvmName(name = "milliseconds")
val Number.milliseconds: Long
Link copied to clipboard
@get:JvmName(name = "minutes")
val Number.minutes: Long
Link copied to clipboard
@get:JvmName(name = "ms")
val Number.ms: Long
Link copied to clipboard
@get:JvmName(name = "nanoseconds")
val Number.nanoseconds: Long

note that the smallest unit of time in PolyUI is 1 nanosecond.

Link copied to clipboard
@get:JvmName(name = "seconds")
val Number.seconds: Long
Link copied to clipboard
@get:JvmName(name = "secs")
val Number.secs: Long
Link copied to clipboard

Functions

Link copied to clipboard
infix inline fun Double.by(other: Double): Vec2
infix inline fun Double.by(other: Float): Vec2
infix inline fun Double.by(other: Int): Vec2
infix inline fun Float.by(other: Double): Vec2
infix inline fun Float.by(other: Float): Vec2
infix inline fun Float.by(other: Int): Vec2
infix inline fun Int.by(other: Double): Vec2
infix inline fun Int.by(other: Float): Vec2
infix inline fun Int.by(other: Int): Vec2
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Vec2.scale(polyUI: PolyUI)

Scale this vec2 by any scaling that has been applied to this PolyUI instance.