| 1 |
#if defined(Hiro_TableView) |
| 2 |
|
| 3 |
namespace hiro { |
| 4 |
|
| 5 |
struct pTableView : pWidget { |
| 6 |
Declare(TableView, Widget) |
| 7 |
|
| 8 |
auto append(sTableViewColumn header) -> void; |
| 9 |
auto append(sTableViewItem item) -> void; |
| 10 |
auto remove(sTableViewColumn header) -> void; |
| 11 |
auto remove(sTableViewItem item) -> void; |
| 12 |
auto resizeColumns() -> void; |
| 13 |
auto setAlignment(Alignment alignment) -> void; |
| 14 |
auto setBackgroundColor(Color color) -> void; |
| 15 |
auto setBatchable(bool batchable) -> void; |
| 16 |
auto setBordered(bool bordered) -> void; |
| 17 |
auto setForegroundColor(Color color) -> void; |
| 18 |
auto setHeadered(bool headered) -> void; |
| 19 |
auto setSortable(bool sortable) -> void; |
| 20 |
|
| 21 |
auto _onSize() -> void; |
| 22 |
auto _width(u32 column) -> u32; |
| 23 |
auto _widthOfColumn(u32 column) -> u32; |
| 24 |
auto _widthOfCell(u32 row, u32 column) -> u32; |
| 25 |
|
| 26 |
QtTableView* qtTableView = nullptr; |
| 27 |
QtTableViewDelegate* qtTableViewDelegate = nullptr; |
| 28 |
}; |
| 29 |
|
| 30 |
} |
| 31 |
|
| 32 |
#endif |