16#ifndef AEONGUI_CAIROPATH_H
17#define AEONGUI_CAIROPATH_H
19#include "aeongui/CairoCanvas.hpp"
20#include "aeongui/Path.hpp"
38 void Construct (
const std::vector<DrawType>& aCommands,
size_t aPathDataHint = 0 ) final;
44 void Construct ( const DrawType* aCommands,
size_t aCommandCount,
size_t aPathDataHint = 0 ) final;
56 std::vector<cairo_path_data_t> mPathData;
CairoPath()
Default constructor.
double GetTotalLength() const final
Compute the total arc length of the path.
Definition CairoPath.cpp:494
PathPoint GetPointAtLength(double aDistance) const final
Get the position and tangent angle at a distance along the path.
Definition CairoPath.cpp:531
void Construct(const std::vector< DrawType > &aCommands, size_t aPathDataHint=0) final
Build the Cairo path from a vector of draw commands.
Definition CairoPath.cpp:192
const cairo_path_t * GetCairoPath() const
Get the underlying Cairo path structure.
Definition CairoPath.cpp:187
bool IsClosed() const final
Check whether the path contains a close-path command.
Definition CairoPath.cpp:622
Abstract base class for renderable path data.
Definition Path.hpp:40
Result of querying a point along a path.
Definition Path.hpp:28