Package-level declarations

Types

Link copied to clipboard
expect object Clipboard
actual object Clipboard

TODO Not implemented. Reading the HTML DOM api, I don't know if it is possible to monitor the clipboard so that we can spot when the clipboard does/doesn't contains text. So I don't know if it is possible to implement containsTextProperty (cleanly).

actual object Clipboard : ClipboardOwner

Exposes the system clipboard for copy/paste operations.

Link copied to clipboard
expect class ConsoleLog : Log

Logs messages to the console. This is stderr on the jvm, and console.log for JS

actual class ConsoleLog : Log

Logs messages to the console.

actual class ConsoleLog : Log

Logs messages to the console.

Link copied to clipboard
Link copied to clipboard
expect class FixedFormat
actual class FixedFormat
actual class FixedFormat
Link copied to clipboard
class GlokException(message: String) : Exception
Link copied to clipboard
class IgnoreLog : Log
Link copied to clipboard
class InMemoryLog(val halfMaxEntries: Int) : Log

An in-memory log, split into two parts, so that when the maximum entries are exceeded, the start and end of the log are preserved, and the middle is discarded.

Link copied to clipboard
interface Log
Link copied to clipboard
class Matrix(val m00: Float = 1.0f, var m01: Float = 0.0f, var m10: Float = 0.0f, var m11: Float = 1.0f, var m20: Float = 0.0f, var m21: Float = 0.0f)

Properties

Link copied to clipboard
var log: Log

Functions

Link copied to clipboard
fun main(vararg args: String)

Generates property boilerplate for the key classes in Glok. Also generates stylable code for :

Link copied to clipboard
expect fun <T : Any> KClass<T>.newInstance(): T
actual fun <T : Any> KClass<T>.newInstance(): T
actual fun <T : Any> KClass<T>.newInstance(): T
Link copied to clipboard
fun Matrix.toJoml(): Matrix3x2f
Link copied to clipboard
fun <T> withLogLevel(level: Int, block: () -> T): T