Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxUIButton.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 CFxUIButton : 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 CFxUIButton(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(CFxUIButton obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
32 ~CFxUIButton() {
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() {
62 CFxString ret = new CFxString(PCADGlobalsPINVOKE.CFxUIButton_GetUID(swigCPtr), false);
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
83 public virtual void SetDefinition(CFxUIItemDefinition pDefinition) {
86 }
87
89 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxUIButton_GetDefinition(swigCPtr);
90 CFxUIItemDefinition ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUIItemDefinition(cPtr, false);
92 return ret;
93 }
94
95 public virtual int GetButtonNumber() {
98 return ret;
99 }
100
101 public virtual bool IsObsolete() {
102 bool ret = PCADGlobalsPINVOKE.CFxUIButton_IsObsolete(swigCPtr);
104 return ret;
105 }
106
107 public virtual void SetObsolete(bool bObsolete) {
108 PCADGlobalsPINVOKE.CFxUIButton_SetObsolete(swigCPtr, bObsolete);
110 }
111
112 public virtual bool IsRuntime() {
113 bool ret = PCADGlobalsPINVOKE.CFxUIButton_IsRuntime(swigCPtr);
115 return ret;
116 }
117
118}
119
120}
static HandleRef getCPtr(CFxString obj)
Definition: CFxString.cs:28
virtual void SetObsolete(bool bObsolete)
Definition: CFxUIButton.cs:107
virtual void Dispose(bool disposing)
Definition: CFxUIButton.cs:41
static HandleRef getCPtr(CFxUIButton obj)
Definition: CFxUIButton.cs:28
virtual bool IsObsolete()
Definition: CFxUIButton.cs:101
virtual bool IsRuntime()
Definition: CFxUIButton.cs:112
virtual CFxString GetName()
Definition: CFxUIButton.cs:72
virtual CFxUIItemDefinition GetDefinition()
Definition: CFxUIButton.cs:88
virtual CFxString GetUID()
Definition: CFxUIButton.cs:61
virtual int GetButtonNumber()
Definition: CFxUIButton.cs:95
virtual void SetUID(CFxString strUID)
Definition: CFxUIButton.cs:67
virtual void SetDefinition(CFxUIItemDefinition pDefinition)
Definition: CFxUIButton.cs:83
CFxUIButton(IntPtr cPtr, bool cMemoryOwn)
Definition: CFxUIButton.cs:23
virtual void SetName(CFxString name)
Definition: CFxUIButton.cs:78
static HandleRef getCPtr(CFxUIItemDefinition obj)
static void CFxUIButton_SetDefinition(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxUIButton_GetName(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxUIButton_GetUID(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIButton_SetUID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxUIButton_GetDefinition(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIButton_IsObsolete(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxUIButton_IsRuntime(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxUIButton_SetObsolete(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void CFxUIButton_SetName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int CFxUIButton_GetButtonNumber(global::System.Runtime.InteropServices.HandleRef jarg1)