Debian Codegraph @

hiro/cocoa/widget/hex-edit.hpp

raw
1 #if defined(Hiro_HexEdit)
2
3 @interface CocoaHexEdit : NSScrollView <NSTableViewDataSource> {
4 // Not an NSTableViewDelegate because the table is cell-based, not view-based
5 @public
6 hiro::mHexEdit* hexEdit; // this will be the data source for tableView.
7 NSTableView* tableView;
8 }
9 -(id) initWith:(hiro::mHexEdit&)hexEdit;
10 -(NSTableView*) tableView; // helper function used in update()
11 -(hiro::mHexEdit*) hexEdit;
12 @end
13
14 namespace hiro {
15
16 struct pHexEdit : public pWidget {
17 Declare(HexEdit, Widget);
18
19 auto setAddress(u32 address) -> void;
20 auto setBackgroundColor(Color color) -> void;
21 auto setColumns(u32 columns) -> void;
22 auto setForegroundColor(Color color) -> void;
23 auto setLength(u32 length) -> void;
24 auto setRows(u32 rows) -> void;
25 auto update() -> void;
26
27 CocoaHexEdit* cocoaHexEdit = nullptr;
28 };
29
30 }
31
32 #endif