Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CFxHistoryStack.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class CFxHistoryStack : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public CFxHistoryStack(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(CFxHistoryStack obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
53 public virtual bool IsEmpty() {
56 return ret;
57 }
58
64
69
74
80
81 public CFxHistoryStack() : this(PCADGlobalsPINVOKE.new_CFxHistoryStack(), true) {
83 SwigDirectorConnect();
84 DelegateHolder.OnHoldSwigDirectorDelegates(this);
85 if(this is OdRxObject)
86 {
87 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
88 if (null != mTr)
89 {
90 mTr.AddObject(new CFxHistoryStack(swigCPtr.Handle, true));
91 this.swigCMemOwn = false;
92 }
93}
94 }
95
96 private void SwigDirectorConnect() {
97 if (SwigDerivedClassHasMethod("IsEmpty", swigMethodTypes0))
98 swigDelegate0 = new SwigDelegateCFxHistoryStack_0(SwigDirectorMethodIsEmpty);
99 if (SwigDerivedClassHasMethod("Top", swigMethodTypes1))
100 swigDelegate1 = new SwigDelegateCFxHistoryStack_1(SwigDirectorMethodTop);
101 if (SwigDerivedClassHasMethod("Pop", swigMethodTypes2))
102 swigDelegate2 = new SwigDelegateCFxHistoryStack_2(SwigDirectorMethodPop);
103 if (SwigDerivedClassHasMethod("Push", swigMethodTypes3))
104 swigDelegate3 = new SwigDelegateCFxHistoryStack_3(SwigDirectorMethodPush);
105 if (SwigDerivedClassHasMethod("GetStackDepth", swigMethodTypes4))
106 swigDelegate4 = new SwigDelegateCFxHistoryStack_4(SwigDirectorMethodGetStackDepth);
107 PCADGlobalsPINVOKE.CFxHistoryStack_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
108 }
109
110 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
111 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null);
112 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxHistoryStack));
113 return hasDerivedMethod;
114 }
115
116 private bool SwigDirectorMethodIsEmpty() {
117 return IsEmpty();
118 }
119
120 private global::System.IntPtr SwigDirectorMethodTop() {
121 return CFxHistoryItem.getCPtr(Top()).Handle;
122 }
123
124 private void SwigDirectorMethodPop() {
125 Pop();
126 }
127
128 private void SwigDirectorMethodPush(global::System.IntPtr pData) {
129 Push(new CFxHistoryItem(pData, false));
130 }
131
132 private int SwigDirectorMethodGetStackDepth() {
133 return GetStackDepth();
134 }
135
136 public delegate bool SwigDelegateCFxHistoryStack_0();
137 public delegate global::System.IntPtr SwigDelegateCFxHistoryStack_1();
138 public delegate void SwigDelegateCFxHistoryStack_2();
139 public delegate void SwigDelegateCFxHistoryStack_3(global::System.IntPtr pData);
140 public delegate int SwigDelegateCFxHistoryStack_4();
141
142 private SwigDelegateCFxHistoryStack_0 swigDelegate0;
143 private SwigDelegateCFxHistoryStack_1 swigDelegate1;
144 private SwigDelegateCFxHistoryStack_2 swigDelegate2;
145 private SwigDelegateCFxHistoryStack_3 swigDelegate3;
146 private SwigDelegateCFxHistoryStack_4 swigDelegate4;
147
148 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { };
149 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
150 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
151 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(CFxHistoryItem) };
152 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
153}
154
155}
static HandleRef getCPtr(CFxHistoryItem obj)
delegate bool SwigDelegateCFxHistoryStack_0()
delegate void SwigDelegateCFxHistoryStack_3(global::System.IntPtr pData)
virtual void Dispose(bool disposing)
delegate global::System.IntPtr SwigDelegateCFxHistoryStack_1()
virtual void Push(CFxHistoryItem pData)
CFxHistoryStack(IntPtr cPtr, bool cMemoryOwn)
delegate int SwigDelegateCFxHistoryStack_4()
virtual CFxHistoryItem Top()
delegate void SwigDelegateCFxHistoryStack_2()
static HandleRef getCPtr(CFxHistoryStack obj)
static void delete_CFxHistoryStack(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxHistoryStack_Top(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxHistoryStack_Pop(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxHistoryStack_GetStackDepth(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxHistoryStack_IsEmpty(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxHistoryStack_Push(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxHistoryStack_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, CFxHistoryStack.SwigDelegateCFxHistoryStack_0 delegate0, CFxHistoryStack.SwigDelegateCFxHistoryStack_1 delegate1, CFxHistoryStack.SwigDelegateCFxHistoryStack_2 delegate2, CFxHistoryStack.SwigDelegateCFxHistoryStack_3 delegate3, CFxHistoryStack.SwigDelegateCFxHistoryStack_4 delegate4)