btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / debugger / user_interface / gui / value / TableCellValueRendererUtils.h
blobcd77cf01800a878404c9f79cc0600925f1c0c819
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_UTILS_H
6 #define TABLE_CELL_VALUE_RENDERER_UTILS_H
9 #include <InterfaceDefs.h>
10 #include <Rect.h>
13 class BView;
16 class TableCellValueRendererUtils {
17 public:
18 static void DrawString(BView* view, BRect rect,
19 const char* string,
20 bool valueChanged,
21 enum alignment alignment,
22 bool truncate = false);
23 static float PreferredStringWidth(BView* view,
24 const char* string);
28 #endif // TABLE_CELL_VALUE_RENDERER_UTILS_H