Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxUIToolbarItem.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 CFxUIToolbarItem : 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 CFxUIToolbarItem(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(CFxUIToolbarItem 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.CFxUIToolbarItem_GetDefinition(swigCPtr);
101 CFxUIItemDefinition ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUIItemDefinition(cPtr, false);
103 return ret;
104 }
105
106 public virtual CFxUIToolbarItem GetParent() {
107 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxUIToolbarItem_GetParent(swigCPtr);
108 CFxUIToolbarItem ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUIToolbarItem(cPtr, false);
110 return ret;
111 }
112
114 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxUIToolbarItem_GetChildren(swigCPtr);
115 CFxUIToolbarItemCollection ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUIToolbarItemCollection(cPtr, false);
117 return ret;
118 }
119
120 public virtual CFxUI.ToolbarType GetType() {
123 return ret;
124 }
125
126 public virtual bool IsAction() {
129 return ret;
130 }
131
132 public virtual bool IsSeparator() {
135 return ret;
136 }
137
138 public virtual void SetToSeparator() {
141 }
142
143 public virtual bool GetOnByDefault() {
146 return ret;
147 }
148
149 public virtual void SetOnByDefault(bool bOnByDefault) {
152 }
153
157 return ret;
158 }
159
160 public virtual void SetOrientation(CFxUI.Orientation orientation) {
161 PCADGlobalsPINVOKE.CFxUIToolbarItem_SetOrientation(swigCPtr, (int)orientation);
163 }
164
165 public virtual bool GetMovable() {
168 return ret;
169 }
170
171 public virtual void SetMovable(bool bMovable) {
174 }
175
176 public virtual int GetDefXLocation() {
179 return ret;
180 }
181
182 public virtual void SetDefXLocation(int iXLocation) {
185 }
186
187 public virtual int GetDefYLocation() {
190 return ret;
191 }
192
193 public virtual void SetDefYLocation(int iYLocation) {
196 }
197
198 public virtual bool IsInMatrixToolbar() {
201 return ret;
202 }
203
204 public virtual void SetInMatrixToolbar(bool bInMatrixToolbar) {
207 }
208
209 public virtual int GetMatrixToolbarIndex() {
212 return ret;
213 }
214
215 public virtual void SetMatrixToolbarIndex(int index) {
218 }
219
220 public virtual bool IsExpanded() {
223 return ret;
224 }
225
226 public virtual void SetExpanded(bool bIsExpanded) {
229 }
230
231 public virtual int GetRows() {
234 return ret;
235 }
236
237 public virtual void SetRows(int iRows) {
240 }
241
242 public virtual bool IsObsolete() {
245 return ret;
246 }
247
248 public virtual void SetObsolete(bool bObsolete) {
251 }
252
253 public virtual CFxString GetFlyoutID() {
256 return ret;
257 }
258
259 public virtual void SetFlyoutID(CFxString flyoutID) {
262 }
263
264 public virtual int GetDockRow() {
267 return ret;
268 }
269
270 public virtual void SetDockRow(int iDockRow) {
273 }
274
275 public virtual int GetDockColumn() {
278 return ret;
279 }
280
281 public virtual void SetDockColumn(int iDockColumn) {
284 }
285
286 public virtual bool IsRuntime() {
289 return ret;
290 }
291
292}
293
294}
static HandleRef getCPtr(CFxString obj)
Definition: CFxString.cs:28
static HandleRef getCPtr(CFxUIItemDefinition obj)
virtual void SetName(CFxString name)
virtual void Dispose(bool disposing)
virtual void SetFlyoutID(CFxString flyoutID)
virtual CFxUIToolbarItemCollection GetChildren()
virtual CFxString GetFlyoutID()
virtual void SetRows(int iRows)
virtual void SetDefYLocation(int iYLocation)
virtual SWIGTYPE_p_OdArrayT_CFxString_t GetAliases()
virtual void SetOrientation(CFxUI.Orientation orientation)
CFxUIToolbarItem(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(CFxUIToolbarItem obj)
virtual void SetDefXLocation(int iXLocation)
virtual void SetMovable(bool bMovable)
virtual void SetUID(CFxString strUID)
virtual void SetMatrixToolbarIndex(int index)
virtual void SetObsolete(bool bObsolete)
virtual CFxUIToolbarItem GetParent()
virtual CFxUI.ToolbarType GetType()
virtual void SetDefinition(CFxUIItemDefinition pDefinition)
virtual void SetDockRow(int iDockRow)
virtual void AddAlias(CFxString sAlias)
virtual void SetExpanded(bool bIsExpanded)
virtual CFxUI.Orientation GetOrientation()
virtual void SetOnByDefault(bool bOnByDefault)
virtual void SetDockColumn(int iDockColumn)
virtual CFxUIItemDefinition GetDefinition()
virtual void SetInMatrixToolbar(bool bInMatrixToolbar)
static int CFxUIToolbarItem_GetDockColumn(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIToolbarItem_GetName(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetRows(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int CFxUIToolbarItem_GetType(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxUIToolbarItem_GetMatrixToolbarIndex(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetUID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIToolbarItem_SetFlyoutID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool CFxUIToolbarItem_IsInMatrixToolbar(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetMovable(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool CFxUIToolbarItem_IsRuntime(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetDefXLocation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int CFxUIToolbarItem_GetRows(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIToolbarItem_IsObsolete(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIToolbarItem_GetOnByDefault(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetDefYLocation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr CFxUIToolbarItem_GetAliases(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIToolbarItem_IsSeparator(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIToolbarItem_GetParent(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIToolbarItem_GetDefinition(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIToolbarItem_IsAction(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIToolbarItem_GetChildren(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetObsolete(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void CFxUIToolbarItem_SetDockColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool CFxUIToolbarItem_IsExpanded(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxUIToolbarItem_GetDockRow(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIToolbarItem_GetMovable(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetExpanded(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void CFxUIToolbarItem_SetOrientation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void CFxUIToolbarItem_SetToSeparator(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxUIToolbarItem_GetDefXLocation(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_AddAlias(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIToolbarItem_SetName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxUIToolbarItem_GetFlyoutID(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetInMatrixToolbar(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static int CFxUIToolbarItem_GetDefYLocation(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetDockRow(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr CFxUIToolbarItem_GetUID(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetDefinition(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxUIToolbarItem_SetOnByDefault(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static int CFxUIToolbarItem_GetOrientation(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIToolbarItem_SetMatrixToolbarIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)