Class Source
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class Source : BoxedRecord, IEquatable<Source>
- Inheritance
-
Source
- Implements
- Inherited Members
Constructors
Source()
public Source()
Source(SourceOwnedHandle)
public Source(SourceOwnedHandle handle)
Parameters
handle
SourceOwnedHandle
Properties
Handle
public SourceOwnedHandle Handle { get; }
Property Value
Methods
AddChildSource(Source)
[Version("2.28")]
public void AddChildSource(Source childSource)
Parameters
childSource
Source
AddPoll(PollFD)
public void AddPoll(PollFD fd)
Parameters
fd
PollFD
AddUnixFd(int, IOCondition)
[Version("2.36")]
public IntPtr AddUnixFd(int fd, IOCondition events)
Parameters
fd
intevents
IOCondition
Returns
Attach(MainContext?)
public uint Attach(MainContext? context)
Parameters
context
MainContext
Returns
Destroy()
public void Destroy()
Equals(Source?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Source? other)
Parameters
other
SourceAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetCanRecurse()
public bool GetCanRecurse()
Returns
GetContext()
public MainContext? GetContext()
Returns
GetCurrentTime(TimeVal)
public void GetCurrentTime(TimeVal timeval)
Parameters
timeval
TimeVal
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetId()
public uint GetId()
Returns
GetName()
[Version("2.26")]
public string? GetName()
Returns
GetPriority()
public int GetPriority()
Returns
GetReadyTime()
public long GetReadyTime()
Returns
GetTime()
[Version("2.28")]
public long GetTime()
Returns
IsDestroyed()
[Version("2.12")]
public bool IsDestroyed()
Returns
ModifyUnixFd(IntPtr, IOCondition)
[Version("2.36")]
public void ModifyUnixFd(IntPtr tag, IOCondition newEvents)
Parameters
tag
IntPtrnewEvents
IOCondition
New(SourceFuncs, uint)
public static Source New(SourceFuncs sourceFuncs, uint structSize)
Parameters
sourceFuncs
SourceFuncsstructSize
uint
Returns
QueryUnixFd(IntPtr)
[Version("2.36")]
public IOCondition QueryUnixFd(IntPtr tag)
Parameters
tag
IntPtr
Returns
Ref()
public Source Ref()
Returns
Remove(uint)
public static bool Remove(uint tag)
Parameters
tag
uint
Returns
RemoveByFuncsUserData(SourceFuncs, IntPtr)
public static bool RemoveByFuncsUserData(SourceFuncs funcs, IntPtr userData)
Parameters
funcs
SourceFuncsuserData
IntPtr
Returns
RemoveByUserData(IntPtr)
public static bool RemoveByUserData(IntPtr userData)
Parameters
userData
IntPtr
Returns
RemoveChildSource(Source)
[Version("2.28")]
public void RemoveChildSource(Source childSource)
Parameters
childSource
Source
RemovePoll(PollFD)
public void RemovePoll(PollFD fd)
Parameters
fd
PollFD
RemoveUnixFd(IntPtr)
[Version("2.36")]
public void RemoveUnixFd(IntPtr tag)
Parameters
tag
IntPtr
SetCallback(SourceFunc)
public void SetCallback(SourceFunc func)
Parameters
func
SourceFunc
SetCallbackIndirect(IntPtr, SourceCallbackFuncs)
public void SetCallbackIndirect(IntPtr callbackData, SourceCallbackFuncs callbackFuncs)
Parameters
callbackData
IntPtrcallbackFuncs
SourceCallbackFuncs
SetCanRecurse(bool)
public void SetCanRecurse(bool canRecurse)
Parameters
canRecurse
bool
SetFuncs(SourceFuncs)
[Version("2.12")]
public void SetFuncs(SourceFuncs funcs)
Parameters
funcs
SourceFuncs
SetName(string)
[Version("2.26")]
public void SetName(string name)
Parameters
name
string
SetNameById(uint, string)
[Version("2.26")]
public static void SetNameById(uint tag, string name)
Parameters
SetPriority(int)
public void SetPriority(int priority)
Parameters
priority
int
SetReadyTime(long)
[Version("2.36")]
public void SetReadyTime(long readyTime)
Parameters
readyTime
long
SetStaticName(string)
[Version("2.70")]
public void SetStaticName(string name)
Parameters
name
string
Unref()
public void Unref()