2 * Copyright 2013, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
9 #include <InterfaceDefs.h>
10 #include <ObjectList.h>
11 #include <StringList.h>
22 int32
CountColumns() const;
23 void AddColumn(const BString
& title
,
24 enum alignment align
= B_ALIGN_LEFT
,
25 bool canTruncate
= false);
27 int32
CountRows() const;
28 BString
TextAt(int32 rowIndex
, int32 columnIndex
) const;
29 void SetTextAt(int32 rowIndex
, int32 columnIndex
,
32 void Print(int32 maxWidth
);
36 typedef BObjectList
<Column
> ColumnList
;
37 typedef BObjectList
<BStringList
> RowList
;
45 } // namespace BPrivate
48 using ::BPrivate::TextTable
;
51 #endif // TEXT_TABLE_H