Companion

object Companion : RecordCompanion<Source, <Error class: unknown class>>

Functions

Link copied to clipboard
fun new(sourceFuncs: SourceFuncs, structSize: <Error class: unknown class>): Source

Creates a new struct@GLib.Source structure. The size is specified to allow creating structures derived from struct@GLib.Source that contain additional data. The size passed in must be at least sizeof (GSource).

Link copied to clipboard
fun remove(tag: <Error class: unknown class>): Boolean

Removes the source with the given ID from the default main context. You must use method@GLib.Source.destroy for sources added to a non-default main context.

Link copied to clipboard
fun setNameById(tag: <Error class: unknown class>, name: String)

Sets the name of a source using its ID.

Link copied to clipboard
open override fun wrapRecordPointer(pointer: <Error class: unknown class><out <Error class: unknown class>>): Source

Wrap a CPointer pointing to a record of this type into its wrapper class.