Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGsPalette.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 OdGsPalette : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGsPalette(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGsPalette_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGsPalette 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 override OdRxClass isA() {
43 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGsPalette_isA(swigCPtr),false); /*createInt 3_2*/
44
46 return ret;
47}
48
49 public override OdRxObject queryX(OdRxClass protocolClass) {
50 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGsPalette_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
51
53 return ret;
54}
55
56 public virtual UInt32 numColors() {
57// test csout
58 /*SIMPLETYPE*/
59 UInt32 ret = GlobalsPINVOKE.OdGsPalette_numColors(swigCPtr);
61 return ret;
62 }
63
64 public virtual void setNumColors(UInt32 /*SIMPLETYPE*/ nColors) {
65 GlobalsPINVOKE.OdGsPalette_setNumColors(swigCPtr, nColors /*SIMPLETYPE*/);
67 }
68
69 public virtual void setColorAt(UInt32 /*SIMPLETYPE*/ nIndex, byte /*SIMPLETYPE*/ blue, byte /*SIMPLETYPE*/ green, byte /*SIMPLETYPE*/ red, byte /*SIMPLETYPE*/ alpha) {
70 GlobalsPINVOKE.OdGsPalette_setColorAt__SWIG_0(swigCPtr, nIndex /*SIMPLETYPE*/, blue /*SIMPLETYPE*/, green /*SIMPLETYPE*/, red /*SIMPLETYPE*/, alpha /*SIMPLETYPE*/);
72 }
73
74 public virtual void setColorAt(UInt32 /*SIMPLETYPE*/ nIndex, byte /*SIMPLETYPE*/ blue, byte /*SIMPLETYPE*/ green, byte /*SIMPLETYPE*/ red) {
75 GlobalsPINVOKE.OdGsPalette_setColorAt__SWIG_1(swigCPtr, nIndex /*SIMPLETYPE*/, blue /*SIMPLETYPE*/, green /*SIMPLETYPE*/, red /*SIMPLETYPE*/);
77 }
78
79 public virtual void colorAt(UInt32 /*SIMPLETYPE*/ nIndex, out byte /*SIMPLETYPE*/ blue, out byte /*SIMPLETYPE*/ green, out byte /*SIMPLETYPE*/ red, byte[] /*SIMPLE_ARRAY*/ pAlpha) {
80 GlobalsPINVOKE.OdGsPalette_colorAt__SWIG_0(swigCPtr, nIndex /*SIMPLETYPE*/, out blue, out green, out red, Teigha.Core.Helpers.MarshalbyteFixedArray(pAlpha));
82 }
83
84 public virtual void colorAt(UInt32 /*SIMPLETYPE*/ nIndex, out byte /*SIMPLETYPE*/ blue, out byte /*SIMPLETYPE*/ green, out byte /*SIMPLETYPE*/ red) {
85 GlobalsPINVOKE.OdGsPalette_colorAt__SWIG_1(swigCPtr, nIndex /*SIMPLETYPE*/, out blue, out green, out red);
87 }
88
89 public virtual void setColors(UInt32 /*SIMPLETYPE*/ nColors, UInt32[] /*array applied*/ pColors) {
90 GlobalsPINVOKE.OdGsPalette_setColors(swigCPtr, nColors /*SIMPLETYPE*/, pColors);
92 }
93
94 public virtual void getColors(UInt32 /*SIMPLETYPE*/ nColors, SWIGTYPE_p_ODCOLORREF pColors) {
95 GlobalsPINVOKE.OdGsPalette_getColors(swigCPtr, nColors /*SIMPLETYPE*/, SWIGTYPE_p_ODCOLORREF.getCPtr(pColors));
97 }
98
99 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
100 string ret = GlobalsPINVOKE.OdGsPalette_getRealClassName(ptr /*SIMPLETYPE*/);
102 return ret;
103 }
104
105}
106
107}
static global::System.Exception Retrieve()
static IntPtr OdGsPalette_isA(HandleRef jarg1)
static void OdGsPalette_setColorAt__SWIG_1(HandleRef jarg1, UInt32 jarg2, byte jarg3, byte jarg4, byte jarg5)
static void OdGsPalette_colorAt__SWIG_1(HandleRef jarg1, UInt32 jarg2, out byte jarg3, out byte jarg4, out byte jarg5)
static void OdGsPalette_colorAt__SWIG_0(HandleRef jarg1, UInt32 jarg2, out byte jarg3, out byte jarg4, out byte jarg5, IntPtr jarg6)
static void OdGsPalette_setColors(HandleRef jarg1, UInt32 jarg2, [In, MarshalAs(UnmanagedType.LPArray)]UInt32[] jarg3)
static IntPtr OdGsPalette_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdGsPalette_getColors(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void delete_OdGsPalette(HandleRef jarg1)
static UInt32 OdGsPalette_numColors(HandleRef jarg1)
static void OdGsPalette_setColorAt__SWIG_0(HandleRef jarg1, UInt32 jarg2, byte jarg3, byte jarg4, byte jarg5, byte jarg6)
static string OdGsPalette_getRealClassName(IntPtr jarg1)
static void OdGsPalette_setNumColors(HandleRef jarg1, UInt32 jarg2)
override OdRxObject queryX(OdRxClass protocolClass)
Definition: OdGsPalette.cs:49
virtual void setColors(UInt32 nColors, UInt32[] pColors)
Definition: OdGsPalette.cs:89
virtual void colorAt(UInt32 nIndex, out byte blue, out byte green, out byte red)
Definition: OdGsPalette.cs:84
virtual UInt32 numColors()
Definition: OdGsPalette.cs:56
virtual void setColorAt(UInt32 nIndex, byte blue, byte green, byte red)
Definition: OdGsPalette.cs:74
static HandleRef getCPtr(OdGsPalette obj)
Definition: OdGsPalette.cs:25
override OdRxClass isA()
Definition: OdGsPalette.cs:42
static string getRealClassName(IntPtr ptr)
Definition: OdGsPalette.cs:99
virtual void getColors(UInt32 nColors, SWIGTYPE_p_ODCOLORREF pColors)
Definition: OdGsPalette.cs:94
virtual void colorAt(UInt32 nIndex, out byte blue, out byte green, out byte red, byte[] pAlpha)
Definition: OdGsPalette.cs:79
OdGsPalette(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGsPalette.cs:20
override void Dispose(bool disposing)
Definition: OdGsPalette.cs:29
virtual void setColorAt(UInt32 nIndex, byte blue, byte green, byte red, byte alpha)
Definition: OdGsPalette.cs:69
virtual void setNumColors(UInt32 nColors)
Definition: OdGsPalette.cs:64
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25