Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CFxUIReactor.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 CFxUIReactor : 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 CFxUIReactor(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(CFxUIReactor 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 CFxUIReactor() : this(PCADGlobalsPINVOKE.new_CFxUIReactor(), true) {
55 SwigDirectorConnect();
56 DelegateHolder.OnHoldSwigDirectorDelegates(this);
57 if(this is OdRxObject)
58 {
59 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
60 if (null != mTr)
61 {
62 mTr.AddObject(new CFxUIReactor(swigCPtr.Handle, true));
63 this.swigCMemOwn = false;
64 }
65}
66 }
67
68 public virtual void OnToolbarItemCreated(CFxUIToolbarItem pToolBarItem) {
69 if (SwigDerivedClassHasMethod("OnToolbarItemCreated", swigMethodTypes0)) PCADGlobalsPINVOKE.CFxUIReactor_OnToolbarItemCreatedSwigExplicitCFxUIReactor(swigCPtr, CFxUIToolbarItem.getCPtr(pToolBarItem)); else PCADGlobalsPINVOKE.CFxUIReactor_OnToolbarItemCreated(swigCPtr, CFxUIToolbarItem.getCPtr(pToolBarItem));
71 }
72
77
78 public virtual void OnMenuItemCreated(CFxUIMenuItem pMenuItem) {
79 if (SwigDerivedClassHasMethod("OnMenuItemCreated", swigMethodTypes2)) PCADGlobalsPINVOKE.CFxUIReactor_OnMenuItemCreatedSwigExplicitCFxUIReactor(swigCPtr, CFxUIMenuItem.getCPtr(pMenuItem)); else PCADGlobalsPINVOKE.CFxUIReactor_OnMenuItemCreated(swigCPtr, CFxUIMenuItem.getCPtr(pMenuItem));
81 }
82
87
92
93 public virtual void OnMenuItemAboutToDestroy(CFxUIMenuItem pUIMenuItem) {
94 if (SwigDerivedClassHasMethod("OnMenuItemAboutToDestroy", swigMethodTypes5)) PCADGlobalsPINVOKE.CFxUIReactor_OnMenuItemAboutToDestroySwigExplicitCFxUIReactor(swigCPtr, CFxUIMenuItem.getCPtr(pUIMenuItem)); else PCADGlobalsPINVOKE.CFxUIReactor_OnMenuItemAboutToDestroy(swigCPtr, CFxUIMenuItem.getCPtr(pUIMenuItem));
96 }
97
98 public virtual void OnToolbarVisibilityChanged(CFxUIToolbarItem pUIToolBar, bool bVisible) {
99 if (SwigDerivedClassHasMethod("OnToolbarVisibilityChanged", swigMethodTypes6)) PCADGlobalsPINVOKE.CFxUIReactor_OnToolbarVisibilityChangedSwigExplicitCFxUIReactor(swigCPtr, CFxUIToolbarItem.getCPtr(pUIToolBar), bVisible); else PCADGlobalsPINVOKE.CFxUIReactor_OnToolbarVisibilityChanged(swigCPtr, CFxUIToolbarItem.getCPtr(pUIToolBar), bVisible);
101 }
102
103 public virtual void OnSubMenuAboutToShow(CFxUIMenuItem pSubMenu) {
104 if (SwigDerivedClassHasMethod("OnSubMenuAboutToShow", swigMethodTypes7)) PCADGlobalsPINVOKE.CFxUIReactor_OnSubMenuAboutToShowSwigExplicitCFxUIReactor(swigCPtr, CFxUIMenuItem.getCPtr(pSubMenu)); else PCADGlobalsPINVOKE.CFxUIReactor_OnSubMenuAboutToShow(swigCPtr, CFxUIMenuItem.getCPtr(pSubMenu));
106 }
107
112
113 public virtual void OnInterfaceReloaded() {
114 if (SwigDerivedClassHasMethod("OnInterfaceReloaded", swigMethodTypes9)) PCADGlobalsPINVOKE.CFxUIReactor_OnInterfaceReloadedSwigExplicitCFxUIReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxUIReactor_OnInterfaceReloaded(swigCPtr);
116 }
117
118 public virtual void OnRibbonControlCreated(CFxString strId, SWIGTYPE_p_p_CFxWidget pControl) {
119 if (SwigDerivedClassHasMethod("OnRibbonControlCreated", swigMethodTypes10)) PCADGlobalsPINVOKE.CFxUIReactor_OnRibbonControlCreatedSwigExplicitCFxUIReactor(swigCPtr, CFxString.getCPtr(strId), SWIGTYPE_p_p_CFxWidget.getCPtr(pControl)); else PCADGlobalsPINVOKE.CFxUIReactor_OnRibbonControlCreated(swigCPtr, CFxString.getCPtr(strId), SWIGTYPE_p_p_CFxWidget.getCPtr(pControl));
121 }
122
123 private void SwigDirectorConnect() {
124 if (SwigDerivedClassHasMethod("OnToolbarItemCreated", swigMethodTypes0))
125 swigDelegate0 = new SwigDelegateCFxUIReactor_0(SwigDirectorMethodOnToolbarItemCreated);
126 if (SwigDerivedClassHasMethod("OnItemDefinitionCreated", swigMethodTypes1))
127 swigDelegate1 = new SwigDelegateCFxUIReactor_1(SwigDirectorMethodOnItemDefinitionCreated);
128 if (SwigDerivedClassHasMethod("OnMenuItemCreated", swigMethodTypes2))
129 swigDelegate2 = new SwigDelegateCFxUIReactor_2(SwigDirectorMethodOnMenuItemCreated);
130 if (SwigDerivedClassHasMethod("OnToolbarItemAboutToDestroy", swigMethodTypes3))
131 swigDelegate3 = new SwigDelegateCFxUIReactor_3(SwigDirectorMethodOnToolbarItemAboutToDestroy);
132 if (SwigDerivedClassHasMethod("OnItemDefinitionAboutToDestroy", swigMethodTypes4))
133 swigDelegate4 = new SwigDelegateCFxUIReactor_4(SwigDirectorMethodOnItemDefinitionAboutToDestroy);
134 if (SwigDerivedClassHasMethod("OnMenuItemAboutToDestroy", swigMethodTypes5))
135 swigDelegate5 = new SwigDelegateCFxUIReactor_5(SwigDirectorMethodOnMenuItemAboutToDestroy);
136 if (SwigDerivedClassHasMethod("OnToolbarVisibilityChanged", swigMethodTypes6))
137 swigDelegate6 = new SwigDelegateCFxUIReactor_6(SwigDirectorMethodOnToolbarVisibilityChanged);
138 if (SwigDerivedClassHasMethod("OnSubMenuAboutToShow", swigMethodTypes7))
139 swigDelegate7 = new SwigDelegateCFxUIReactor_7(SwigDirectorMethodOnSubMenuAboutToShow);
140 if (SwigDerivedClassHasMethod("OnInterfaceAboutToReload", swigMethodTypes8))
141 swigDelegate8 = new SwigDelegateCFxUIReactor_8(SwigDirectorMethodOnInterfaceAboutToReload);
142 if (SwigDerivedClassHasMethod("OnInterfaceReloaded", swigMethodTypes9))
143 swigDelegate9 = new SwigDelegateCFxUIReactor_9(SwigDirectorMethodOnInterfaceReloaded);
144 if (SwigDerivedClassHasMethod("OnRibbonControlCreated", swigMethodTypes10))
145 swigDelegate10 = new SwigDelegateCFxUIReactor_10(SwigDirectorMethodOnRibbonControlCreated);
146 PCADGlobalsPINVOKE.CFxUIReactor_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10);
147 }
148
149 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
150 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);
151 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxUIReactor));
152 return hasDerivedMethod;
153 }
154
155 private void SwigDirectorMethodOnToolbarItemCreated(global::System.IntPtr pToolBarItem) {
156 OnToolbarItemCreated((pToolBarItem == global::System.IntPtr.Zero) ? null : new CFxUIToolbarItem(pToolBarItem, false));
157 }
158
159 private void SwigDirectorMethodOnItemDefinitionCreated(global::System.IntPtr pItemDef) {
160 OnItemDefinitionCreated((pItemDef == global::System.IntPtr.Zero) ? null : new CFxUIItemDefinition(pItemDef, false));
161 }
162
163 private void SwigDirectorMethodOnMenuItemCreated(global::System.IntPtr pMenuItem) {
164 OnMenuItemCreated((pMenuItem == global::System.IntPtr.Zero) ? null : new CFxUIMenuItem(pMenuItem, false));
165 }
166
167 private void SwigDirectorMethodOnToolbarItemAboutToDestroy(global::System.IntPtr pUIToolBar) {
168 OnToolbarItemAboutToDestroy((pUIToolBar == global::System.IntPtr.Zero) ? null : new CFxUIToolbarItem(pUIToolBar, false));
169 }
170
171 private void SwigDirectorMethodOnItemDefinitionAboutToDestroy(global::System.IntPtr pUIItemDef) {
172 OnItemDefinitionAboutToDestroy((pUIItemDef == global::System.IntPtr.Zero) ? null : new CFxUIItemDefinition(pUIItemDef, false));
173 }
174
175 private void SwigDirectorMethodOnMenuItemAboutToDestroy(global::System.IntPtr pUIMenuItem) {
176 OnMenuItemAboutToDestroy((pUIMenuItem == global::System.IntPtr.Zero) ? null : new CFxUIMenuItem(pUIMenuItem, false));
177 }
178
179 private void SwigDirectorMethodOnToolbarVisibilityChanged(global::System.IntPtr pUIToolBar, bool bVisible) {
180 OnToolbarVisibilityChanged((pUIToolBar == global::System.IntPtr.Zero) ? null : new CFxUIToolbarItem(pUIToolBar, false), bVisible);
181 }
182
183 private void SwigDirectorMethodOnSubMenuAboutToShow(global::System.IntPtr pSubMenu) {
184 OnSubMenuAboutToShow((pSubMenu == global::System.IntPtr.Zero) ? null : new CFxUIMenuItem(pSubMenu, false));
185 }
186
187 private void SwigDirectorMethodOnInterfaceAboutToReload() {
189 }
190
191 private void SwigDirectorMethodOnInterfaceReloaded() {
193 }
194
195 private void SwigDirectorMethodOnRibbonControlCreated(global::System.IntPtr strId, global::System.IntPtr pControl) {
196 OnRibbonControlCreated(new CFxString(strId, false), new SWIGTYPE_p_p_CFxWidget(pControl, false));
197 }
198
199 public delegate void SwigDelegateCFxUIReactor_0(global::System.IntPtr pToolBarItem);
200 public delegate void SwigDelegateCFxUIReactor_1(global::System.IntPtr pItemDef);
201 public delegate void SwigDelegateCFxUIReactor_2(global::System.IntPtr pMenuItem);
202 public delegate void SwigDelegateCFxUIReactor_3(global::System.IntPtr pUIToolBar);
203 public delegate void SwigDelegateCFxUIReactor_4(global::System.IntPtr pUIItemDef);
204 public delegate void SwigDelegateCFxUIReactor_5(global::System.IntPtr pUIMenuItem);
205 public delegate void SwigDelegateCFxUIReactor_6(global::System.IntPtr pUIToolBar, bool bVisible);
206 public delegate void SwigDelegateCFxUIReactor_7(global::System.IntPtr pSubMenu);
207 public delegate void SwigDelegateCFxUIReactor_8();
208 public delegate void SwigDelegateCFxUIReactor_9();
209 public delegate void SwigDelegateCFxUIReactor_10(global::System.IntPtr strId, global::System.IntPtr pControl);
210
211 private SwigDelegateCFxUIReactor_0 swigDelegate0;
212 private SwigDelegateCFxUIReactor_1 swigDelegate1;
213 private SwigDelegateCFxUIReactor_2 swigDelegate2;
214 private SwigDelegateCFxUIReactor_3 swigDelegate3;
215 private SwigDelegateCFxUIReactor_4 swigDelegate4;
216 private SwigDelegateCFxUIReactor_5 swigDelegate5;
217 private SwigDelegateCFxUIReactor_6 swigDelegate6;
218 private SwigDelegateCFxUIReactor_7 swigDelegate7;
219 private SwigDelegateCFxUIReactor_8 swigDelegate8;
220 private SwigDelegateCFxUIReactor_9 swigDelegate9;
221 private SwigDelegateCFxUIReactor_10 swigDelegate10;
222
223 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(CFxUIToolbarItem) };
224 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { typeof(CFxUIItemDefinition) };
225 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(CFxUIMenuItem) };
226 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(CFxUIToolbarItem) };
227 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(CFxUIItemDefinition) };
228 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(CFxUIMenuItem) };
229 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(CFxUIToolbarItem), typeof(bool) };
230 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(CFxUIMenuItem) };
231 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { };
232 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { };
233 private static global::System.Type[] swigMethodTypes10 = new global::System.Type[] { typeof(CFxString), typeof(SWIGTYPE_p_p_CFxWidget) };
234}
235
236}
static HandleRef getCPtr(CFxString obj)
Definition CFxString.cs:28
static HandleRef getCPtr(CFxUIItemDefinition obj)
static HandleRef getCPtr(CFxUIMenuItem obj)
delegate void SwigDelegateCFxUIReactor_3(global::System.IntPtr pUIToolBar)
virtual void OnToolbarVisibilityChanged(CFxUIToolbarItem pUIToolBar, bool bVisible)
delegate void SwigDelegateCFxUIReactor_6(global::System.IntPtr pUIToolBar, bool bVisible)
delegate void SwigDelegateCFxUIReactor_9()
virtual void OnInterfaceAboutToReload()
virtual void OnMenuItemCreated(CFxUIMenuItem pMenuItem)
virtual void OnItemDefinitionAboutToDestroy(CFxUIItemDefinition pUIItemDef)
static HandleRef getCPtr(CFxUIReactor obj)
delegate void SwigDelegateCFxUIReactor_2(global::System.IntPtr pMenuItem)
CFxUIReactor(IntPtr cPtr, bool cMemoryOwn)
virtual void OnItemDefinitionCreated(CFxUIItemDefinition pItemDef)
virtual void OnToolbarItemAboutToDestroy(CFxUIToolbarItem pUIToolBar)
delegate void SwigDelegateCFxUIReactor_5(global::System.IntPtr pUIMenuItem)
virtual void OnInterfaceReloaded()
virtual void OnSubMenuAboutToShow(CFxUIMenuItem pSubMenu)
delegate void SwigDelegateCFxUIReactor_8()
delegate void SwigDelegateCFxUIReactor_1(global::System.IntPtr pItemDef)
delegate void SwigDelegateCFxUIReactor_10(global::System.IntPtr strId, global::System.IntPtr pControl)
delegate void SwigDelegateCFxUIReactor_7(global::System.IntPtr pSubMenu)
delegate void SwigDelegateCFxUIReactor_4(global::System.IntPtr pUIItemDef)
virtual void OnToolbarItemCreated(CFxUIToolbarItem pToolBarItem)
virtual void Dispose(bool disposing)
virtual void OnRibbonControlCreated(CFxString strId, SWIGTYPE_p_p_CFxWidget pControl)
delegate void SwigDelegateCFxUIReactor_0(global::System.IntPtr pToolBarItem)
virtual void OnMenuItemAboutToDestroy(CFxUIMenuItem pUIMenuItem)
static HandleRef getCPtr(CFxUIToolbarItem obj)
static void CFxUIReactor_OnItemDefinitionAboutToDestroy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnSubMenuAboutToShowSwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnToolbarItemCreatedSwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnMenuItemCreated(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnToolbarVisibilityChangedSwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3)
static void CFxUIReactor_OnSubMenuAboutToShow(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_CFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIReactor_OnRibbonControlCreated(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxUIReactor_OnMenuItemAboutToDestroySwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnMenuItemCreatedSwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnRibbonControlCreatedSwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxUIReactor_OnMenuItemAboutToDestroy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnInterfaceAboutToReloadSwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIReactor_OnToolbarItemAboutToDestroySwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnToolbarItemAboutToDestroy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnItemDefinitionCreated(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnItemDefinitionCreatedSwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnItemDefinitionAboutToDestroySwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_OnToolbarItemCreated(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIReactor_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, CFxUIReactor.SwigDelegateCFxUIReactor_0 delegate0, CFxUIReactor.SwigDelegateCFxUIReactor_1 delegate1, CFxUIReactor.SwigDelegateCFxUIReactor_2 delegate2, CFxUIReactor.SwigDelegateCFxUIReactor_3 delegate3, CFxUIReactor.SwigDelegateCFxUIReactor_4 delegate4, CFxUIReactor.SwigDelegateCFxUIReactor_5 delegate5, CFxUIReactor.SwigDelegateCFxUIReactor_6 delegate6, CFxUIReactor.SwigDelegateCFxUIReactor_7 delegate7, CFxUIReactor.SwigDelegateCFxUIReactor_8 delegate8, CFxUIReactor.SwigDelegateCFxUIReactor_9 delegate9, CFxUIReactor.SwigDelegateCFxUIReactor_10 delegate10)
static void CFxUIReactor_OnInterfaceAboutToReload(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIReactor_OnInterfaceReloadedSwigExplicitCFxUIReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIReactor_OnToolbarVisibilityChanged(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3)
static void CFxUIReactor_OnInterfaceReloaded(global::System.Runtime.InteropServices.HandleRef jarg1)