#include <genesis/utils/formats/svg/text.hpp>
Public Member Functions | |
SvgText (std::string const &text="", SvgPoint const &position=SvgPoint(), SvgFont const &font=SvgFont(), SvgFill const &fill=SvgFill(), SvgStroke const &stroke=SvgStroke(SvgStroke::Type::kOmit)) | |
SvgText (SvgText &&)=default | |
SvgText (SvgText const &)=default | |
~SvgText ()=default | |
SvgBox | bounding_box () const |
SvgText & | operator= (SvgText &&)=default |
SvgText & | operator= (SvgText const &)=default |
void | write (std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const |
Static Public Member Functions | |
static std::string | alignment_baseline_to_string (AlignmentBaseline value) |
static std::string | anchor_to_string (Anchor value) |
static std::string | dominant_baseline_to_string (DominantBaseline value) |
Public Types | |
enum | AlignmentBaseline { kNone, kAuto, kBaseline, kBeforeEdge, kTextBeforeEdge, kMiddle, kCentral, kAfterEdge, kTextAfterEdge, kIdeographic, kAlphabetic, kHanging, kMathematical, kInherit } |
enum | Anchor { kNone, kStart, kMiddle, kEnd } |
enum | DominantBaseline { kNone, kAuto, kUseScript, kNoChange, kResetSize, kIdeographic, kAlphabetic, kHanging, kMathematical, kCentral, kMiddle, kTextAfterEdge, kTextBeforeEdge, kInherit } |
using | self_type = SvgText |
Public Attributes | |
AlignmentBaseline | alignment_baseline = AlignmentBaseline::kNone |
Anchor | anchor = Anchor::kNone |
DominantBaseline | dominant_baseline = DominantBaseline::kNone |
std::string | dx |
std::string | dy |
SvgFill | fill |
SvgFont | font |
std::string | id |
double | kerning |
double | letter_spacing |
SvgPoint | position |
SvgStroke | stroke |
std::string | text |
SvgTransform | transform |
double | word_spacing |
|
default |
|
static |
|
static |
|
static |
void write | ( | std::ostream & | out, |
size_t | indent = 0 , |
||
SvgDrawingOptions const & | options = SvgDrawingOptions() |
||
) | const |
|
strong |
|
strong |
AlignmentBaseline alignment_baseline = AlignmentBaseline::kNone |
Anchor anchor = Anchor::kNone |
DominantBaseline dominant_baseline = DominantBaseline::kNone |
SvgTransform transform |