Package-level declarations

Types

Link copied to clipboard
enum Cursor : Enum<Cursor>

This enum represents the different cursors that can be used in PolyUI.

Link copied to clipboard
class Font @JvmOverloads constructor(val resourcePath: String, val letterSpacing: Float = 0.0f, val lineSpacing: Float = 1.2f, val family: FontFamily? = null, val italic: Boolean = resourcePath.contains("italic", ignoreCase = true), val weight: Font.Weight = Weight.entries.getByName(resourcePath.findLastAnyOf(Weight.entries.names(), ignoreCase = true)?.second) ?: Weight.Regular) : Resource

A font used by the rendering implementation. As with other PolyUI resources, the actual loading, management, etc. of the font is NOT managed in this class in any way. This class just contains metadata for usage with PolyUI.

Link copied to clipboard
open class FontFamily(val name: String, path: String, fallback: FontFamily? = null)

Represents a font family, which consists of multiple font styles.

Link copied to clipboard
data class Framebuffer(val width: Float, val height: Float)

Class that represents a framebuffer in PolyUI.

Link copied to clipboard
class PolyImage @JvmOverloads constructor(val resourcePath: String, val type: PolyImage.Type = from(resourcePath)) : Resource

Image representation in PolyUI. The image is lazily-loaded from the resourcePath.

Link copied to clipboard
open class Resource(val resourcePath: String, val loadSync: Boolean = ":/" !in resourcePath)

representation of a resource, which can be loaded asynchronously or synchronously.