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 enum alignment alignment, 21 bool truncate = false); 22 static float PreferredStringWidth(BView* view, 23 const char* string); 24 }; 25 26 27 #endif // TABLE_CELL_VALUE_RENDERER_UTILS_H 28