Table of Contents

Class Source

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class Source
Inheritance
Source
Inherited Members

Methods

AddChildSource(SourceHandle, SourceHandle)

Calls native method g_source_add_child_source. Version: 2.28

[Version("2.28")]
public static extern void AddChildSource(SourceHandle source, SourceHandle childSource)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

childSource SourceHandle

Transfer ownership: None Nullable: False

AddPoll(SourceHandle, PollFDHandle)

Calls native method g_source_add_poll.

public static extern void AddPoll(SourceHandle source, PollFDHandle fd)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

fd PollFDHandle

Transfer ownership: None Nullable: False

AddUnixFd(SourceHandle, int, IOCondition)

Calls native method g_source_add_unix_fd. Version: 2.36

[Version("2.36")]
public static extern IntPtr AddUnixFd(SourceHandle source, int fd, IOCondition events)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

fd int

Transfer ownership: None Nullable: False

events IOCondition

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

Attach(SourceHandle, MainContextHandle)

Calls native method g_source_attach.

public static extern uint Attach(SourceHandle source, MainContextHandle context)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

context MainContextHandle

Transfer ownership: None Nullable: True

Returns

uint

Transfer ownership: None Nullable: False

Destroy(SourceHandle)

Calls native method g_source_destroy.

public static extern void Destroy(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

GetCanRecurse(SourceHandle)

Calls native method g_source_get_can_recurse.

public static extern bool GetCanRecurse(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetContext(SourceHandle)

Calls native method g_source_get_context.

public static extern MainContextUnownedHandle GetContext(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

Returns

MainContextUnownedHandle

Transfer ownership: None Nullable: True

GetCurrentTime(SourceHandle, TimeValHandle)

Calls native method g_source_get_current_time.

public static extern void GetCurrentTime(SourceHandle source, TimeValHandle timeval)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

timeval TimeValHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_source_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetId(SourceHandle)

Calls native method g_source_get_id.

public static extern uint GetId(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetName(SourceHandle)

Calls native method g_source_get_name. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetName(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetPriority(SourceHandle)

Calls native method g_source_get_priority.

public static extern int GetPriority(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetReadyTime(SourceHandle)

Calls native method g_source_get_ready_time.

public static extern long GetReadyTime(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

Returns

long

Transfer ownership: None Nullable: False

GetTime(SourceHandle)

Calls native method g_source_get_time. Version: 2.28

[Version("2.28")]
public static extern long GetTime(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

Returns

long

Transfer ownership: None Nullable: False

IsDestroyed(SourceHandle)

Calls native method g_source_is_destroyed. Version: 2.12

[Version("2.12")]
public static extern bool IsDestroyed(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ModifyUnixFd(SourceHandle, IntPtr, IOCondition)

Calls native method g_source_modify_unix_fd. Version: 2.36

[Version("2.36")]
public static extern void ModifyUnixFd(SourceHandle source, IntPtr tag, IOCondition newEvents)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

tag IntPtr

Transfer ownership: None Nullable: False

newEvents IOCondition

Transfer ownership: None Nullable: False

New(SourceFuncsHandle, uint)

Calls native constructor g_source_new.

public static extern SourceOwnedHandle New(SourceFuncsHandle sourceFuncs, uint structSize)

Parameters

sourceFuncs SourceFuncsHandle

Transfer ownership: None Nullable: False

structSize uint

Transfer ownership: None Nullable: False

Returns

SourceOwnedHandle

Transfer ownership: Full Nullable: False

QueryUnixFd(SourceHandle, IntPtr)

Calls native method g_source_query_unix_fd. Version: 2.36

[Version("2.36")]
public static extern IOCondition QueryUnixFd(SourceHandle source, IntPtr tag)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

tag IntPtr

Transfer ownership: None Nullable: False

Returns

IOCondition

Transfer ownership: None Nullable: False

Ref(SourceHandle)

Calls native method g_source_ref.

public static extern SourceOwnedHandle Ref(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

Returns

SourceOwnedHandle

Transfer ownership: Full Nullable: False

Remove(uint)

Calls native function g_source_remove.

public static extern bool Remove(uint tag)

Parameters

tag uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

RemoveByFuncsUserData(SourceFuncsHandle, IntPtr)

Calls native function g_source_remove_by_funcs_user_data.

public static extern bool RemoveByFuncsUserData(SourceFuncsHandle funcs, IntPtr userData)

Parameters

funcs SourceFuncsHandle

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

RemoveByUserData(IntPtr)

Calls native function g_source_remove_by_user_data.

public static extern bool RemoveByUserData(IntPtr userData)

Parameters

userData IntPtr

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

RemoveChildSource(SourceHandle, SourceHandle)

Calls native method g_source_remove_child_source. Version: 2.28

[Version("2.28")]
public static extern void RemoveChildSource(SourceHandle source, SourceHandle childSource)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

childSource SourceHandle

Transfer ownership: None Nullable: False

RemovePoll(SourceHandle, PollFDHandle)

Calls native method g_source_remove_poll.

public static extern void RemovePoll(SourceHandle source, PollFDHandle fd)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

fd PollFDHandle

Transfer ownership: None Nullable: False

RemoveUnixFd(SourceHandle, IntPtr)

Calls native method g_source_remove_unix_fd. Version: 2.36

[Version("2.36")]
public static extern void RemoveUnixFd(SourceHandle source, IntPtr tag)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

tag IntPtr

Transfer ownership: None Nullable: False

SetCallback(SourceHandle, SourceFunc, IntPtr, DestroyNotify)

Calls native method g_source_set_callback.

public static extern void SetCallback(SourceHandle source, SourceFunc func, IntPtr data, DestroyNotify notify)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

func SourceFunc

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

notify DestroyNotify

Transfer ownership: None Nullable: True

SetCallbackIndirect(SourceHandle, IntPtr, SourceCallbackFuncsHandle)

Calls native method g_source_set_callback_indirect.

public static extern void SetCallbackIndirect(SourceHandle source, IntPtr callbackData, SourceCallbackFuncsHandle callbackFuncs)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

callbackData IntPtr

Transfer ownership: None Nullable: True

callbackFuncs SourceCallbackFuncsHandle

Transfer ownership: None Nullable: False

SetCanRecurse(SourceHandle, bool)

Calls native method g_source_set_can_recurse.

public static extern void SetCanRecurse(SourceHandle source, bool canRecurse)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

canRecurse bool

Transfer ownership: None Nullable: False

SetDisposeFunction(SourceHandle, SourceDisposeFunc)

Calls native method g_source_set_dispose_function. Version: 2.64

[Version("2.64")]
public static extern void SetDisposeFunction(SourceHandle source, SourceDisposeFunc dispose)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

dispose SourceDisposeFunc

Transfer ownership: None Nullable: False

SetFuncs(SourceHandle, SourceFuncsHandle)

Calls native method g_source_set_funcs. Version: 2.12

[Version("2.12")]
public static extern void SetFuncs(SourceHandle source, SourceFuncsHandle funcs)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

funcs SourceFuncsHandle

Transfer ownership: None Nullable: False

SetName(SourceHandle, NonNullableUtf8StringHandle)

Calls native method g_source_set_name. Version: 2.26

[Version("2.26")]
public static extern void SetName(SourceHandle source, NonNullableUtf8StringHandle name)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetNameById(uint, NonNullableUtf8StringHandle)

Calls native function g_source_set_name_by_id. Version: 2.26

[Version("2.26")]
public static extern void SetNameById(uint tag, NonNullableUtf8StringHandle name)

Parameters

tag uint

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetPriority(SourceHandle, int)

Calls native method g_source_set_priority.

public static extern void SetPriority(SourceHandle source, int priority)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

priority int

Transfer ownership: None Nullable: False

SetReadyTime(SourceHandle, long)

Calls native method g_source_set_ready_time. Version: 2.36

[Version("2.36")]
public static extern void SetReadyTime(SourceHandle source, long readyTime)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

readyTime long

Transfer ownership: None Nullable: False

SetStaticName(SourceHandle, NonNullableUtf8StringHandle)

Calls native method g_source_set_static_name. Version: 2.70

[Version("2.70")]
public static extern void SetStaticName(SourceHandle source, NonNullableUtf8StringHandle name)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Unref(SourceHandle)

Calls native method g_source_unref.

public static extern void Unref(SourceHandle source)

Parameters

source SourceHandle

Transfer ownership: None Nullable: False