Class Source
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
SourceHandleTransfer ownership: None Nullable: False
childSource
SourceHandleTransfer 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
SourceHandleTransfer ownership: None Nullable: False
fd
PollFDHandleTransfer 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
SourceHandleTransfer ownership: None Nullable: False
fd
intTransfer ownership: None Nullable: False
events
IOConditionTransfer 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
SourceHandleTransfer ownership: None Nullable: False
context
MainContextHandleTransfer 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
SourceHandleTransfer ownership: None Nullable: False
GetCanRecurse(SourceHandle)
Calls native method g_source_get_can_recurse.
public static extern bool GetCanRecurse(SourceHandle source)
Parameters
source
SourceHandleTransfer 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
SourceHandleTransfer 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
SourceHandleTransfer ownership: None Nullable: False
timeval
TimeValHandleTransfer 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
SourceHandleTransfer 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
SourceHandleTransfer 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
SourceHandleTransfer 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
SourceHandleTransfer 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
SourceHandleTransfer 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
SourceHandleTransfer 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
SourceHandleTransfer ownership: None Nullable: False
tag
IntPtrTransfer ownership: None Nullable: False
newEvents
IOConditionTransfer ownership: None Nullable: False
New(SourceFuncsHandle, uint)
Calls native constructor g_source_new.
public static extern SourceOwnedHandle New(SourceFuncsHandle sourceFuncs, uint structSize)
Parameters
sourceFuncs
SourceFuncsHandleTransfer ownership: None Nullable: False
structSize
uintTransfer 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
SourceHandleTransfer ownership: None Nullable: False
tag
IntPtrTransfer 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
SourceHandleTransfer 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
uintTransfer 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
SourceFuncsHandleTransfer ownership: None Nullable: False
userData
IntPtrTransfer 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
IntPtrTransfer 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
SourceHandleTransfer ownership: None Nullable: False
childSource
SourceHandleTransfer 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
SourceHandleTransfer ownership: None Nullable: False
fd
PollFDHandleTransfer 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
SourceHandleTransfer ownership: None Nullable: False
tag
IntPtrTransfer 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
SourceHandleTransfer ownership: None Nullable: False
func
SourceFuncTransfer ownership: None Nullable: False
data
IntPtrTransfer ownership: None Nullable: True
notify
DestroyNotifyTransfer 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
SourceHandleTransfer ownership: None Nullable: False
callbackData
IntPtrTransfer ownership: None Nullable: True
callbackFuncs
SourceCallbackFuncsHandleTransfer 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
SourceHandleTransfer ownership: None Nullable: False
canRecurse
boolTransfer 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
SourceHandleTransfer ownership: None Nullable: False
dispose
SourceDisposeFuncTransfer 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
SourceHandleTransfer ownership: None Nullable: False
funcs
SourceFuncsHandleTransfer 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
SourceHandleTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer 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
uintTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer 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
SourceHandleTransfer ownership: None Nullable: False
priority
intTransfer 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
SourceHandleTransfer ownership: None Nullable: False
readyTime
longTransfer 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
SourceHandleTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Unref(SourceHandle)
Calls native method g_source_unref.
public static extern void Unref(SourceHandle source)
Parameters
source
SourceHandleTransfer ownership: None Nullable: False