hex-edit.hpp 566 B

1234567891011121314151617181920212223242526272829
  1. #if defined(Hiro_HexEdit)
  2. @interface CocoaHexEdit : NSScrollView {
  3. @public
  4. hiro::mHexEdit* hexEdit;
  5. }
  6. -(id) initWith:(hiro::mHexEdit&)hexEdit;
  7. @end
  8. namespace hiro {
  9. struct pHexEdit : public pWidget {
  10. Declare(HexEdit, Widget);
  11. auto setAddress(uint address) -> void;
  12. auto setBackgroundColor(Color color) -> void;
  13. auto setColumns(uint columns) -> void;
  14. auto setForegroundColor(Color color) -> void;
  15. auto setLength(uint length) -> void;
  16. auto setRows(uint rows) -> void;
  17. auto update() -> void;
  18. CocoaHexEdit* cocoaHexEdit = nullptr;
  19. };
  20. }
  21. #endif