struct EE::Graphics::RichText::InlineFragment¶
A laid-out fragment produced by an inline item on one rendered line.
#include <richtext.hpp> struct InlineFragment { // enums enum Type; // fields Type type { Type::TextRun }; RenderSpan::InlinePath itemPath; size_t lineIndex { 0 }; Rectf bounds; Rectf paintBounds; Int64 startCharIndex { 0 }; Int64 endCharIndex { 0 }; std::shared_ptr<Text> text; BaselineAlignValue baselineAlign; InlineSource source; bool startsInlineBox { false }; bool endsInlineBox { false }; Color backgroundColor { Color::Transparent }; Float borderWidth { 0 }; Color borderColor { Color::Transparent }; Drawable* backgroundDrawable { nullptr }; Drawable* borderDrawable { nullptr }; bool backgroundDrawableUsesFragmentColor { false }; Uint32 textDecoration { 0 }; };