|
sf-svg
|
C++-styled cstyle::ShapeStruct wrapper. More...
#include <Shape.hpp>
Public Member Functions | |
| Shape (const cstyle::ShapeStruct *ptr) | |
| Constructor. More... | |
| std::string | getId () const |
| Get ID. More... | |
| cstyle::Paint | getFill () const |
| Get fill paint. More... | |
| cstyle::Paint | getStroke () const |
| Get stroke. More... | |
| float | getOpacity () const |
| Get opacity. More... | |
| float | getStrokeWidth () const |
| Get stroke width. More... | |
| float | getStrokeDashOffset () const |
| Get stroke dash offset. More... | |
| const float * | getStrokeDashArray () const |
| Get stroke dash array. More... | |
| size_t | getStrokeDashCount () const |
| Get stroke dash count. More... | |
| LineJoin | getStrokeLineJoin () const |
| Get stroke line join. More... | |
| LineCap | getStrokeLineCap () const |
| Get stroke line cap. More... | |
| Flags | getFlags () const |
| get Flags More... | |
| const float * | getBounds () const |
| Get bounds. More... | |
| PathVector | getPaths () const |
| Get paths. More... | |
| Shape | getNextShape () const |
| Get next shape. More... | |
| bool | good () const |
| Is ok? More... | |
| Shape & | operator++ () |
| Switches itself to next shape. More... | |
| operator bool () const | |
| Cast nsvg::Shape → bool. More... | |
C++-styled cstyle::ShapeStruct wrapper.
| nsvg::Shape::Shape | ( | const cstyle::ShapeStruct * | ptr | ) |
Constructor.
| [in] | ptr | – const pointer to ShapeStruct |
It's the only constructor of nsvg::Shape class, which wraps given cstyle::ShapeStruct into object orientated interface.
| const float * nsvg::Shape::getBounds | ( | ) | const |
Get bounds.
| cstyle::Paint nsvg::Shape::getFill | ( | ) | const |
Get fill paint.
| Flags nsvg::Shape::getFlags | ( | ) | const |
get Flags
| std::string nsvg::Shape::getId | ( | ) | const |
Get ID.
| Shape nsvg::Shape::getNextShape | ( | ) | const |
Get next shape.
| float nsvg::Shape::getOpacity | ( | ) | const |
Get opacity.
| PathVector nsvg::Shape::getPaths | ( | ) | const |
Get paths.
| cstyle::Paint nsvg::Shape::getStroke | ( | ) | const |
Get stroke.
| const float * nsvg::Shape::getStrokeDashArray | ( | ) | const |
Get stroke dash array.
| size_t nsvg::Shape::getStrokeDashCount | ( | ) | const |
Get stroke dash count.
| float nsvg::Shape::getStrokeDashOffset | ( | ) | const |
Get stroke dash offset.
| LineCap nsvg::Shape::getStrokeLineCap | ( | ) | const |
Get stroke line cap.
| LineJoin nsvg::Shape::getStrokeLineJoin | ( | ) | const |
Get stroke line join.
| float nsvg::Shape::getStrokeWidth | ( | ) | const |
Get stroke width.
| bool nsvg::Shape::good | ( | ) | const |
Is ok?
| nsvg::Shape::operator bool | ( | ) | const |
Cast nsvg::Shape → bool.
Implicitly cast *this to bool, equivalent to nsvg::Shape::good() method.
| Shape & nsvg::Shape::operator++ | ( | ) |
Switches itself to next shape.
Equivalent to:
1.8.13