Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdShxFont.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 OdShxFont : OdFont {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdShxFont(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdShxFont_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdShxFont 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 class CharLoc : global::System.IDisposable {
43 private Object locker = new Object();
44 private HandleRef swigCPtr;
45 protected bool swigCMemOwn;
46 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
47 public CharLoc(IntPtr cPtr, bool cMemoryOwn) {
48 swigCMemOwn = cMemoryOwn;
49 swigCPtr = new HandleRef(this, cPtr);
50 }
51 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
52 public static HandleRef getCPtr(CharLoc obj) {
53 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
54 }
55
56 ~CharLoc() {
57 Dispose(false);
58 }
59
60 public void Dispose() {
61 Dispose(true);
62 global::System.GC.SuppressFinalize(this);
63 }
64
65 protected virtual void Dispose(bool disposing) {
66 lock(this) {
67 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
68 if (swigCMemOwn) {
69 swigCMemOwn = false;
70 GlobalsPINVOKE.delete_OdShxFont_CharLoc(swigCPtr); // NESTED_DTOR_CSHARP
71 }
72 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
73 }
74 }
75 }
76
77 public Int32 m_FileLoc {
78 set {
79 /*SIMPLETYPE*/
82 }
83 get {
84 /*SIMPLETYPE*/
87 return ret;
88 }
89 }
90
91 public UInt16 m_ShapeNo {
92 set {
93 /*SIMPLETYPE*/
96 }
97 get {
98 /*SIMPLETYPE*/
101 return ret;
102 }
103 }
104
105 public CharLoc() : this(GlobalsPINVOKE.new_OdShxFont_CharLoc(), true) {
107 }
108
109 }
110
111 public static OdShxFont cast(OdRxObject pObj) {// OdSmartPtr<OdShxFont>
112 MemoryManager mMan = MemoryManager.GetMemoryManager();
113 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
115
116 OdShxFont ret = null;
117 if (null != mTrans)
118 {
119 mTrans.AddObject((OdShxFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdShxFont),ptr, true));
120 ret = (OdShxFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdShxFont),ptr, false);
121 }
122 else
123 {
124 ret = (OdShxFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdShxFont),ptr, true);
125 }
126
128 return ret;
129}
130
131 public new static OdRxClass desc() {
132 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdShxFont_desc(),false); /*createInt 3_2*/
133
135 return ret;
136}
137
138 public override OdRxClass isA() {
139 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdShxFont_isA(swigCPtr),false); /*createInt 3_2*/
140
142 return ret;
143}
144
145 public override OdRxObject queryX(OdRxClass protocolClass) {
146 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdShxFont_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
147
149 return ret;
150}
151
152 public static OdShxFont createObject() {// OdSmartPtr<OdShxFont>
153 MemoryManager mMan = MemoryManager.GetMemoryManager();
154 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
156
157 OdShxFont ret = null;
158 if (null != mTrans)
159 {
160 mTrans.AddObject((OdShxFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdShxFont),ptr, true));
161 ret = (OdShxFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdShxFont),ptr, false);
162 }
163 else
164 {
165 ret = (OdShxFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdShxFont),ptr, true);
166 }
167
169 return ret;
170}
171
172 public byte getBfWidth() {
173// test csout
174 /*SIMPLETYPE*/
175 byte ret = GlobalsPINVOKE.OdShxFont_getBfWidth(swigCPtr);
177 return ret;
178 }
179
180 public byte getBfHeight() {
181// test csout
182 /*SIMPLETYPE*/
183 byte ret = GlobalsPINVOKE.OdShxFont_getBfHeight(swigCPtr);
185 return ret;
186 }
187
188 public override double getAbove() {
189 double ret = GlobalsPINVOKE.OdShxFont_getAbove(swigCPtr);
191 return ret;
192 }
193
194 public override double getBelow() {
195 double ret = GlobalsPINVOKE.OdShxFont_getBelow(swigCPtr);
197 return ret;
198 }
199
200 public override OdResult initialize(OdStreamBuf io) {
203 return ret;
204 }
205
206 public override OdResult drawCharacter(char /*SIMPLETYPE*/ character, OdGePoint2d advance, OdGiCommonDraw pWd, OdTextProperties textFlags) {
207 OdResult ret = (OdResult)GlobalsPINVOKE.OdShxFont_drawCharacter__SWIG_0(swigCPtr, character /*SIMPLETYPE*/, OdGePoint2d.getCPtr(advance), OdGiCommonDraw.getCPtr(pWd), OdTextProperties.getCPtr(textFlags));
209 return ret;
210 }
211
212 public override OdResult drawCharacter(char /*SIMPLETYPE*/ character, OdGePoint2d advance, OdGiConveyorGeometry pGeom, OdTextProperties textFlags) {
213 OdResult ret = (OdResult)GlobalsPINVOKE.OdShxFont_drawCharacter__SWIG_1(swigCPtr, character /*SIMPLETYPE*/, OdGePoint2d.getCPtr(advance), pGeom.GetInterfaceCPtr(), OdTextProperties.getCPtr(textFlags));
215 return ret;
216 }
217
218 public virtual String shapeNameByIndex(UInt16 /*SIMPLETYPE*/ index) {
219 string ret = GlobalsPINVOKE.OdShxFont_shapeNameByIndex(swigCPtr, index /*SIMPLETYPE*/);
221 return ret;
222}
223
224 public virtual UInt16 shapeIndexByName(String name) {
225// test csout
226 /*SIMPLETYPE*/
227 UInt16 ret = GlobalsPINVOKE.OdShxFont_shapeIndexByName(swigCPtr, name);
229 return ret;
230 }
231
232 public override UInt32 getAvailableChars(OdCharArray retArray) {
233// test csout
234 /*SIMPLETYPE*/
235 UInt32 ret = GlobalsPINVOKE.OdShxFont_getAvailableChars(swigCPtr, OdCharArray.getCPtr(retArray));
237 return ret;
238 }
239
240 public override bool hasCharacter(char /*SIMPLETYPE*/ character) {
241 bool ret = GlobalsPINVOKE.OdShxFont_hasCharacter(swigCPtr, character /*SIMPLETYPE*/);
243 return ret;
244 }
245
246 public static OdShxFont createFont(OdStreamBuf io) {// OdShxFontPtr
247 MemoryManager mMan = MemoryManager.GetMemoryManager();
248 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
250
251 OdShxFont ret = null;
252 if (null != mTrans)
253 {
254 mTrans.AddObject((OdShxFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdShxFont),ptr, true));
255 ret = (OdShxFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdShxFont),ptr, false);
256 }
257 else
258 {
259 ret = (OdShxFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdShxFont),ptr, true);
260 }
261
263 return ret;
264}
265
266 public OdResult loadFromInitFile(OdStreamBuf io, Int32 /*SIMPLETYPE*/ numEntries, Int32 /*SIMPLETYPE*/ dataSize, Int32 /*SIMPLETYPE*/ above, Int32 /*SIMPLETYPE*/ below, Int32 /*SIMPLETYPE*/ modes, Int32 /*SIMPLETYPE*/ subType) {
267 OdResult ret = (OdResult)GlobalsPINVOKE.OdShxFont_loadFromInitFile(swigCPtr, OdStreamBuf.getCPtr(io), numEntries /*SIMPLETYPE*/, dataSize /*SIMPLETYPE*/, above /*SIMPLETYPE*/, below /*SIMPLETYPE*/, modes /*SIMPLETYPE*/, subType /*SIMPLETYPE*/);
269 return ret;
270 }
271
272 public void setMainShxFont(OdShxFont font) {
275 }
276
278 OdShxFont ret = (OdShxFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdShxFont),GlobalsPINVOKE.OdShxFont_getMainShxFont(swigCPtr),false); /*createInt 3_2*/
279
281 return ret;
282}
283
284 public override void getScore(char /*SIMPLETYPE*/ character, OdGePoint2d advance, OdGePoint3d pointsOver, OdGePoint3d pointsUnder, OdTextProperties textFlags) {
285 GlobalsPINVOKE.OdShxFont_getScore(swigCPtr, character /*SIMPLETYPE*/, OdGePoint2d.getCPtr(advance), OdGePoint3d.getCPtr(pointsOver), OdGePoint3d.getCPtr(pointsUnder), OdTextProperties.getCPtr(textFlags));
287 }
288
289 public override bool supportsVerticalMode() {
292 return ret;
293 }
294
295 public void setFileName(String fileName) {
296 GlobalsPINVOKE.OdShxFont_setFileName(swigCPtr, fileName);
298 }
299
300 public override String getFileName() {
301 string ret = GlobalsPINVOKE.OdShxFont_getFileName(swigCPtr);
303 return ret;
304}
305
306 public override void getDescriptor(OdTtfDescriptor descr) {
309 }
310
311 public OdResult drawCharacterImp(char /*SIMPLETYPE*/ character, OdGePoint2d advance, OdGiCommonDraw pWd, OdTextProperties textFlags, OdShxTextData pOdShxTextData) {
312 OdResult ret = (OdResult)GlobalsPINVOKE.OdShxFont_drawCharacterImp__SWIG_0(swigCPtr, character /*SIMPLETYPE*/, OdGePoint2d.getCPtr(advance), OdGiCommonDraw.getCPtr(pWd), OdTextProperties.getCPtr(textFlags), OdShxTextData.getCPtr(pOdShxTextData));
314 return ret;
315 }
316
317 public OdResult drawCharacterImp(char /*SIMPLETYPE*/ character, OdGePoint2d advance, OdGiConveyorGeometry pGeom, OdTextProperties textFlags, OdShxTextData pOdShxTextData) {
318 OdResult ret = (OdResult)GlobalsPINVOKE.OdShxFont_drawCharacterImp__SWIG_1(swigCPtr, character /*SIMPLETYPE*/, OdGePoint2d.getCPtr(advance), pGeom.GetInterfaceCPtr(), OdTextProperties.getCPtr(textFlags), OdShxTextData.getCPtr(pOdShxTextData));
320 return ret;
321 }
322
323 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
324 string ret = GlobalsPINVOKE.OdShxFont_getRealClassName(ptr /*SIMPLETYPE*/);
326 return ret;
327 }
328
333 public uint vb_flags() { return this.flags(); }
334
335}
336
337}
static global::System.Exception Retrieve()
static int OdShxFont_drawCharacter__SWIG_0(HandleRef jarg1, char jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static UInt32 OdShxFont_getAvailableChars(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdShxFont_desc()
static IntPtr OdShxFont_isA(HandleRef jarg1)
static bool OdShxFont_supportsVerticalMode(HandleRef jarg1)
static int OdShxFont_drawCharacterImp__SWIG_0(HandleRef jarg1, char jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6)
static void delete_OdShxFont(HandleRef jarg1)
static void OdShxFont_setFileName(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static int OdShxFont_loadFromInitFile(HandleRef jarg1, HandleRef jarg2, Int32 jarg3, Int32 jarg4, Int32 jarg5, Int32 jarg6, Int32 jarg7, Int32 jarg8)
static bool OdShxFont_hasCharacter(HandleRef jarg1, char jarg2)
static void delete_OdShxFont_CharLoc(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdShxFont_getFileName(HandleRef jarg1)
static Int32 OdShxFont_CharLoc_m_FileLoc_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt16 OdShxFont_shapeIndexByName(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdShxFont_setMainShxFont(HandleRef jarg1, HandleRef jarg2)
static String OdShxFont_shapeNameByIndex(HandleRef jarg1, UInt16 jarg2)
static IntPtr OdShxFont_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdShxFont_CharLoc_m_ShapeNo_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt16 jarg2)
static void OdShxFont_CharLoc_m_FileLoc_set(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static int OdShxFont_drawCharacter__SWIG_1(HandleRef jarg1, char jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static int OdShxFont_drawCharacterImp__SWIG_1(HandleRef jarg1, char jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6)
static int OdShxFont_initialize(HandleRef jarg1, HandleRef jarg2)
static void OdShxFont_getScore(HandleRef jarg1, char jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6)
static IntPtr OdShxFont_createObject()
static IntPtr OdShxFont_getMainShxFont(HandleRef jarg1)
static double OdShxFont_getAbove(HandleRef jarg1)
static UInt16 OdShxFont_CharLoc_m_ShapeNo_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdShxFont_cast(HandleRef jarg1)
static double OdShxFont_getBelow(HandleRef jarg1)
static IntPtr OdShxFont_createFont(HandleRef jarg1)
static byte OdShxFont_getBfHeight(HandleRef jarg1)
static string OdShxFont_getRealClassName(IntPtr jarg1)
static byte OdShxFont_getBfWidth(HandleRef jarg1)
static void OdShxFont_getDescriptor(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdCharArray obj)
Definition: OdCharArray.cs:28
UInt32 flags()
Definition: OdFont.cs:111
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGiCommonDraw obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
virtual void Dispose(bool disposing)
Definition: OdShxFont.cs:65
CharLoc(IntPtr cPtr, bool cMemoryOwn)
Definition: OdShxFont.cs:47
static HandleRef getCPtr(CharLoc obj)
Definition: OdShxFont.cs:52
override bool hasCharacter(char character)
Definition: OdShxFont.cs:240
override void getScore(char character, OdGePoint2d advance, OdGePoint3d pointsOver, OdGePoint3d pointsUnder, OdTextProperties textFlags)
Definition: OdShxFont.cs:284
static OdShxFont createObject()
Definition: OdShxFont.cs:152
override void getDescriptor(OdTtfDescriptor descr)
Definition: OdShxFont.cs:306
override String getFileName()
Definition: OdShxFont.cs:300
override OdResult drawCharacter(char character, OdGePoint2d advance, OdGiCommonDraw pWd, OdTextProperties textFlags)
Definition: OdShxFont.cs:206
void setMainShxFont(OdShxFont font)
Definition: OdShxFont.cs:272
void setFileName(String fileName)
Definition: OdShxFont.cs:295
override bool supportsVerticalMode()
Definition: OdShxFont.cs:289
override OdRxObject queryX(OdRxClass protocolClass)
Definition: OdShxFont.cs:145
virtual String shapeNameByIndex(UInt16 index)
Definition: OdShxFont.cs:218
override UInt32 getAvailableChars(OdCharArray retArray)
Definition: OdShxFont.cs:232
static HandleRef getCPtr(OdShxFont obj)
Definition: OdShxFont.cs:25
override void Dispose(bool disposing)
Definition: OdShxFont.cs:29
static string getRealClassName(IntPtr ptr)
Definition: OdShxFont.cs:323
static OdShxFont cast(OdRxObject pObj)
Definition: OdShxFont.cs:111
OdResult loadFromInitFile(OdStreamBuf io, Int32 numEntries, Int32 dataSize, Int32 above, Int32 below, Int32 modes, Int32 subType)
Definition: OdShxFont.cs:266
OdShxFont getMainShxFont()
Definition: OdShxFont.cs:277
override OdRxClass isA()
Definition: OdShxFont.cs:138
override OdResult drawCharacter(char character, OdGePoint2d advance, OdGiConveyorGeometry pGeom, OdTextProperties textFlags)
Definition: OdShxFont.cs:212
override double getAbove()
Definition: OdShxFont.cs:188
virtual UInt16 shapeIndexByName(String name)
Definition: OdShxFont.cs:224
OdResult drawCharacterImp(char character, OdGePoint2d advance, OdGiConveyorGeometry pGeom, OdTextProperties textFlags, OdShxTextData pOdShxTextData)
Definition: OdShxFont.cs:317
override double getBelow()
Definition: OdShxFont.cs:194
OdResult drawCharacterImp(char character, OdGePoint2d advance, OdGiCommonDraw pWd, OdTextProperties textFlags, OdShxTextData pOdShxTextData)
Definition: OdShxFont.cs:311
static new OdRxClass desc()
Definition: OdShxFont.cs:131
override OdResult initialize(OdStreamBuf io)
Definition: OdShxFont.cs:200
OdShxFont(IntPtr cPtr, bool cMemoryOwn)
Definition: OdShxFont.cs:20
static OdShxFont createFont(OdStreamBuf io)
Definition: OdShxFont.cs:246
static HandleRef getCPtr(OdShxTextData obj)
static HandleRef getCPtr(OdStreamBuf obj)
Definition: OdStreamBuf.cs:25
static HandleRef getCPtr(OdTextProperties obj)
static HandleRef getCPtr(OdTtfDescriptor obj)
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()