|
AeonGUI
A portable video game graphic user interface library.
|
Abstract base class for renderable path data. More...
#include </d/a/AeonGUI/AeonGUI/include/aeongui/Path.hpp>
Public Member Functions | |
| virtual void | Construct (const std::vector< DrawType > &aCommands, size_t aPathDataHint=0)=0 |
| Build the path from a vector of draw commands. | |
| virtual void | Construct (const DrawType *aCommands, size_t aCommandCount, size_t aPathDataHint=0)=0 |
| Build the path from a raw array of draw commands. | |
| virtual double | GetTotalLength () const =0 |
| Compute the total arc length of the path. | |
| virtual PathPoint | GetPointAtLength (double aDistance) const =0 |
| Get the position and tangent angle at a distance along the path. | |
| virtual bool | IsClosed () const =0 |
| Check whether the path contains a close-path command. | |
| virtual | ~Path ()=0 |
| Virtual destructor. | |
Abstract base class for renderable path data.
A Path is constructed from a sequence of DrawType commands and can be drawn by a Canvas implementation.
|
pure virtual |
Build the path from a raw array of draw commands.
| aCommands | Pointer to the command array. |
| aCommandCount | Number of commands. |
| aPathDataHint | Pre-computed size hint for internal storage. |
Implemented in AeonGUI::CairoPath, and AeonGUI::SkiaPath.
|
pure virtual |
Build the path from a vector of draw commands.
| aCommands | The draw command sequence. |
| aPathDataHint | Pre-computed size hint for internal storage. |
Implemented in AeonGUI::CairoPath, and AeonGUI::SkiaPath.
|
pure virtual |
Get the position and tangent angle at a distance along the path.
| aDistance | Distance from the path start in user units. |
Implemented in AeonGUI::CairoPath, and AeonGUI::SkiaPath.
|
pure virtual |
Compute the total arc length of the path.
Implemented in AeonGUI::CairoPath, and AeonGUI::SkiaPath.
|
pure virtual |
Check whether the path contains a close-path command.
Implemented in AeonGUI::CairoPath, and AeonGUI::SkiaPath.