Package-level declarations

Types

Link copied to clipboard
interface Bitfield<T : Bitfield<T>>

Marker interface for wrapper classes that represent C bitfields.

Link copied to clipboard
open class GlibException(val error: Error)

An exception that represents a GLib GError that occurred.

Link copied to clipboard
interface Interface

Marker interface for wrapper classes that represent GType interfaces.

Link copied to clipboard
interface Record

Marker interface for wrapper classes that represent C structs.

Link copied to clipboard

An interface that should be implemented by companion objects for wrapper classes that wrap Records (C structs).

Link copied to clipboard
class RecordRef<TYPE : Record>(nativePtr: <Error class: unknown class>, record: TYPE)

A reference to a heap allocated Record (C struct).

Properties

Link copied to clipboard
val staticStableRefDestroy: <Error class: unknown class><<Error class: unknown class><(<Error class: unknown class>?, <Error class: unknown class><<Error class: unknown class>>?) -> Unit>>

Helper function that can be used as a destroy_data handler when connecting to a signal or when executing callbacks.

Functions

Link copied to clipboard

Allocate memory and instantiate a wrapper instance of this record type on the native heap.

inline fun <COMPANION : RecordCompanion<TYPE, STRUCT>, TYPE : Record, STRUCT> COMPANION.allocate(scope: <Error class: unknown class>): TYPE

Allocate memory and instantiate a wrapper instance of this record in the given MemScope

Link copied to clipboard
fun <T : Bitfield<T>> flagsOf(first: T, vararg flags: T): T

Utility function for combining bitfields to make passing flag arguments to methods more readable and explicit instead of chaining or calls in the argument list.