NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
FontCollection.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口到JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// FontCollection.ja
9
//
10
// 生成方式:
11
// apiwrap
12
//
13
// 警告:
14
// 此文件由自动生成 - 请勿手动编辑
15
//
16
#pragma once
17
#include <NXOpen/NXDeprecation.hxx>
18
#include <vector>
19
#include <NXOpen/NXString.hxx>
20
#include <NXOpen/Callback.hxx>
21
#include <NXOpen/TaggedObject.hxx>
22
#include <NXOpen/libnxopencpp_exports.hxx>
23
#ifdef _MSC_VER
24
#pragma warning(push)
25
#pragma warning(disable:4996)
26
#endif
27
#ifdef __GNUC__
28
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
29
#endif
30
namespace
NXOpen
31
{
32
class
FontCollection
;
33
class
BasePart
;
34
class
FontCollectionImpl;
38
class
NXOPENCPPEXPORT
FontCollection
39
{
41
public
:
enum
Type
42
{
43
TypeNx
,
44
TypeStandard
,
45
TypeEmpty
= 10
46
};
47
private
:
FontCollectionImpl
* m_fontcollection_impl;
48
private
:
NXOpen::BasePart
* m_owner;
50
public
:
explicit
FontCollection
(
NXOpen::BasePart
*owner);
52
public
:
54
tag_t
Tag
()
const
;
55
public
:
~FontCollection
();
60
public
:
int
AddFont
61
(
62
const
NXString
& fontName
63
);
68
int
AddFont
69
(
70
const
char
* fontName
71
);
75
public
:
NXString
GetFontName
76
(
77
int
fontIndex
78
);
82
public
:
bool
DoesFontExist
83
(
84
int
fontIndex
85
);
89
public
:
int
GetLength
90
(
91
);
96
public
:
int
AddFont
97
(
98
const
NXString
& fontName ,
99
NXOpen::FontCollection::Type
type
100
);
105
int
AddFont
106
(
107
const
char
* fontName ,
108
NXOpen::FontCollection::Type
type
109
);
113
public
:
void
ReplaceFont
114
(
115
int
fontIndex ,
116
NXOpen::FontCollection::Type
type ,
117
const
NXString
& fontName
118
);
122
void
ReplaceFont
123
(
124
int
fontIndex ,
125
NXOpen::FontCollection::Type
type ,
126
const
char
* fontName
127
);
131
public
:
NXOpen::FontCollection::Type
GetFontType
132
(
133
int
fontIndex
134
);
135
};
//lint !e1712 default constructor not defined for class
136
}
137
#ifdef _MSC_VER
138
#pragma warning(pop)
139
#endif
140
#ifdef __GNUC__
141
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
142
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
143
#endif
144
#endif
145
#undef EXPORTLIBRARY