Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::PathSpline::Command Struct Reference

Metadata for a command, which describes how to connect the points. More...

#include "donner/svg/core/PathSpline.h"

Public Member Functions

 Command (CommandType type, size_t pointIndex)
 Construct a new Command.
 

Public Attributes

CommandType type
 Type of command.
 
size_t pointIndex
 Index of the first point used by this command. The number of points consumed by the command is determined by the command type.
 

Friends

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.
 

Detailed Description

Metadata for a command, which describes how to connect the points.

Constructor & Destructor Documentation

◆ Command()

donner::svg::PathSpline::Command::Command ( CommandType type,
size_t pointIndex )
inline

Construct a new Command.

Parameters
typeType of command.
pointIndexIndex of the first point used by this command.
See also
CommandType

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const Command & command )
friend

Ostream operator for Command, which outputs a human-readable representation.

Parameters
osOutput stream.
commandCommand to output.

The documentation for this struct was generated from the following file: