Source

constructor(sourceFuncs: SourceFuncs, structSize: <Error class: unknown class>)(source)

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

The source will not initially be associated with any #GMainContext and must be added to one with g_source_attach() before it will be executed.

Return

the newly-created #GSource.

Parameters

sourceFuncs

structure containing functions that implement the sources behavior.

structSize

size of the #GSource structure to create.


constructor()(source)

Allocate a new Source.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)(source)

Allocate a new Source using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(glibSourcePointer: <Error class: unknown class><<Error class: unknown class>>)(source)