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
rectangle.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_RECTANGLE_H_
5
#define LAYOUT_MODEL_RECTANGLE_H_
6
7
#include <
LayOutAPI/common.h
>
8
#include <
LayOutAPI/geometry/geometry.h
>
9
#include <
LayOutAPI/model/defs.h
>
10
20
typedef
enum
{
21
LORectangleType_Normal
= 0,
22
LORectangleType_Rounded
,
23
LORectangleType_Lozenge
,
24
LORectangleType_Bulged
,
25
LONumRectangleTypes
26
}
LORectangleType
;
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif // __cplusplus
31
43
LO_RESULT
LORectangleCreate
(
LORectangleRef
* rectangle,
44
const
LOAxisAlignedRect2D
* bounds);
45
59
LO_RESULT
LORectangleCreateRounded
(
LORectangleRef
* rectangle,
60
const
LOAxisAlignedRect2D
* bounds,
61
double
corner_radius);
73
LO_RESULT
LORectangleCreateLozenge
(
LORectangleRef
* rectangle,
74
const
LOAxisAlignedRect2D
* bounds);
89
LO_RESULT
LORectangleCreateBulged
(
LORectangleRef
* rectangle,
90
const
LOAxisAlignedRect2D
* bounds,
91
double
bulge_distance);
92
100
LO_RESULT
LORectangleAddReference
(
LORectangleRef
rectangle);
101
111
LO_RESULT
LORectangleRelease
(
LORectangleRef
* rectangle);
112
122
LO_EXPORT
LORectangleRef
LORectangleFromEntity
(
LOEntityRef
entity);
123
132
LO_EXPORT
LOEntityRef
LORectangleToEntity
(
LORectangleRef
rectangle);
133
145
LO_RESULT
LORectangleGetTopLeftPoint
(
LORectangleRef
rectangle,
146
LOPoint2D
* point);
147
159
LO_RESULT
LORectangleGetTopRightPoint
(
LORectangleRef
rectangle,
160
LOPoint2D
* point);
161
173
LO_RESULT
LORectangleGetBottomLeftPoint
(
LORectangleRef
rectangle,
174
LOPoint2D
* point);
175
187
LO_RESULT
LORectangleGetBottomRightPoint
(
LORectangleRef
rectangle,
188
LOPoint2D
* point);
189
199
LO_RESULT
LORectangleGetRectangleType
(
LORectangleRef
rectangle,
200
LORectangleType
* type);
201
213
LO_RESULT
LORectangleSetRectangleType
(
LORectangleRef
rectangle,
214
LORectangleType
type);
215
228
LO_RESULT
LORectangleGetRadius
(
LORectangleRef
rectangle,
229
double
* radius);
230
244
LO_RESULT
LORectangleSetRadius
(
LORectangleRef
rectangle,
245
double
radius);
246
247
#ifdef __cplusplus
248
}
// end extern "C"
249
#endif // __cplusplus
250
#endif // LAYOUT_MODEL_RECTANGLE_H_
Generated on Wed Sep 8 2021 14:15:26 for LayOut C API by
1.8.3.1