MUSX Document Model
|
Helper functions and structs for decoding instruction data vectors in ShapeDef. More...
#include <ShapeDesigner.h>
Classes | |
struct | LineWidth |
Holds the parsed data for a LineWidth instruction. More... | |
struct | RLineTo |
Holds the parsed data for an RLineTo instruction. More... | |
Static Public Member Functions | |
static std::optional< LineWidth > | parseLineWidth (ShapeDef::InstructionType type, const std::vector< int > &data) |
Attempts to parse a LineWidth instruction. | |
static std::optional< RLineTo > | parseRLineTo (ShapeDef::InstructionType type, const std::vector< int > &data) |
Attempts to parse an RLineTo instruction. | |
static std::optional< FontInfo > | parseSetFont (const DocumentWeakPtr &document, ShapeDef::InstructionType type, const std::vector< int > &data) |
Attempts to parse a SetFont instruction into a FontInfo object. | |
Helper functions and structs for decoding instruction data vectors in ShapeDef.
|
static |
|
static |
|
static |
Attempts to parse a SetFont instruction into a FontInfo object.
[in] | document | The owning document used to construct the FontInfo object. |
[in] | type | The instruction type; must be InstructionType::SetFont. |
[in] | data | The instruction's associated data vector. |