vfs: check userland buffers before reading them.
[haiku.git] / src / apps / debugger / user_interface / gui / value / TableCellFormattedValueRenderer.h
blobf2063345c356b4b4b8c4e9a84d91d7418ac14116
1 /*
2 * Copyright 2014-2015, 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_FORMATTED_VALUE_RENDERER_H
7 #define TABLE_CELL_FORMATTED_VALUE_RENDERER_H
10 #include "TableCellValueRenderer.h"
13 class ValueFormatter;
16 class TableCellFormattedValueRenderer : public TableCellValueRenderer {
17 public:
18 TableCellFormattedValueRenderer(
19 ValueFormatter* formatter);
20 virtual ~TableCellFormattedValueRenderer();
22 virtual Settings* GetSettings() const;
24 ValueFormatter* GetValueFormatter() const
25 { return fValueFormatter; }
27 virtual void RenderValue(Value* value, bool valueChanged,
28 BRect rect, BView* targetView);
29 virtual float PreferredValueWidth(Value* value,
30 BView* targetView);
33 private:
34 ValueFormatter* fValueFormatter;
38 #endif // TABLE_CELL_FORMATTED_VALUE_RENDERER_H