2022-10-03 16:25:42 +00:00
|
|
|
#ifndef MARKERELEMENT_H
|
|
|
|
#define MARKERELEMENT_H
|
|
|
|
|
|
|
|
#include "graphicselement.h"
|
|
|
|
|
|
|
|
namespace lunasvg {
|
|
|
|
|
|
|
|
class LayoutMarker;
|
|
|
|
|
2023-07-29 10:37:05 +00:00
|
|
|
class MarkerElement : public StyledElement {
|
2022-10-03 16:25:42 +00:00
|
|
|
public:
|
|
|
|
MarkerElement();
|
|
|
|
|
|
|
|
Length refX() const;
|
|
|
|
Length refY() const;
|
|
|
|
Length markerWidth() const;
|
|
|
|
Length markerHeight() const;
|
|
|
|
Angle orient() const;
|
|
|
|
MarkerUnits markerUnits() const;
|
|
|
|
|
|
|
|
Rect viewBox() const;
|
|
|
|
PreserveAspectRatio preserveAspectRatio() const;
|
|
|
|
std::unique_ptr<LayoutMarker> getMarker(LayoutContext* context) const;
|
|
|
|
|
|
|
|
std::unique_ptr<Node> clone() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lunasvg
|
|
|
|
|
|
|
|
#endif // MARKERELEMENT_H
|