LayOut C API
|
#include <LayOutAPI/common.h>
#include <LayOutAPI/geometry/geometry.h>
#include <LayOutAPI/model/defs.h>
Go to the source code of this file.
Functions | |
LO_RESULT | LOEllipseCreate (LOEllipseRef *ellipse, const LOAxisAlignedRect2D *bounds) |
Creates a new ellipse entity object. More... | |
LO_RESULT | LOEllipseAddReference (LOEllipseRef ellipse) |
Adds a reference to an ellipse object. More... | |
LO_RESULT | LOEllipseRelease (LOEllipseRef *ellipse) |
Releases an ellipse object. The object will be invalidated if releasing the last reference. More... | |
LO_EXPORT LOEllipseRef | LOEllipseFromEntity (LOEntityRef entity) |
Converts from a LOEntityRef to a LOEllipseRef. This is essentially a downcast operation so the given LOEntityRef must be convertible to a LOEllipseRef. More... | |
LO_EXPORT LOEntityRef | LOEllipseToEntity (LOEllipseRef ellipse) |
Converts from a LOEllipseRef to a LOEntityRef. This is essentially an upcast operation. More... | |
LO_RESULT LOEllipseAddReference | ( | LOEllipseRef | ellipse | ) |
Adds a reference to an ellipse object.
[in] | ellipse | The ellipse object. |
LO_RESULT LOEllipseCreate | ( | LOEllipseRef * | ellipse, |
const LOAxisAlignedRect2D * | bounds | ||
) |
Creates a new ellipse entity object.
[out] | ellipse | The newly created ellipse. |
[in] | bounds | The bounds of the ellipse. |
LO_EXPORT LOEllipseRef LOEllipseFromEntity | ( | LOEntityRef | entity | ) |
Converts from a LOEntityRef to a LOEllipseRef. This is essentially a downcast operation so the given LOEntityRef must be convertible to a LOEllipseRef.
[in] | entity | The entity object. |
LO_RESULT LOEllipseRelease | ( | LOEllipseRef * | ellipse | ) |
Releases an ellipse object. The object will be invalidated if releasing the last reference.
[in] | ellipse | The ellipse object. |
LO_EXPORT LOEntityRef LOEllipseToEntity | ( | LOEllipseRef | ellipse | ) |
Converts from a LOEllipseRef to a LOEntityRef. This is essentially an upcast operation.
[in] | ellipse | The ellipse object. |