Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiIntRGB.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
16public class OdGiIntRGB : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdGiIntRGB(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdGiIntRGB obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdGiIntRGB() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public Int32 r {
52 set {
53 /*SIMPLETYPE*/
54 GlobalsPINVOKE.OdGiIntRGB_r_set(swigCPtr, value /*SIMPLETYPE*/);
56 }
57 get {
58 /*SIMPLETYPE*/
59 Int32 ret = GlobalsPINVOKE.OdGiIntRGB_r_get(swigCPtr);
61 return ret;
62 }
63 }
64
65 public Int32 g {
66 set {
67 /*SIMPLETYPE*/
68 GlobalsPINVOKE.OdGiIntRGB_g_set(swigCPtr, value /*SIMPLETYPE*/);
70 }
71 get {
72 /*SIMPLETYPE*/
73 Int32 ret = GlobalsPINVOKE.OdGiIntRGB_g_get(swigCPtr);
75 return ret;
76 }
77 }
78
79 public Int32 b {
80 set {
81 /*SIMPLETYPE*/
82 GlobalsPINVOKE.OdGiIntRGB_b_set(swigCPtr, value /*SIMPLETYPE*/);
84 }
85 get {
86 /*SIMPLETYPE*/
87 Int32 ret = GlobalsPINVOKE.OdGiIntRGB_b_get(swigCPtr);
89 return ret;
90 }
91 }
92
93 public OdGiIntRGB(Int32 /*SIMPLETYPE*/ _r, Int32 /*SIMPLETYPE*/ _g, Int32 /*SIMPLETYPE*/ _b) : this(GlobalsPINVOKE.new_OdGiIntRGB__SWIG_0(_r /*SIMPLETYPE*/, _g /*SIMPLETYPE*/, _b /*SIMPLETYPE*/), true) {
95 }
96
97 public OdGiIntRGB() : this(GlobalsPINVOKE.new_OdGiIntRGB__SWIG_1(), true) {
99 }
100
101 public OdGiIntRGB(UInt32 /*SIMPLETYPE*/ cref) : this(GlobalsPINVOKE.new_OdGiIntRGB__SWIG_2(cref /*SIMPLETYPE*/), true) {
103 }
104
105 public Int32 red() {
106// test csout
107 /*SIMPLETYPE*/
108 Int32 ret = GlobalsPINVOKE.OdGiIntRGB_red(swigCPtr);
110 return ret;
111 }
112
113 public Int32 green() {
114// test csout
115 /*SIMPLETYPE*/
116 Int32 ret = GlobalsPINVOKE.OdGiIntRGB_green(swigCPtr);
118 return ret;
119 }
120
121 public Int32 blue() {
122// test csout
123 /*SIMPLETYPE*/
124 Int32 ret = GlobalsPINVOKE.OdGiIntRGB_blue(swigCPtr);
126 return ret;
127 }
128
129 public void setRed(Int32 /*SIMPLETYPE*/ _r) {
130 GlobalsPINVOKE.OdGiIntRGB_setRed(swigCPtr, _r /*SIMPLETYPE*/);
132 }
133
134 public void setGreen(Int32 /*SIMPLETYPE*/ _g) {
135 GlobalsPINVOKE.OdGiIntRGB_setGreen(swigCPtr, _g /*SIMPLETYPE*/);
137 }
138
139 public void setBlue(Int32 /*SIMPLETYPE*/ _b) {
140 GlobalsPINVOKE.OdGiIntRGB_setBlue(swigCPtr, _b /*SIMPLETYPE*/);
142 }
143
144 public void setRGB(Int32 /*SIMPLETYPE*/ _r, Int32 /*SIMPLETYPE*/ _g, Int32 /*SIMPLETYPE*/ _b) {
145 GlobalsPINVOKE.OdGiIntRGB_setRGB(swigCPtr, _r /*SIMPLETYPE*/, _g /*SIMPLETYPE*/, _b /*SIMPLETYPE*/);
147 }
148
149 public void setColor(UInt32 /*SIMPLETYPE*/ cref) {
150 GlobalsPINVOKE.OdGiIntRGB_setColor(swigCPtr, cref /*SIMPLETYPE*/);
152 }
153
154 public UInt32 color() {
155// test csout
156 /*SIMPLETYPE*/
157 UInt32 ret = GlobalsPINVOKE.OdGiIntRGB_color(swigCPtr);
159 return ret;
160 }
161
162}
163
164}
static global::System.Exception Retrieve()
static void OdGiIntRGB_setBlue(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static void OdGiIntRGB_b_set(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static Int32 OdGiIntRGB_green(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiIntRGB_setRGB(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2, Int32 jarg3, Int32 jarg4)
static void OdGiIntRGB_setColor(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void delete_OdGiIntRGB(global::System.Runtime.InteropServices.HandleRef jarg1)
static Int32 OdGiIntRGB_b_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiIntRGB_setGreen(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static void OdGiIntRGB_setRed(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static Int32 OdGiIntRGB_blue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiIntRGB_g_set(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static Int32 OdGiIntRGB_g_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static Int32 OdGiIntRGB_r_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiIntRGB_r_set(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static Int32 OdGiIntRGB_red(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdGiIntRGB_color(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGiIntRGB obj)
Definition: OdGiIntRGB.cs:26
void setBlue(Int32 _b)
Definition: OdGiIntRGB.cs:139
OdGiIntRGB(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGiIntRGB.cs:21
OdGiIntRGB(Int32 _r, Int32 _g, Int32 _b)
Definition: OdGiIntRGB.cs:93
void setRed(Int32 _r)
Definition: OdGiIntRGB.cs:129
virtual void Dispose(bool disposing)
Definition: OdGiIntRGB.cs:39
OdGiIntRGB(UInt32 cref)
Definition: OdGiIntRGB.cs:101
void setRGB(Int32 _r, Int32 _g, Int32 _b)
Definition: OdGiIntRGB.cs:144
void setColor(UInt32 cref)
Definition: OdGiIntRGB.cs:149
void setGreen(Int32 _g)
Definition: OdGiIntRGB.cs:134