FormattedRenderedString implementation that renders the RenderedString with centred formatting.
More...
#include <CentredRenderedString.h>
|
|
| CentredRenderedString (const RenderedString &string) |
| | Constructor.
|
| |
| void | format (const Window *ref_wnd, const Sizef &area_size) |
| |
| void | draw (const Window *ref_wnd, GeometryBuffer &buffer, const Vector2f &position, const ColourRect *mod_colours, const Rectf *clip_rect) const |
| |
| size_t | getFormattedLineCount () const |
| |
| float | getHorizontalExtent (const Window *ref_wnd) const |
| |
| float | getVerticalExtent (const Window *ref_wnd) const |
| |
|
virtual | ~FormattedRenderedString () |
| | Destructor.
|
| |
| virtual void | format (const Window *ref_wnd, const Sizef &area_size)=0 |
| |
|
virtual void | draw (const Window *ref_wnd, GeometryBuffer &buffer, const Vector2f &position, const ColourRect *mod_colours, const Rectf *clip_rect) const =0 |
| |
|
virtual size_t | getFormattedLineCount () const =0 |
| |
|
virtual float | getHorizontalExtent (const Window *ref_wnd) const =0 |
| |
|
virtual float | getVerticalExtent (const Window *ref_wnd) const =0 |
| |
|
void | setRenderedString (const RenderedString &string) |
| | set the RenderedString.
|
| |
|
const RenderedString & | getRenderedString () const |
| |
|
|
std::vector< float CEGUI_VECTOR_ALLOC(float)> | d_offsets |
| |
|
const RenderedString * | d_renderedString |
| | RenderedString that we handle formatting for.
|
| |
FormattedRenderedString implementation that renders the RenderedString with centred formatting.
◆ draw()
◆ format()
| void CEGUI::CentredRenderedString::format |
( |
const Window * |
ref_wnd, |
|
|
const Sizef & |
area_size |
|
) |
| |
|
virtual |
◆ getFormattedLineCount()
| size_t CEGUI::CentredRenderedString::getFormattedLineCount |
( |
| ) |
const |
|
virtual |
◆ getHorizontalExtent()
| float CEGUI::CentredRenderedString::getHorizontalExtent |
( |
const Window * |
ref_wnd | ) |
const |
|
virtual |
◆ getVerticalExtent()
| float CEGUI::CentredRenderedString::getVerticalExtent |
( |
const Window * |
ref_wnd | ) |
const |
|
virtual |