Extended .NET SDK Documentation 2025 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
66
71
77
82
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
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)
virtual void Dispose(bool disposing)
static HandleRef getCPtr(CFxUIButton obj)
virtual bool IsObsolete()
virtual bool IsRuntime()
virtual CFxString GetName()
virtual CFxUIItemDefinition GetDefinition()
virtual CFxString GetUID()
virtual int GetButtonNumber()
virtual void SetUID(CFxString strUID)
virtual void SetDefinition(CFxUIItemDefinition pDefinition)
CFxUIButton(IntPtr cPtr, bool cMemoryOwn)
virtual void SetName(CFxString name)
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)