hex-edit.hpp 724 B

123456789101112131415161718192021222324252627282930
  1. #if defined(Hiro_HexEdit)
  2. namespace hiro {
  3. struct pHexEdit : pWidget {
  4. Declare(HexEdit, Widget)
  5. auto setAddress(unsigned address) -> void;
  6. auto setBackgroundColor(Color color) -> void;
  7. auto setColumns(unsigned columns) -> void;
  8. auto setForegroundColor(Color color) -> void;
  9. auto setLength(unsigned length) -> void;
  10. auto setRows(unsigned rows) -> void;
  11. auto update() -> void;
  12. auto keyPress(unsigned key) -> bool;
  13. auto rows() -> signed;
  14. auto rowsScrollable() -> signed;
  15. auto scrollPosition() -> signed;
  16. auto scrollTo(signed position) -> void;
  17. auto windowProc(HWND, UINT, WPARAM, LPARAM) -> maybe<LRESULT> override;
  18. HWND scrollBar = nullptr;
  19. HBRUSH backgroundBrush = nullptr;
  20. };
  21. }
  22. #endif