Package-level declarations
Functions
Link copied to clipboard
fun BoxedNumericInput(image: PolyImage? = null, pre: String? = null, min: Float = 0.0f, max: Float = 100.0f, initialValue: Float = min, step: Float = 1.0f, integral: Boolean = false, fontSize: Float = 12.0f, center: Boolean = false, post: String? = null, radius: Float = 8.0f, size: Vec2 = Vec2.ZERO): Group
Link copied to clipboard
Link copied to clipboard
fun Button(leftImage: PolyImage? = null, text: String? = null, rightImage: PolyImage? = null, fontSize: Float = 12.0f, font: Font? = null, radii: FloatArray = floatArrayOf(8f), padding: Vec2 = Vec2(12f, 6f), at: Vec2 = Vec2.ZERO, size: Vec2 = Vec2.ZERO): Block
Simple button component, with text and up to 2 images.
Link copied to clipboard
fun ColorPicker(color: Ref.ObjectRef<PolyColor.Mutable>, faves: MutableList<PolyColor>?, recents: MutableList<PolyColor>?, polyUI: PolyUI?, openNow: Boolean = true, position: Point = Point.At): Block
Link copied to clipboard
fun Dropdown(vararg entries: Pair<PolyImage?, String>, at: Vec2 = Vec2.ZERO, fontSize: Float = 12.0f, initial: Int = 0, optPadding: Float = 12.0f, textLength: Float = 0.0f): Block
fun Dropdown(vararg entries: String, at: Vec2 = Vec2.ZERO, fontSize: Float = 12.0f, initial: Int = 0, padding: Float = 12.0f, textLength: Float = 0.0f): Block
For images, use Image to "string" for each entry.
Link copied to clipboard
Link copied to clipboard
fun Radiobutton(vararg entries: Pair<PolyImage?, String?>, at: Vec2 = Vec2.ZERO, initial: Int = 0, fontSize: Float = 12.0f, optionLateralPadding: Float = 6.0f, optionVerticalPadding: Float = 6.0f): Block
For just strings, use "string" for each entry.
fun Radiobutton(vararg entries: String, at: Vec2 = Vec2.ZERO, initial: Int = 0, fontSize: Float = 12.0f, optionLateralPadding: Float = 6.0f, optionVerticalPadding: Float = 6.0f): <Error class: unknown class>
A radiobutton component, which allows you to select one of multiple options. For images, use Image for each entry.
fun Radiobutton(vararg entries: PolyImage, at: Vec2 = Vec2.ZERO, initial: Int = 0, fontSize: Float = 12.0f, optionLateralPadding: Float = 6.0f, optionVerticalPadding: Float = 6.0f): <Error class: unknown class>
For strings, use "string" for each entry.
Link copied to clipboard