Aurelon Open API
8.1.1
Loading...
Searching...
No Matches
AOI_Text.h
1
/*
2
* AOI_Text
3
* Copyright (c) 2007-2017 Aurelon BV. All rights reserved.
4
*
5
*/
6
#pragma once
7
8
#include "./AOI_Vector.h"
9
#include <ACPL/CString.h>
10
11
class
AOI_Document
;
12
13
typedef
struct
AOI_TextProperties
14
{
15
struct
AOI_TextStyle
16
{
17
char
fontName[64];
18
float
size;
19
float
width;
20
float
slant;
21
float
charSpacing;
22
float
wordSpacing;
23
float
transport;
24
}
style
;
25
struct
AOI_TextValid
26
{
27
bool
font;
28
bool
size;
29
bool
width;
30
bool
slant;
31
bool
charSpacing;
32
bool
wordSpacing;
33
bool
transport;
34
}
valid
;
35
}
AOI_TextProperties
;
36
37
class
AOIAPI
AOI_Object_Text
:
public
AOI_Object_Vector
38
{
39
public
:
40
const
static
uint32_t Type =
'GTXT'
;
41
42
static
AOI_Object_Text
* Create(
AOI_Document
* document );
43
44
void
SetText(
const
aur::ACPL::UString& uniText );
45
aur::ACPL::UString GetText(
int
selStart,
int
selEnd )
const
;
46
void
SetProperties(
int
selStart,
int
selEnd,
const
AOI_TextProperties
& properties );
47
void
GetProperties(
int
selStart,
int
selEnd,
AOI_TextProperties
& properties )
const
;
48
AOI_Mapping
GetMapping()
const
;
49
};
50
typedef
AOI_Object_Text
*
AOI_Object_TextPtr
;
51
52
53
class
AOIAPI
AOI_Object_PathText
:
public
AOI_Object_Text
54
{
55
public
:
56
const
static
uint32_t Type =
'PTXT'
;
57
};
58
typedef
AOI_Object_PathText
*
AOI_Object_PathTextPtr
;
AOI_Document
PDF Document.
Definition
AOI_Document.h:35
AOI_Mapping
3x3 matrix
Definition
AOI_Types.h:113
AOI_Object_PathText
Text along a path.
Definition
AOI_Text.h:54
AOI_Object_Text
Text object.
Definition
AOI_Text.h:38
AOI_Object_Vector
Base class for all vector graphics.
Definition
AOI_Vector.h:12
AOI_TextProperties
Text specifications.
Definition
AOI_Text.h:14
AOI_TextProperties::valid
struct AOI_TextProperties::AOI_TextValid valid
AOI_TextProperties::style
struct AOI_TextProperties::AOI_TextStyle style
desktop
Source
PDFEngine
OpenAPI
AOI_Text.h
Generated by
1.11.0