Metadata for a command, which describes how to connect the points.
More...
#include "donner/svg/core/PathSpline.h"
|
|
CommandType | type |
| | Type of command.
|
|
size_t | pointIndex |
| | Index of the first point of this command.
|
|
bool | isInternalPoint = false |
| | True if the point is derived from an arc and does not represent an original user command. Used to determine if markers should be placed on the point.
|
|
size_t | closePathIndex = size_t(-1) |
| | If type is CommandType::MoveTo, this is the index of the ClosePath at the end of the path.
|
|
|
bool | operator== (const Command &lhs, const Command &rhs) |
| | Equality operator.
|
| std::ostream & | operator<< (std::ostream &os, const Command &command) |
| | Ostream operator for Command, which outputs a human-readable representation.
|
Metadata for a command, which describes how to connect the points.
◆ Command()
| donner::svg::PathSpline::Command::Command |
( |
CommandType | type, |
|
|
size_t | pointIndex, |
|
|
bool | isInternalPoint = false ) |
|
inline |
Command constructor.
- Parameters
-
| type | Type of command. |
| pointIndex | Index of the first point of this command. |
| isInternalPoint | True if the point is derived from an arc and does not represent an original user command. Defaults to false. |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Command & | command ) |
|
friend |
Ostream operator for Command, which outputs a human-readable representation.
- Parameters
-
| os | Output stream. |
| command | Command to output. |
The documentation for this struct was generated from the following file: