Extended .NET SDK Documentation 2024 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
59 public virtual CFxHistoryItem Top() {
62 return ret;
63 }
64
65 public virtual void Pop() {
68 }
69
70 public virtual void Push(CFxHistoryItem pData) {
73 }
74
75 public virtual int GetStackDepth() {
78 return ret;
79 }
80
81 public CFxHistoryStack() : this(PCADGlobalsPINVOKE.new_CFxHistoryStack(), true) {
83 SwigDirectorConnect();
84 }
85
86 private void SwigDirectorConnect() {
87 if (SwigDerivedClassHasMethod("IsEmpty", swigMethodTypes0))
88 swigDelegate0 = new SwigDelegateCFxHistoryStack_0(SwigDirectorMethodIsEmpty);
89 if (SwigDerivedClassHasMethod("Top", swigMethodTypes1))
90 swigDelegate1 = new SwigDelegateCFxHistoryStack_1(SwigDirectorMethodTop);
91 if (SwigDerivedClassHasMethod("Pop", swigMethodTypes2))
92 swigDelegate2 = new SwigDelegateCFxHistoryStack_2(SwigDirectorMethodPop);
93 if (SwigDerivedClassHasMethod("Push", swigMethodTypes3))
94 swigDelegate3 = new SwigDelegateCFxHistoryStack_3(SwigDirectorMethodPush);
95 if (SwigDerivedClassHasMethod("GetStackDepth", swigMethodTypes4))
96 swigDelegate4 = new SwigDelegateCFxHistoryStack_4(SwigDirectorMethodGetStackDepth);
97 PCADGlobalsPINVOKE.CFxHistoryStack_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
98 }
99
100 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
101 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);
102 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxHistoryStack));
103 return hasDerivedMethod;
104 }
105
106 private bool SwigDirectorMethodIsEmpty() {
107 return IsEmpty();
108 }
109
110 private global::System.IntPtr SwigDirectorMethodTop() {
111 return CFxHistoryItem.getCPtr(Top()).Handle;
112 }
113
114 private void SwigDirectorMethodPop() {
115 Pop();
116 }
117
118 private void SwigDirectorMethodPush(global::System.IntPtr pData) {
119 Push(new CFxHistoryItem(pData, false));
120 }
121
122 private int SwigDirectorMethodGetStackDepth() {
123 return GetStackDepth();
124 }
125
126 public delegate bool SwigDelegateCFxHistoryStack_0();
127 public delegate global::System.IntPtr SwigDelegateCFxHistoryStack_1();
128 public delegate void SwigDelegateCFxHistoryStack_2();
129 public delegate void SwigDelegateCFxHistoryStack_3(global::System.IntPtr pData);
130 public delegate int SwigDelegateCFxHistoryStack_4();
131
132 private SwigDelegateCFxHistoryStack_0 swigDelegate0;
133 private SwigDelegateCFxHistoryStack_1 swigDelegate1;
134 private SwigDelegateCFxHistoryStack_2 swigDelegate2;
135 private SwigDelegateCFxHistoryStack_3 swigDelegate3;
136 private SwigDelegateCFxHistoryStack_4 swigDelegate4;
137
138 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { };
139 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
140 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
141 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(CFxHistoryItem) };
142 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
143}
144
145}
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)