aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Embroidery/libembroidery/emb-ellipse.h
blob: 867c287861e5a4c42f7c1440cd50782322693102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*! @file emb-ellipse.h */
#ifndef EMB_ELLIPSE_H
#define EMB_ELLIPSE_H

#include "emb-color.h"

#include "api-start.h"
#ifdef __cplusplus
extern "C" {
#endif

typedef struct EmbEllipse_
{
    double centerX;
    double centerY;
    double radiusX;
    double radiusY;
} EmbEllipse;

extern EMB_PUBLIC double EMB_CALL embEllipse_centerX(EmbEllipse ellipse);
extern EMB_PUBLIC double EMB_CALL embEllipse_centerY(EmbEllipse ellipse);
extern EMB_PUBLIC double EMB_CALL embEllipse_radiusX(EmbEllipse ellipse);
extern EMB_PUBLIC double EMB_CALL embEllipse_radiusY(EmbEllipse ellipse);
extern EMB_PUBLIC double EMB_CALL embEllipse_diameterX(EmbEllipse ellipse);
extern EMB_PUBLIC double EMB_CALL embEllipse_diameterY(EmbEllipse ellipse);
extern EMB_PUBLIC double EMB_CALL embEllipse_width(EmbEllipse ellipse);
extern EMB_PUBLIC double EMB_CALL embEllipse_height(EmbEllipse ellipse);

typedef struct EmbEllipseObject_
{
    EmbEllipse ellipse;
    double rotation;

    /* Properties */
    int lineType;
    EmbColor color;
} EmbEllipseObject;

extern EMB_PUBLIC EmbEllipseObject EMB_CALL embEllipseObject_make(double cx, double cy, double rx, double ry);
extern EMB_PUBLIC EmbEllipseObject* EMB_CALL embEllipseObject_create(double cx, double cy, double rx, double ry);

typedef struct EmbEllipseObjectList_
{
    EmbEllipseObject ellipseObj;
    struct EmbEllipseObjectList_* next;
} EmbEllipseObjectList;

extern EMB_PUBLIC EmbEllipseObjectList* EMB_CALL embEllipseObjectList_create(EmbEllipseObject data);
extern EMB_PUBLIC EmbEllipseObjectList* EMB_CALL embEllipseObjectList_add(EmbEllipseObjectList* pointer, EmbEllipseObject data);
extern EMB_PUBLIC int EMB_CALL embEllipseObjectList_count(EmbEllipseObjectList* pointer);
extern EMB_PUBLIC int EMB_CALL embEllipseObjectList_empty(EmbEllipseObjectList* pointer);
extern EMB_PUBLIC void EMB_CALL embEllipseObjectList_free(EmbEllipseObjectList* pointer);

#ifdef __cplusplus
}
#endif /* __cplusplus */
#include "api-stop.h"

#endif /* EMB_ELLIPSE_H */

/* kate: bom off; indent-mode cstyle; indent-width 4; replace-trailing-space-save on; */