Base class for item renderer that work on a specific type and use an ItemViewValue object to return the value to use.
More...
#include <itemrenderer.h>
|
| TypedItemRenderer (ItemViewValue< T > *vp) |
| Construct the item view renderer. More...
|
|
virtual void | render (const ItemRenderer::Info &info)=0 |
| Called to render each item that needs drawing. More...
|
|
virtual unsigned int | width (unsigned int index) const =0 |
| Used to measure the width of a column.
|
|
virtual unsigned int | height (unsigned int index) const =0 |
| Used to measure the height of column.
|
|
virtual Size | size (unsigned int index) const =0 |
| Called to get the size of the item. More...
|
|
virtual bool | hit_test (unsigned int index, const Size &size, const Point &pos) const |
| Check if the point given hits content of the cell rather then a margin or background. More...
|
|
virtual bool | intersects (unsigned int index, const Size &size, const BBox &box) const |
| Check if the given rectangle intersects the content of the cell rather than a margin or background. More...
|
|
template<class T>
class tbx::view::TypedItemRenderer< T >
Base class for item renderer that work on a specific type and use an ItemViewValue object to return the value to use.
Construct the item view renderer.
- Parameters
-
vp | object used to retrieve values to render |
The documentation for this class was generated from the following file: