Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdTtfDescriptor.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 OdTtfDescriptor : 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 OdTtfDescriptor(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(OdTtfDescriptor obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
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 OdTtfDescriptor() : this(GlobalsPINVOKE.new_OdTtfDescriptor__SWIG_0(), true) {
53 }
54
55 public OdTtfDescriptor(String typeface, bool bold, bool italic, int charset, int pitchAndFamily) : this(GlobalsPINVOKE.new_OdTtfDescriptor__SWIG_1(typeface, bold, italic, charset, pitchAndFamily), true) {
57 }
58
59 public String fileName() {
60 string ret = GlobalsPINVOKE.OdTtfDescriptor_fileName(swigCPtr);
62 return ret;
63}
64
65 public String typeface() {
66 string ret = GlobalsPINVOKE.OdTtfDescriptor_typeface(swigCPtr);
68 return ret;
69}
70
71 public void clearFileName() {
74 }
75
76 public void clearTypeface() {
79 }
80
81 public void addTypeface(char /*SIMPLETYPE*/ typeface) {
82 GlobalsPINVOKE.OdTtfDescriptor_addTypeface(swigCPtr, typeface /*SIMPLETYPE*/);
84 }
85
86 public void setFileName(String filename) {
89 }
90
94 }
95
96 public void setTtfFlags(UInt32 /*SIMPLETYPE*/ flags) {
97 GlobalsPINVOKE.OdTtfDescriptor_setTtfFlags__SWIG_0(swigCPtr, flags /*SIMPLETYPE*/);
99 }
100
101 public void setTtfFlags(bool bold, bool italic, int charset, int pitchAndFamily) {
102 GlobalsPINVOKE.OdTtfDescriptor_setTtfFlags__SWIG_1(swigCPtr, bold, italic, charset, pitchAndFamily);
104 }
105
106 public void setBold(bool bold) {
109 }
110
111 public void setItalic(bool italic) {
114 }
115
116 public void setCharSet(int charset) {
119 }
120
124 }
125
126 public bool isBold() {
127 bool ret = GlobalsPINVOKE.OdTtfDescriptor_isBold(swigCPtr);
129 return ret;
130 }
131
132 public bool isItalic() {
133 bool ret = GlobalsPINVOKE.OdTtfDescriptor_isItalic(swigCPtr);
135 return ret;
136 }
137
138 public UInt16 charSet() {
139// test csout
140 /*SIMPLETYPE*/
141 UInt16 ret = GlobalsPINVOKE.OdTtfDescriptor_charSet(swigCPtr);
143 return ret;
144 }
145
146 public int pitchAndFamily() {
149 return ret;
150 }
151
152 public int getPitch() {
153 int ret = GlobalsPINVOKE.OdTtfDescriptor_getPitch(swigCPtr);
155 return ret;
156 }
157
158 public int getFamily() {
159 int ret = GlobalsPINVOKE.OdTtfDescriptor_getFamily(swigCPtr);
161 return ret;
162 }
163
167 return ret;
168 }
169
170 public void setTextRenderingMode(TextRenderingMode renderingMode) {
171 GlobalsPINVOKE.OdTtfDescriptor_setTextRenderingMode(swigCPtr, (int)renderingMode);
173 }
174
180
181}
182
183}
static global::System.Exception Retrieve()
static void OdTtfDescriptor_setBold(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdTtfDescriptor_isBold(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTtfDescriptor_setTtfFlags__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, bool jarg3, int jarg4, int jarg5)
static void delete_OdTtfDescriptor(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdTtfDescriptor_textRenderingMode(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTtfDescriptor_setTextRenderingMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void OdTtfDescriptor_addTypeface(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2)
static void OdTtfDescriptor_setCharSet(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void OdTtfDescriptor_setPitchAndFamily(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void OdTtfDescriptor_setFileName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static int OdTtfDescriptor_pitchAndFamily(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTtfDescriptor_setTtfFlags__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static int OdTtfDescriptor_getFamily(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTtfDescriptor_setItalic(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static String OdTtfDescriptor_typeface(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTtfDescriptor_setTypeFace(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdTtfDescriptor_isItalic(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdTtfDescriptor_fileName(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt16 OdTtfDescriptor_charSet(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdTtfDescriptor_getPitch(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTtfDescriptor_clearTypeface(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTtfDescriptor_clearFileName(global::System.Runtime.InteropServices.HandleRef jarg1)
void setFileName(String filename)
void setTextRenderingMode(TextRenderingMode renderingMode)
TextRenderingMode textRenderingMode()
OdTtfDescriptor(String typeface, bool bold, bool italic, int charset, int pitchAndFamily)
void setCharSet(int charset)
OdTtfDescriptor(IntPtr cPtr, bool cMemoryOwn)
void setTtfFlags(bool bold, bool italic, int charset, int pitchAndFamily)
void addTypeface(char typeface)
void setTtfFlags(UInt32 flags)
void setTypeFace(String typeface)
void setPitchAndFamily(int pitchAndFamily)
Teigha.Core.TextRenderingMode vb_textRenderingMode()
static HandleRef getCPtr(OdTtfDescriptor obj)
virtual void Dispose(bool disposing)