class ffw::GuiTextWrapper
Class List > ffw :: GuiTextWrapper
Classes
Type | Name |
---|---|
struct | Token |
Public Functions
Type | Name |
---|---|
GuiTextWrapper (const T * start, const T * end) | |
Token | next (const GuiFont * font, const float maxWidth) Returns the next token given a maximum width. |
Public Functions Documentation
function GuiTextWrapper
ffw::GuiTextWrapper::GuiTextWrapper (
const T * start,
const T * end
)
function next
Token ffw::GuiTextWrapper::next (
const GuiFont * font,
const float maxWidth
)
Returns the next token given a maximum width.
Parameters:
- font Any class that represents a font, the class must have a getCharAdvance(uint32_t) method that returns width (as float) given a unicode symbol as a first argument.
- maxWidth The maximum width of the text to wrap inside of.
The documentation for this class was generated from the following file: include/ffw/gui/guitextwrapper.h