1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef TABLE_CELL_VALUE_RENDERER_H 6 #define TABLE_CELL_VALUE_RENDERER_H 7 8 9 #include <Rect.h> 10 11 #include <Referenceable.h> 12 13 14 class BView; 15 class Settings; 16 class Value; 17 18 19 class TableCellValueRenderer : public BReferenceable { 20 public: 21 virtual ~TableCellValueRenderer(); 22 23 virtual Settings* GetSettings() const; 24 // returns NULL, if no settings 25 26 virtual void RenderValue(Value* value, BRect rect, 27 BView* targetView) = 0; 28 virtual float PreferredValueWidth(Value* value, 29 BView* targetView) = 0; 30 }; 31 32 33 #endif // TABLE_CELL_VALUE_RENDERER_H 34