2 * Copyright 2014, Rene Gollent, rene@gollent.com.
3 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
4 * Distributed under the terms of the MIT License.
6 #ifndef TABLE_CELL_VALUE_RENDERER_H
7 #define TABLE_CELL_VALUE_RENDERER_H
12 #include <Referenceable.h>
20 class TableCellValueRenderer
: public BReferenceable
{
22 virtual ~TableCellValueRenderer();
24 virtual Settings
* GetSettings() const;
25 // returns NULL, if no settings
27 virtual void RenderValue(Value
* value
, bool valueChanged
,
28 BRect rect
, BView
* targetView
) = 0;
29 virtual float PreferredValueWidth(Value
* value
,
30 BView
* targetView
) = 0;
34 #endif // TABLE_CELL_VALUE_RENDERER_H