Table of Contents

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

MainLoopOwnedHandle

Methods

Equals(MainLoop?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(MainLoop? other)

Parameters

other MainLoop

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetContext()

public MainContext GetContext()

Returns

MainContext

GetGType()

public static Type GetGType()

Returns

Type

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

bool

New(MainContext?, bool)

public static MainLoop New(MainContext? context, bool isRunning)

Parameters

context MainContext
isRunning bool

Returns

MainLoop

Quit()

public void Quit()

Ref()

public MainLoop Ref()

Returns

MainLoop

Run()

public void Run()

RunWithSynchronizationContext()

public void RunWithSynchronizationContext()

Unref()

public void Unref()