table-view.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #if defined(Hiro_TableView)
  2. namespace hiro {
  3. struct pTableView : pWidget {
  4. Declare(TableView, Widget)
  5. auto append(sTableViewColumn column) -> void;
  6. auto append(sTableViewItem item) -> void;
  7. auto remove(sTableViewColumn column) -> void;
  8. auto remove(sTableViewItem item) -> void;
  9. auto resizeColumns() -> void;
  10. auto setAlignment(Alignment alignment) -> void;
  11. auto setBackgroundColor(Color color) -> void;
  12. auto setBatchable(bool batchable) -> void;
  13. auto setBordered(bool bordered) -> void;
  14. auto setForegroundColor(Color color) -> void;
  15. auto setGeometry(Geometry geometry) -> void override;
  16. auto setHeadered(bool headered) -> void;
  17. auto setSortable(bool sortable) -> void;
  18. auto onActivate(LPARAM lparam) -> void;
  19. auto onChange(LPARAM lparam) -> void;
  20. auto onContext(LPARAM lparam) -> void;
  21. auto onCustomDraw(LPARAM lparam) -> LRESULT;
  22. auto onSort(LPARAM lparam) -> void;
  23. auto onToggle(LPARAM lparam) -> void;
  24. auto windowProc(HWND, UINT, WPARAM, LPARAM) -> maybe<LRESULT> override;
  25. auto _backgroundColor(unsigned row, unsigned column) -> Color;
  26. auto _cellWidth(unsigned row, unsigned column) -> unsigned;
  27. auto _columnWidth(unsigned column) -> unsigned;
  28. auto _font(unsigned row, unsigned column) -> Font;
  29. auto _foregroundColor(unsigned row, unsigned column) -> Color;
  30. auto _setIcons() -> void;
  31. auto _width(unsigned column) -> unsigned;
  32. TableViewCell activateCell;
  33. HIMAGELIST imageList = 0;
  34. vector<image> icons;
  35. };
  36. }
  37. #endif