LayOut C API
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
LayOutAPI
model
label.h
Go to the documentation of this file.
1
// Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
// This file is intended for public distribution.
3
4
#ifndef LAYOUT_MODEL_LABEL_H_
5
#define LAYOUT_MODEL_LABEL_H_
6
7
#include <
LayOutAPI/common.h
>
8
#include <
LayOutAPI/geometry/geometry.h
>
9
#include <
LayOutAPI/model/defs.h
>
10
#include <
LayOutAPI/model/formattedtext.h
>
11
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif // __cplusplus
22
27
typedef
enum
{
28
LOLabelLeaderLineType_SingleSegment
= 0,
29
LOLabelLeaderLineType_TwoSegment
,
30
LOLabelLeaderLineType_Bezier
,
31
LOLabelLeaderLineType_Unknown
,
32
LONumLabelLeaderLineTypes
33
}
LOLabelLeaderLineType
;
34
39
typedef
enum
{
40
LOLabelTextConnectionType_NoConnection
= 0,
41
LOLabelTextConnectionType_Automatic
,
42
LOLabelTextConnectionType_ReverseAutomatic
,
43
LOLabelTextConnectionType_TopLeft
,
44
LOLabelTextConnectionType_CenterLeft
,
45
LOLabelTextConnectionType_BottomLeft
,
46
LOLabelTextConnectionType_TopRight
,
47
LOLabelTextConnectionType_CenterRight
,
48
LOLabelTextConnectionType_BottomRight
,
49
LONumLabelTextConnectionTypes
50
}
LOLabelTextConnectionType
;
51
72
LO_RESULT
LOLabelCreateAtPoint
(
LOLabelRef
* label,
73
const
LOPoint2D
* anchor_point,
74
LOFormattedTextAnchorType
anchor_type,
75
const
char
* plain_text,
76
LOLabelLeaderLineType
leader_line_type,
77
const
LOPoint2D
* target_point);
78
97
LO_RESULT
LOLabelCreateWithBounds
(
LOLabelRef
* label,
98
const
LOAxisAlignedRect2D
* bounds,
99
const
char
* plain_text,
100
LOLabelLeaderLineType
leader_line_type,
101
const
LOPoint2D
* target_point);
102
110
LO_RESULT
LOLabelAddReference
(
LOLabelRef
label);
111
121
LO_RESULT
LOLabelRelease
(
LOLabelRef
* label);
122
132
LO_EXPORT
LOLabelRef
LOLabelFromEntity
(
LOEntityRef
entity);
133
142
LO_EXPORT
LOEntityRef
LOLabelToEntity
(
LOLabelRef
label);
143
164
LO_RESULT
LOLabelGetExplodedEntities
(
LOLabelRef
label,
165
LOEntityListRef
entity_list,
166
LOPageRef
page_for_autotext);
167
186
LO_RESULT
LOLabelConnectTo
(
LOLabelRef
label,
187
LOConnectionPointRef
connection_point);
188
199
LO_RESULT
LOLabelDisconnect
(
LOLabelRef
label);
200
212
LO_RESULT
LOLabelCreateLabelTextCopy
(
LOLabelRef
label,
213
LOFormattedTextRef
* text);
214
231
LO_RESULT
LOLabelCreateLabelDisplayTextCopy
(
LOLabelRef
label,
232
LOPageRef
page,
233
LOFormattedTextRef
* text);
234
248
LO_RESULT
LOLabelSetLabelText
(
LOLabelRef
label,
249
LOFormattedTextRef
text);
250
261
LO_RESULT
LOLabelCreateLeaderLineCopy
(
LOLabelRef
label,
LOPathRef
* path);
262
278
LO_RESULT
LOLabelSetLeaderLine
(
LOLabelRef
label,
LOPathRef
path);
279
290
LO_RESULT
LOLabelGetLeaderLineType
(
LOLabelRef
label,
291
LOLabelLeaderLineType
* leader_line_type);
292
306
LO_RESULT
LOLabelSetLeaderLineType
(
LOLabelRef
label,
307
LOLabelLeaderLineType
leader_line_type);
308
318
LO_RESULT
LOLabelGetTextConnectionType
(
LOLabelRef
label,
319
LOLabelTextConnectionType
* text_connection_type);
320
334
LO_RESULT
LOLabelSetTextConnectionType
(
LOLabelRef
label,
335
LOLabelTextConnectionType
text_connection_type);
336
337
#ifdef __cplusplus
338
}
339
#endif // __cplusplus
340
341
#endif //LAYOUT_MODEL_LABEL_H_
Generated on Wed Sep 8 2021 14:15:26 for LayOut C API by
1.8.3.1