Class Cancellable
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class Cancellable : Object, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Cancellable
- Implements
- Inherited Members
Constructors
Cancellable(params ConstructArgument[])
public Cancellable(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
Cancellable(CancellableHandle)
public Cancellable(CancellableHandle handle)
Parameters
handle
CancellableHandle
Fields
CancelledSignal
Signal Descriptor for OnCancelled.
public static readonly Signal<Cancellable> CancelledSignal
Field Value
Methods
Cancel()
public void Cancel()
Connect(Callback)
[Version("2.22")]
public ulong Connect(Callback callback)
Parameters
callback
Callback
Returns
Disconnect(ulong)
[Version("2.22")]
public void Disconnect(ulong handlerId)
Parameters
handlerId
ulong
GetCurrent()
public static Cancellable? GetCurrent()
Returns
GetFd()
public int GetFd()
Returns
GetGType()
public static Type GetGType()
Returns
IsCancelled()
public bool IsCancelled()
Returns
MakePollfd(PollFD)
[Version("2.22")]
public bool MakePollfd(PollFD pollfd)
Parameters
pollfd
PollFD
Returns
New()
public static Cancellable New()
Returns
PopCurrent()
public void PopCurrent()
PushCurrent()
public void PushCurrent()
ReleaseFd()
[Version("2.22")]
public void ReleaseFd()
Reset()
public void Reset()
SetErrorIfCancelled()
public bool SetErrorIfCancelled()
Returns
SourceNew()
[Version("2.28")]
public Source SourceNew()
Returns
Events
OnCancelled
public event SignalHandler<Cancellable> OnCancelled