internal delegate void Size2DChangedCallback(int? width, int? height);
/// <summary>
- /// Hidden API (Inhouse API).
- /// Dispose.
- /// </summary>
- /// <remarks>
- /// Following the guide of https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose.
- /// This will replace "protected virtual void Dispose(DisposeTypes type)" which is exactly same in functionality.
- /// </remarks>
- /// <param name="disposing">true in order to free managed objects</param>
- // Protected implementation of Dispose pattern.
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected override void Dispose(bool disposing)
- {
- if (disposed)
- {
- return;
- }
-
- callback = null;
-
- //perform dipose here without being added to DisposeQueue.
- if (SwigCMemOwn && SwigCPtr.Handle != IntPtr.Zero)
- {
- if (disposing)
- {
- base.Dispose(DisposeTypes.Explicit);
- }
- else
- {
- base.Dispose(DisposeTypes.Implicit);
- }
- }
-
- base.Dispose(disposing);
- }
-
- /// <summary>
/// The property for the width component of a size.
/// </summary>
/// <remarks>