Renderer base class to put text in a cell using the current wimp font.
More...
#include <itemrenderer.h>
Renderer base class to put text in a cell using the current wimp font.
The text is provided by an ItemViewValue<std::string> class.
tbx::view::WimpFontItemRenderer::WimpFontItemRenderer |
( |
ItemViewValue< std::string > * |
vv | ) |
|
|
inline |
Construct with object to give value to render.
- Parameters
-
vv | object that returns a string to render |
virtual unsigned int tbx::view::WimpFontItemRenderer::height |
( |
unsigned int |
index | ) |
const |
|
inlinevirtual |
Render text in black using current wimp font.
Render as cell retrieved as text.
- Parameters
-
info | Information on what to render and where |
Implements tbx::view::ItemRenderer.
Size tbx::view::WimpFontItemRenderer::size |
( |
unsigned int |
index | ) |
const |
|
virtual |
Called to get the size of the cell.
Called to get the size of an item.
- Parameters
-
index | zero based index of item to get the size for |
Implements tbx::view::ItemRenderer.
unsigned int tbx::view::WimpFontItemRenderer::width |
( |
unsigned int |
index | ) |
const |
|
virtual |
Used to measure the width of a column.
- Parameters
-
index | zero based index of item to get the width for |
Implements tbx::view::ItemRenderer.
The documentation for this class was generated from the following files: