NativeObject.cs 339 B

123456789101112131415
  1. using System;
  2. namespace PixiEditor.DrawingApi.Core.Surface;
  3. public abstract class NativeObject : IDisposable
  4. {
  5. public abstract object Native { get; }
  6. public IntPtr ObjectPointer { get; protected set; }
  7. public abstract void Dispose();
  8. internal NativeObject(IntPtr objPtr)
  9. {
  10. ObjectPointer = objPtr;
  11. }
  12. }