Class MainLoop
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class MainLoop : BoxedRecord, IEquatable<MainLoop>
- Inheritance
-
MainLoop
- Implements
- Inherited Members
Constructors
MainLoop(MainLoopOwnedHandle)
public MainLoop(MainLoopOwnedHandle handle)
Parameters
handle
MainLoopOwnedHandle
Properties
Handle
public MainLoopOwnedHandle Handle { get; }
Property Value
Methods
Equals(MainLoop?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MainLoop? other)
Parameters
other
MainLoopAn 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
GetContext()
public MainContext GetContext()
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.
IsRunning()
public bool IsRunning()
Returns
New(MainContext?, bool)
public static MainLoop New(MainContext? context, bool isRunning)
Parameters
context
MainContextisRunning
bool
Returns
Quit()
public void Quit()
Ref()
public MainLoop Ref()
Returns
Run()
public void Run()
RunWithSynchronizationContext()
public void RunWithSynchronizationContext()
Unref()
public void Unref()