Class MainContext
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class MainContext : BoxedRecord, IEquatable<MainContext>
- Inheritance
-
MainContext
- Implements
- Inherited Members
Constructors
MainContext(MainContextOwnedHandle)
public MainContext(MainContextOwnedHandle handle)
Parameters
handle
MainContextOwnedHandle
Properties
Handle
public MainContextOwnedHandle Handle { get; }
Property Value
Methods
Acquire()
public bool Acquire()
Returns
AddPoll(PollFD, int)
public void AddPoll(PollFD fd, int priority)
Parameters
Check(int, PollFD[])
public bool Check(int maxPriority, PollFD[] fds)
Parameters
Returns
Default()
public static MainContext Default()
Returns
Dispatch()
public void Dispatch()
Equals(MainContext?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MainContext? other)
Parameters
other
MainContextAn 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
FindSourceByFuncsUserData(SourceFuncs, IntPtr)
public Source FindSourceByFuncsUserData(SourceFuncs funcs, IntPtr userData)
Parameters
funcs
SourceFuncsuserData
IntPtr
Returns
FindSourceById(uint)
public Source FindSourceById(uint sourceId)
Parameters
sourceId
uint
Returns
FindSourceByUserData(IntPtr)
public Source FindSourceByUserData(IntPtr userData)
Parameters
userData
IntPtr
Returns
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.
GetThreadDefault()
[Version("2.22")]
public static MainContext? GetThreadDefault()
Returns
InvokeFull(int, SourceFunc)
[Version("2.28")]
public void InvokeFull(int priority, SourceFunc function)
Parameters
priority
intfunction
SourceFunc
IsOwner()
[Version("2.10")]
public bool IsOwner()
Returns
Iteration(bool)
public bool Iteration(bool mayBlock)
Parameters
mayBlock
bool
Returns
New()
public static MainContext New()
Returns
NewWithFlags(MainContextFlags)
[Version("2.72")]
public static MainContext NewWithFlags(MainContextFlags flags)
Parameters
flags
MainContextFlags
Returns
Pending()
public bool Pending()
Returns
PopThreadDefault()
[Version("2.22")]
public void PopThreadDefault()
Prepare(out int)
public bool Prepare(out int priority)
Parameters
priority
int
Returns
PushThreadDefault()
[Version("2.22")]
public void PushThreadDefault()
Ref()
public MainContext Ref()
Returns
RefThreadDefault()
[Version("2.32")]
public static MainContext RefThreadDefault()
Returns
Release()
public void Release()
RemovePoll(PollFD)
public void RemovePoll(PollFD fd)
Parameters
fd
PollFD
Unref()
public void Unref()
Wakeup()
public void Wakeup()