Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxDeviceReactor.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 CFxDeviceReactor : 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 CFxDeviceReactor(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(CFxDeviceReactor 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 void ViewCreated(CFxView pView) {
54 if (SwigDerivedClassHasMethod("ViewCreated", swigMethodTypes0)) PCADGlobalsPINVOKE.CFxDeviceReactor_ViewCreatedSwigExplicitCFxDeviceReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxDeviceReactor_ViewCreated(swigCPtr, CFxView.getCPtr(pView));
56 }
57
58 public virtual void ViewAdded(CFxView pView) {
59 if (SwigDerivedClassHasMethod("ViewAdded", swigMethodTypes1)) PCADGlobalsPINVOKE.CFxDeviceReactor_ViewAddedSwigExplicitCFxDeviceReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxDeviceReactor_ViewAdded(swigCPtr, CFxView.getCPtr(pView));
61 }
62
63 public virtual void ViewRemoved(CFxView pView) {
64 if (SwigDerivedClassHasMethod("ViewRemoved", swigMethodTypes2)) PCADGlobalsPINVOKE.CFxDeviceReactor_ViewRemovedSwigExplicitCFxDeviceReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxDeviceReactor_ViewRemoved(swigCPtr, CFxView.getCPtr(pView));
66 }
67
68 public virtual void ViewDestroyed(CFxView pView) {
69 if (SwigDerivedClassHasMethod("ViewDestroyed", swigMethodTypes3)) PCADGlobalsPINVOKE.CFxDeviceReactor_ViewDestroyedSwigExplicitCFxDeviceReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxDeviceReactor_ViewDestroyed(swigCPtr, CFxView.getCPtr(pView));
71 }
72
73 public virtual void RedrawStarted() {
74 if (SwigDerivedClassHasMethod("RedrawStarted", swigMethodTypes4)) PCADGlobalsPINVOKE.CFxDeviceReactor_RedrawStartedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_RedrawStarted(swigCPtr);
76 }
77
78 public virtual void RedrawFinished() {
79 if (SwigDerivedClassHasMethod("RedrawFinished", swigMethodTypes5)) PCADGlobalsPINVOKE.CFxDeviceReactor_RedrawFinishedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_RedrawFinished(swigCPtr);
81 }
82
83 public virtual void RegenStarted() {
84 if (SwigDerivedClassHasMethod("RegenStarted", swigMethodTypes6)) PCADGlobalsPINVOKE.CFxDeviceReactor_RegenStartedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_RegenStarted(swigCPtr);
86 }
87
88 public virtual void RegenFinished() {
89 if (SwigDerivedClassHasMethod("RegenFinished", swigMethodTypes7)) PCADGlobalsPINVOKE.CFxDeviceReactor_RegenFinishedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_RegenFinished(swigCPtr);
91 }
92
93 public virtual void UpdateStarted() {
94 if (SwigDerivedClassHasMethod("UpdateStarted", swigMethodTypes8)) PCADGlobalsPINVOKE.CFxDeviceReactor_UpdateStartedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_UpdateStarted(swigCPtr);
96 }
97
98 public virtual void UpdateFinished() {
99 if (SwigDerivedClassHasMethod("UpdateFinished", swigMethodTypes9)) PCADGlobalsPINVOKE.CFxDeviceReactor_UpdateFinishedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_UpdateFinished(swigCPtr);
101 }
102
103 public virtual void ViewModified(CFxView pView) {
104 if (SwigDerivedClassHasMethod("ViewModified", swigMethodTypes10)) PCADGlobalsPINVOKE.CFxDeviceReactor_ViewModifiedSwigExplicitCFxDeviceReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxDeviceReactor_ViewModified(swigCPtr, CFxView.getCPtr(pView));
106 }
107
108 public virtual void SizeChanged(int iOverallWidth, int iOverallHeight) {
109 if (SwigDerivedClassHasMethod("SizeChanged", swigMethodTypes11)) PCADGlobalsPINVOKE.CFxDeviceReactor_SizeChangedSwigExplicitCFxDeviceReactor(swigCPtr, iOverallWidth, iOverallHeight); else PCADGlobalsPINVOKE.CFxDeviceReactor_SizeChanged(swigCPtr, iOverallWidth, iOverallHeight);
111 }
112
113 public CFxDeviceReactor() : this(PCADGlobalsPINVOKE.new_CFxDeviceReactor(), true) {
115 SwigDirectorConnect();
116 }
117
118 private void SwigDirectorConnect() {
119 if (SwigDerivedClassHasMethod("ViewCreated", swigMethodTypes0))
120 swigDelegate0 = new SwigDelegateCFxDeviceReactor_0(SwigDirectorMethodViewCreated);
121 if (SwigDerivedClassHasMethod("ViewAdded", swigMethodTypes1))
122 swigDelegate1 = new SwigDelegateCFxDeviceReactor_1(SwigDirectorMethodViewAdded);
123 if (SwigDerivedClassHasMethod("ViewRemoved", swigMethodTypes2))
124 swigDelegate2 = new SwigDelegateCFxDeviceReactor_2(SwigDirectorMethodViewRemoved);
125 if (SwigDerivedClassHasMethod("ViewDestroyed", swigMethodTypes3))
126 swigDelegate3 = new SwigDelegateCFxDeviceReactor_3(SwigDirectorMethodViewDestroyed);
127 if (SwigDerivedClassHasMethod("RedrawStarted", swigMethodTypes4))
128 swigDelegate4 = new SwigDelegateCFxDeviceReactor_4(SwigDirectorMethodRedrawStarted);
129 if (SwigDerivedClassHasMethod("RedrawFinished", swigMethodTypes5))
130 swigDelegate5 = new SwigDelegateCFxDeviceReactor_5(SwigDirectorMethodRedrawFinished);
131 if (SwigDerivedClassHasMethod("RegenStarted", swigMethodTypes6))
132 swigDelegate6 = new SwigDelegateCFxDeviceReactor_6(SwigDirectorMethodRegenStarted);
133 if (SwigDerivedClassHasMethod("RegenFinished", swigMethodTypes7))
134 swigDelegate7 = new SwigDelegateCFxDeviceReactor_7(SwigDirectorMethodRegenFinished);
135 if (SwigDerivedClassHasMethod("UpdateStarted", swigMethodTypes8))
136 swigDelegate8 = new SwigDelegateCFxDeviceReactor_8(SwigDirectorMethodUpdateStarted);
137 if (SwigDerivedClassHasMethod("UpdateFinished", swigMethodTypes9))
138 swigDelegate9 = new SwigDelegateCFxDeviceReactor_9(SwigDirectorMethodUpdateFinished);
139 if (SwigDerivedClassHasMethod("ViewModified", swigMethodTypes10))
140 swigDelegate10 = new SwigDelegateCFxDeviceReactor_10(SwigDirectorMethodViewModified);
141 if (SwigDerivedClassHasMethod("SizeChanged", swigMethodTypes11))
142 swigDelegate11 = new SwigDelegateCFxDeviceReactor_11(SwigDirectorMethodSizeChanged);
143 PCADGlobalsPINVOKE.CFxDeviceReactor_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11);
144 }
145
146 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
147 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);
148 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxDeviceReactor));
149 return hasDerivedMethod;
150 }
151
152 private void SwigDirectorMethodViewCreated(global::System.IntPtr pView) {
153 ViewCreated((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
154 }
155
156 private void SwigDirectorMethodViewAdded(global::System.IntPtr pView) {
157 ViewAdded((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
158 }
159
160 private void SwigDirectorMethodViewRemoved(global::System.IntPtr pView) {
161 ViewRemoved((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
162 }
163
164 private void SwigDirectorMethodViewDestroyed(global::System.IntPtr pView) {
165 ViewDestroyed((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
166 }
167
168 private void SwigDirectorMethodRedrawStarted() {
170 }
171
172 private void SwigDirectorMethodRedrawFinished() {
174 }
175
176 private void SwigDirectorMethodRegenStarted() {
177 RegenStarted();
178 }
179
180 private void SwigDirectorMethodRegenFinished() {
182 }
183
184 private void SwigDirectorMethodUpdateStarted() {
186 }
187
188 private void SwigDirectorMethodUpdateFinished() {
190 }
191
192 private void SwigDirectorMethodViewModified(global::System.IntPtr pView) {
193 ViewModified((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
194 }
195
196 private void SwigDirectorMethodSizeChanged(int iOverallWidth, int iOverallHeight) {
197 SizeChanged(iOverallWidth, iOverallHeight);
198 }
199
200 public delegate void SwigDelegateCFxDeviceReactor_0(global::System.IntPtr pView);
201 public delegate void SwigDelegateCFxDeviceReactor_1(global::System.IntPtr pView);
202 public delegate void SwigDelegateCFxDeviceReactor_2(global::System.IntPtr pView);
203 public delegate void SwigDelegateCFxDeviceReactor_3(global::System.IntPtr pView);
204 public delegate void SwigDelegateCFxDeviceReactor_4();
205 public delegate void SwigDelegateCFxDeviceReactor_5();
206 public delegate void SwigDelegateCFxDeviceReactor_6();
207 public delegate void SwigDelegateCFxDeviceReactor_7();
208 public delegate void SwigDelegateCFxDeviceReactor_8();
209 public delegate void SwigDelegateCFxDeviceReactor_9();
210 public delegate void SwigDelegateCFxDeviceReactor_10(global::System.IntPtr pView);
211 public delegate void SwigDelegateCFxDeviceReactor_11(int iOverallWidth, int iOverallHeight);
212
213 private SwigDelegateCFxDeviceReactor_0 swigDelegate0;
214 private SwigDelegateCFxDeviceReactor_1 swigDelegate1;
215 private SwigDelegateCFxDeviceReactor_2 swigDelegate2;
216 private SwigDelegateCFxDeviceReactor_3 swigDelegate3;
217 private SwigDelegateCFxDeviceReactor_4 swigDelegate4;
218 private SwigDelegateCFxDeviceReactor_5 swigDelegate5;
219 private SwigDelegateCFxDeviceReactor_6 swigDelegate6;
220 private SwigDelegateCFxDeviceReactor_7 swigDelegate7;
221 private SwigDelegateCFxDeviceReactor_8 swigDelegate8;
222 private SwigDelegateCFxDeviceReactor_9 swigDelegate9;
223 private SwigDelegateCFxDeviceReactor_10 swigDelegate10;
224 private SwigDelegateCFxDeviceReactor_11 swigDelegate11;
225
226 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(CFxView) };
227 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { typeof(CFxView) };
228 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(CFxView) };
229 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(CFxView) };
230 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
231 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
232 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
233 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { };
234 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { };
235 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { };
236 private static global::System.Type[] swigMethodTypes10 = new global::System.Type[] { typeof(CFxView) };
237 private static global::System.Type[] swigMethodTypes11 = new global::System.Type[] { typeof(int), typeof(int) };
238}
239
240}
delegate void SwigDelegateCFxDeviceReactor_8()
virtual void ViewRemoved(CFxView pView)
delegate void SwigDelegateCFxDeviceReactor_2(global::System.IntPtr pView)
delegate void SwigDelegateCFxDeviceReactor_0(global::System.IntPtr pView)
virtual void ViewModified(CFxView pView)
virtual void ViewDestroyed(CFxView pView)
delegate void SwigDelegateCFxDeviceReactor_9()
delegate void SwigDelegateCFxDeviceReactor_7()
CFxDeviceReactor(IntPtr cPtr, bool cMemoryOwn)
delegate void SwigDelegateCFxDeviceReactor_6()
virtual void ViewCreated(CFxView pView)
static HandleRef getCPtr(CFxDeviceReactor obj)
virtual void Dispose(bool disposing)
virtual void ViewAdded(CFxView pView)
delegate void SwigDelegateCFxDeviceReactor_10(global::System.IntPtr pView)
delegate void SwigDelegateCFxDeviceReactor_5()
virtual void SizeChanged(int iOverallWidth, int iOverallHeight)
delegate void SwigDelegateCFxDeviceReactor_3(global::System.IntPtr pView)
delegate void SwigDelegateCFxDeviceReactor_4()
delegate void SwigDelegateCFxDeviceReactor_11(int iOverallWidth, int iOverallHeight)
delegate void SwigDelegateCFxDeviceReactor_1(global::System.IntPtr pView)
static HandleRef getCPtr(CFxView obj)
Definition: CFxView.cs:27
static void CFxDeviceReactor_RegenFinishedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_ViewCreated(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewModifiedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewRemovedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewAdded(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewDestroyed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_CFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_RegenStartedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_ViewAddedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_RedrawFinished(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_RegenFinished(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_UpdateFinishedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_UpdateStarted(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_SizeChanged(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void CFxDeviceReactor_ViewDestroyedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewModified(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_SizeChangedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void CFxDeviceReactor_RedrawFinishedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_RegenStarted(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_RedrawStarted(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_RedrawStartedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_UpdateFinished(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_ViewRemoved(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewCreatedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_0 delegate0, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_1 delegate1, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_2 delegate2, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_3 delegate3, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_4 delegate4, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_5 delegate5, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_6 delegate6, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_7 delegate7, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_8 delegate8, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_9 delegate9, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_10 delegate10, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_11 delegate11)
static void CFxDeviceReactor_UpdateStartedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)