struct ffw::GuiText::Paragraph

Class List > ffw :: GuiText :: Paragraph

Public Attributes

Type Name
const GuiFont * font
const Color color
const std::string str
ffw::Pointf size
std::vector< GuiFont::Chunk > chunks

Public Functions

Type Name
Paragraph (const GuiFont * font, const Color & color, const std::string & str)
void recalculate (float width, const GuiFont * fallback, float lineHeight)

Public Attributes Documentation

variable font

const GuiFont* ffw::GuiText::Paragraph::font;

variable color

const Color ffw::GuiText::Paragraph::color;

variable str

const std::string ffw::GuiText::Paragraph::str;

variable size

ffw::Pointf ffw::GuiText::Paragraph::size;

variable chunks

std::vector<GuiFont::Chunk> ffw::GuiText::Paragraph::chunks;

Public Functions Documentation

function Paragraph

ffw::GuiText::Paragraph::Paragraph (
    const GuiFont * font,
    const Color & color,
    const std::string & str
)

function recalculate

void ffw::GuiText::Paragraph::recalculate (
    float width,
    const GuiFont * fallback,
    float lineHeight
)

The documentation for this class was generated from the following file: include/ffw/gui/guitext.h