Package-level declarations

Types

Link copied to clipboard
typealias CastFunc = () -> Unit
Link copied to clipboard
data class GeneratedClassKGType<out T : Any>(val gType: <Error class: unknown class>, val convertPointerFunc: (<Error class: unknown class><<Error class: unknown class>>) -> T) : KGType<T>

KGType implementation for generated classes.

Link copied to clipboard
data class GeneratedInterfaceKGType<out T : Any>(val gType: <Error class: unknown class>, val convertPointerFunc: (<Error class: unknown class><<Error class: unknown class>>) -> T) : KGType<T>

KGType implementation for generated interfaces.

Link copied to clipboard
sealed interface KGType<out T : Any>

Interface for GObject type information holders.

Link copied to clipboard
interface KGTyped

Marker interface added to all library classes and interfaces that have an associate KGType.

Link copied to clipboard
open class ObjectType<T : Object>(typeClass: KClass<T>, parentType: KGType<Object>) : TypeCompanion<T>

Companion object base class used for declaring Kotlin classes that are registered in the GObject type system.

Link copied to clipboard
interface TypeCompanion<T : Any>

Interface implemented by all companion objects for types that have a KGType.

Link copied to clipboard
interface TypeProvider

Interface used for dynamic type casting.

Link copied to clipboard
data class UserDefinedKGType<out T : Object>(val gType: <Error class: unknown class>, val convertPointerFunc: (<Error class: unknown class><<Error class: unknown class>>) -> T) : KGType<T>

KGType implementation for user defined types.

Functions

Link copied to clipboard
fun <T : KGTyped> asType(obj: Object, targetClass: KClass<T>): T

Convert object into type T.

Link copied to clipboard
inline fun <T : KGTyped> Object.asType(): T

Convert object into type T.

Link copied to clipboard
Link copied to clipboard
fun Object.getIntProperty(propertyName: String): Int
Link copied to clipboard
fun Object.getStringProperty(propertyName: String): String?
Link copied to clipboard
fun Object.setProperty(propertyName: String, value: Boolean)
fun Object.setProperty(propertyName: String, value: Int)
fun Object.setProperty(propertyName: String, value: String?)