xref: /haiku/src/apps/debugger/user_interface/gui/value/TableCellValueRendererUtils.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
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
7 
8 
9 #include <InterfaceDefs.h>
10 #include <Rect.h>
11 
12 
13 class BView;
14 
15 
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);
25 };
26 
27 
28 #endif	// TABLE_CELL_VALUE_RENDERER_UTILS_H
29