struct EE::Graphics::RichText::RenderSpan

Structure representing a rendered span within a line.

#include <richtext.hpp>

struct RenderSpan {
    // typedefs

    typedef SmallVector<size_t, 4> InlinePath;

    // enums

    enum Type;

    // fields

    Type type { Type::Text };
    std::shared_ptr<Text> text;
    std::shared_ptr<Drawable> drawable;
    Rectf margin;
    Rectf padding;
    Float lineHeight { 0 };
    BaselineAlignValue baselineAlign;
    bool suppressBackground { false };
    Float baseline { 0 };
    InlineFloat floatType { InlineFloat::None };
    InlineClear clearType { InlineClear::None };
    bool isLineBreak { false };
    InlinePath inlinePath;
    Vector2f position;
    Sizef size;
    Int64 startCharIndex { 0 };
    Int64 endCharIndex { 0 };
    Int64 _leafIndex { -1 };
};