Companion

object Companion

Functions

Link copied to clipboard
fun getType(): <Error class: unknown class>

Get the GType of Source

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 removeByFuncsUserData(funcs: SourceFuncs, userData: <Error class: unknown class>? = null): Boolean

Removes a source from the default main loop context given the source functions and user data. If multiple sources exist with the same source functions and user data, only one will be destroyed.

Link copied to clipboard
fun removeByUserData(userData: <Error class: unknown class>? = null): Boolean

Removes a source from the default main loop context given the user data for the callback. If multiple sources exist with the same user data, only one will be destroyed.

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

Sets the name of a source using its ID.