xref: /haiku/src/apps/debugger/user_interface/gui/value/TableCellValueRenderer.h (revision cbe0a0c436162d78cc3f92a305b64918c839d079)
1 /*
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.
5  */
6 #ifndef TABLE_CELL_VALUE_RENDERER_H
7 #define TABLE_CELL_VALUE_RENDERER_H
8 
9 
10 #include <Rect.h>
11 
12 #include <Referenceable.h>
13 
14 
15 class BView;
16 class Settings;
17 class Value;
18 
19 
20 class TableCellValueRenderer : public BReferenceable {
21 public:
22 	virtual						~TableCellValueRenderer();
23 
24 	virtual	Settings*			GetSettings() const;
25 									// returns NULL, if no settings
26 
27 	virtual	void				RenderValue(Value* value, bool valueChanged,
28 									BRect rect, BView* targetView) = 0;
29 	virtual	float				PreferredValueWidth(Value* value,
30 									BView* targetView) = 0;
31 };
32 
33 
34 #endif	// TABLE_CELL_VALUE_RENDERER_H
35