Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxUIMenuItem.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 CFxUIMenuItem : 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 CFxUIMenuItem(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(CFxUIMenuItem 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 if (swigCPtr.Handle != IntPtr.Zero)
43 {
44 if (swigCMemOwn)
45 {
46 lock (locker)//(this)
47 {
48 if ((swigCPtr.Handle != IntPtr.Zero) && (swigCMemOwn))
49 {
50 swigCMemOwn = false;
51 throw new MethodAccessException("C++ destructor does not have public access");
52 }
53 }
54 swigCMemOwn = false;
55 }
56 swigCPtr = new HandleRef(null, IntPtr.Zero);
57 }
58 GC.SuppressFinalize(this);
59 }
60
61 public virtual CFxString GetUID() {
64 return ret;
65 }
66
67 public virtual void SetUID(CFxString strUID) {
70 }
71
72 public virtual CFxString GetName() {
75 return ret;
76 }
77
78 public virtual void SetName(CFxString name) {
81 }
82
86 return ret;
87 }
88
89 public virtual void AddAlias(CFxString sAlias) {
92 }
93
94 public virtual void SetDefinition(CFxUIItemDefinition pDefinition) {
97 }
98
100 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxUIMenuItem_GetDefinition(swigCPtr);
101 CFxUIItemDefinition ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUIItemDefinition(cPtr, false);
103 return ret;
104 }
105
106 public virtual CFxUIMenuItem GetParent() {
107 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxUIMenuItem_GetParent(swigCPtr);
108 CFxUIMenuItem ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUIMenuItem(cPtr, false);
110 return ret;
111 }
112
114 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxUIMenuItem_GetChildren(swigCPtr);
115 CFxUIMenuItemCollection ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUIMenuItemCollection(cPtr, false);
117 return ret;
118 }
119
120 public virtual bool IsAction() {
121 bool ret = PCADGlobalsPINVOKE.CFxUIMenuItem_IsAction(swigCPtr);
123 return ret;
124 }
125
126 public virtual bool IsSeparator() {
129 return ret;
130 }
131
132 public virtual void SetToSeparator() {
135 }
136
137 public virtual CFxUI.MenuType GetType() {
140 return ret;
141 }
142
143 public virtual void SetType(CFxUI.MenuType type) {
144 PCADGlobalsPINVOKE.CFxUIMenuItem_SetType(swigCPtr, (int)type);
146 }
147
148 public virtual bool IsObsolete() {
149 bool ret = PCADGlobalsPINVOKE.CFxUIMenuItem_IsObsolete(swigCPtr);
151 return ret;
152 }
153
154 public virtual void SetObsolete(bool bObsolete) {
157 }
158
159 public virtual bool IsRuntime() {
160 bool ret = PCADGlobalsPINVOKE.CFxUIMenuItem_IsRuntime(swigCPtr);
162 return ret;
163 }
164
165}
166
167}
static HandleRef getCPtr(CFxString obj)
Definition: CFxString.cs:28
static HandleRef getCPtr(CFxUIItemDefinition obj)
virtual void SetObsolete(bool bObsolete)
virtual void SetUID(CFxString strUID)
virtual void SetToSeparator()
virtual void AddAlias(CFxString sAlias)
virtual CFxString GetUID()
virtual void SetDefinition(CFxUIItemDefinition pDefinition)
virtual CFxString GetName()
virtual void SetType(CFxUI.MenuType type)
virtual void Dispose(bool disposing)
virtual CFxUIMenuItem GetParent()
virtual SWIGTYPE_p_OdArrayT_CFxString_t GetAliases()
virtual void SetName(CFxString name)
CFxUIMenuItem(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(CFxUIMenuItem obj)
virtual CFxUI.MenuType GetType()
virtual CFxUIItemDefinition GetDefinition()
virtual CFxUIMenuItemCollection GetChildren()
static void CFxUIMenuItem_SetDefinition(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool CFxUIMenuItem_IsRuntime(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIMenuItem_GetName(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIMenuItem_SetObsolete(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static int CFxUIMenuItem_GetType(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIMenuItem_IsObsolete(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIMenuItem_GetDefinition(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIMenuItem_GetParent(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIMenuItem_AddAlias(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIMenuItem_SetName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIMenuItem_SetType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool CFxUIMenuItem_IsSeparator(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIMenuItem_GetAliases(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIMenuItem_GetUID(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIMenuItem_GetChildren(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIMenuItem_SetToSeparator(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIMenuItem_IsAction(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIMenuItem_SetUID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)