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 pad: Vec2 = Vec2(6f, 6f), val maxRowSize: Int = 50)
Link copied to clipboard
enum Point : Enum<Point>
Link copied to clipboard
value class Vec2

Class that represents a 2D vector.

Link copied to clipboard
abstract class Vec4 : Comparable<Vec4> , Cloneable

Class that represents a 4D 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
inline fun Float.fix(): Float
Link copied to clipboard

Create a Vec4 from a Vec2, copying the Vec2.x and Vec2.y values to Vec4.w and Vec4.h respectively.