Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGsIntParam.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 Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGsIntParam(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGsIntParam_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGsIntParam obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public void setValue(UInt32 intVal) {
43 GlobalsPINVOKE.OdGsIntParam_setValue(swigCPtr, intVal /*SIMPLETYPE*/);
45 }
46
47 public UInt32 value() {
48// test csout
49 /*SIMPLETYPE*/
50 UInt32 ret = GlobalsPINVOKE.OdGsIntParam_value(swigCPtr);
52 return ret;
53 }
54
55 public static OdGsIntParam createObject(UInt32 nVal) {// OdSmartPtr<OdGsIntParam>
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
58 IntPtr ptr = GlobalsPINVOKE.OdGsIntParam_createObject__SWIG_0(nVal /*SIMPLETYPE*/);
59
60 OdGsIntParam ret = null;
61 if (null != mTrans)
62 {
63 mTrans.AddObject((OdGsIntParam)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsIntParam),ptr, true));
64 ret = (OdGsIntParam)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsIntParam),ptr, false);
65 }
66 else
67 {
68 ret = (OdGsIntParam)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsIntParam),ptr, true);
69 }
70
72 return ret;
73}
74
75 public static OdGsIntParam createObject() {// OdSmartPtr<OdGsIntParam>
76 MemoryManager mMan = MemoryManager.GetMemoryManager();
77 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
79
80 OdGsIntParam ret = null;
81 if (null != mTrans)
82 {
83 mTrans.AddObject((OdGsIntParam)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsIntParam),ptr, true));
84 ret = (OdGsIntParam)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsIntParam),ptr, false);
85 }
86 else
87 {
88 ret = (OdGsIntParam)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsIntParam),ptr, true);
89 }
90
92 return ret;
93}
94
95 protected static string getRealClassName(IntPtr ptr) {
96 string ret = GlobalsPINVOKE.OdGsIntParam_getRealClassName(ptr /*SIMPLETYPE*/);
98 return ret;
99 }
100
101}
102
103}
static global::System.Exception Retrieve()
static string OdGsIntParam_getRealClassName(IntPtr jarg1)
static IntPtr OdGsIntParam_createObject__SWIG_1()
static void OdGsIntParam_setValue(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdGsIntParam_createObject__SWIG_0(UInt32 jarg1)
static UInt32 OdGsIntParam_value(HandleRef jarg1)
static void delete_OdGsIntParam(HandleRef jarg1)
static OdGsIntParam createObject(UInt32 nVal)
static OdGsIntParam createObject()
void setValue(UInt32 intVal)
OdGsIntParam(IntPtr cPtr, bool cMemoryOwn)
static string getRealClassName(IntPtr ptr)
override void Dispose(bool disposing)
static HandleRef getCPtr(OdGsIntParam obj)