Table of Contents

Class Cancellable

Namespace
Gio
Assembly
Gio-2.0.dll
public class Cancellable : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Cancellable
Implements
Inherited Members

Constructors

Cancellable(bool, params ConstructArgument[])

protected Cancellable(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Cancellable(IntPtr, bool)

protected Cancellable(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

CancelledSignal

Signal Descriptor for OnCancelled.

public static readonly Signal<Cancellable> CancelledSignal

Field Value

Signal<Cancellable>

Methods

Cancel()

public void Cancel()

Connect(Callback)

[Version("2.22")]
public ulong Connect(Callback callback)

Parameters

callback Callback

Returns

ulong

Disconnect(ulong)

[Version("2.22")]
public void Disconnect(ulong handlerId)

Parameters

handlerId ulong

GetCurrent()

public static Cancellable? GetCurrent()

Returns

Cancellable

GetFd()

public int GetFd()

Returns

int

GetGType()

public static Type GetGType()

Returns

Type

IsCancelled()

public bool IsCancelled()

Returns

bool

MakePollfd(PollFD)

[Version("2.22")]
public bool MakePollfd(PollFD pollfd)

Parameters

pollfd PollFD

Returns

bool

New()

public static Cancellable New()

Returns

Cancellable

PopCurrent()

public void PopCurrent()

PushCurrent()

public void PushCurrent()

ReleaseFd()

[Version("2.22")]
public void ReleaseFd()

Reset()

public void Reset()

SetErrorIfCancelled()

public bool SetErrorIfCancelled()

Returns

bool

SourceNew()

[Version("2.28")]
public Source SourceNew()

Returns

Source

Events

OnCancelled

public event SignalHandler<Cancellable> OnCancelled

Event Type

SignalHandler<Cancellable>