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
11class AOI_Document;
12
13typedef 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;
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;
36
38{
39public:
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};
51
52
54{
55public:
56 const static uint32_t Type = 'PTXT';
57};
PDF Document.
3x3 matrix
Definition AOI_Types.h:113
Text along a path.
Definition AOI_Text.h:54
Text object.
Definition AOI_Text.h:38
Base class for all vector graphics.
Definition AOI_Vector.h:12
Text specifications.
Definition AOI_Text.h:14
struct AOI_TextProperties::AOI_TextValid valid
struct AOI_TextProperties::AOI_TextStyle style