|
AeonGUI
A portable video game graphic user interface library.
|
Cairo-backend path implementation. More...
#include </d/a/AeonGUI/AeonGUI/include/aeongui/CairoPath.hpp>
Public Member Functions | |
| CairoPath () | |
| Default constructor. | |
| void | Construct (const std::vector< DrawType > &aCommands, size_t aPathDataHint=0) final |
| Build the Cairo path from a vector of draw commands. | |
| void | Construct (const DrawType *aCommands, size_t aCommandCount, size_t aPathDataHint=0) final |
| Build the Cairo path from a raw array of draw commands. | |
| ~CairoPath () | |
| Destructor. Frees path data. | |
| const cairo_path_t * | GetCairoPath () const |
| Get the underlying Cairo path structure. | |
| double | GetTotalLength () const final |
| Compute the total arc length of the path. | |
| PathPoint | GetPointAtLength (double aDistance) const final |
| Get the position and tangent angle at a distance along the path. | |
| bool | IsClosed () const final |
| Check whether the path contains a close-path command. | |
| Public Member Functions inherited from AeonGUI::Path | |
| virtual | ~Path ()=0 |
| Virtual destructor. | |
Cairo-backend path implementation.
Converts DrawType command sequences into a cached cairo_path_t structure for efficient repeated rendering.
|
finalvirtual |
Build the Cairo path from a raw array of draw commands.
| aCommands | Pointer to the command array. |
| aCommandCount | Number of commands. |
| aPathDataHint | Pre-computed size hint for mPathData. |
Implements AeonGUI::Path.
|
finalvirtual |
Build the Cairo path from a vector of draw commands.
| aCommands | The draw command sequence. |
| aPathDataHint | Pre-computed size hint for mPathData. |
Implements AeonGUI::Path.
| const cairo_path_t * AeonGUI::CairoPath::GetCairoPath | ( | ) | const |
Get the underlying Cairo path structure.
|
finalvirtual |
Get the position and tangent angle at a distance along the path.
| aDistance | Distance from the path start in user units. |
Implements AeonGUI::Path.
|
finalvirtual |
Compute the total arc length of the path.
Implements AeonGUI::Path.
|
finalvirtual |
Check whether the path contains a close-path command.
Implements AeonGUI::Path.