|
AeonGUI
A portable video game graphic user interface library.
|
Skia-based Path implementation. More...
#include </d/a/AeonGUI/AeonGUI/include/aeongui/SkiaPath.hpp>
Public Member Functions | |
| void | Construct (const std::vector< DrawType > &aCommands, size_t aPathDataHint=0) final |
| Build the Skia path from a vector of draw commands. | |
| void | Construct (const DrawType *aCommands, size_t aCommandCount, size_t aPathDataHint=0) final |
| Build the Skia path from a raw array of draw commands. | |
| const SkPath & | GetSkPath () const |
| Access the underlying Skia path object. | |
| 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. | |
Skia-based Path implementation.
Wraps an SkPath and is constructed from AeonGUI draw commands.
|
finalvirtual |
Build the Skia path from a raw array of draw commands.
| aCommands | Pointer to the command array. |
| aCommandCount | Number of commands. |
| aPathDataHint | Pre-computed size hint (unused by Skia backend). |
Implements AeonGUI::Path.
|
finalvirtual |
Build the Skia path from a vector of draw commands.
| aCommands | The draw command sequence. |
| aPathDataHint | Pre-computed size hint (unused by Skia backend). |
Implements AeonGUI::Path.
|
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.
| const SkPath & AeonGUI::SkiaPath::GetSkPath | ( | ) | const |
Access the underlying Skia path object.
SkPath.
|
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.