Show / Hide Table of Contents

Class GObject

Manage NetVips.Internal.GObject lifetime.

Inheritance
System.Object
System.Runtime.ConstrainedExecution.CriticalFinalizerObject
System.Runtime.InteropServices.SafeHandle
GObject
VipsObject
Implements
System.IDisposable
Inherited Members
System.Runtime.InteropServices.SafeHandle.handle
System.Runtime.InteropServices.SafeHandle.Close()
System.Runtime.InteropServices.SafeHandle.DangerousAddRef(System.Boolean)
System.Runtime.InteropServices.SafeHandle.DangerousGetHandle()
System.Runtime.InteropServices.SafeHandle.DangerousRelease()
System.Runtime.InteropServices.SafeHandle.Dispose()
System.Runtime.InteropServices.SafeHandle.Dispose(System.Boolean)
System.Runtime.InteropServices.SafeHandle.SetHandle(System.IntPtr)
System.Runtime.InteropServices.SafeHandle.SetHandleAsInvalid()
System.Runtime.InteropServices.SafeHandle.IsClosed
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NetVips
Assembly: NetVips.dll
Syntax
public class GObject : SafeHandle, IDisposable

Properties

| Improve this Doc View Source

IsInvalid

Gets a value indicating whether the handle is invalid.

Declaration
public override bool IsInvalid { get; }
Property Value
Type Description
System.Boolean

true if the handle is not valid; otherwise, false.

Overrides
System.Runtime.InteropServices.SafeHandle.IsInvalid
| Improve this Doc View Source

RefCount

Get the reference count of object. Handy for debugging.

Declaration
public uint RefCount { get; }
Property Value
Type Description
System.UInt32

Methods

| Improve this Doc View Source

ReleaseHandle()

Decreases the reference count of object. When its reference count drops to 0, the object is finalized (i.e. its memory is freed).

Declaration
protected override bool ReleaseHandle()
Returns
Type Description
System.Boolean

true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false.

Overrides
System.Runtime.InteropServices.SafeHandle.ReleaseHandle()
| Improve this Doc View Source

SignalConnect(String, Delegate, IntPtr)

Connects a callback function (callback) to a signal on this object.

Declaration
public uint SignalConnect(string detailedSignal, Delegate callback, IntPtr data = default(IntPtr))
Parameters
Type Name Description
System.String detailedSignal

A string of the form "signal-name::detail".

System.Delegate callback

The callback to connect.

System.IntPtr data

Data to pass to handler calls.

Returns
Type Description
System.UInt32

The handler id.

Remarks

The callback will be triggered every time this signal is issued on this instance.

Exceptions
Type Condition
System.Exception

If it failed to connect the signal.

Implements

System.IDisposable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX