yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
hex_viewer.h
Go to the documentation of this file.
1#ifndef YAZE_SRC_CLI_TUI_HEX_VIEWER_H_
2#define YAZE_SRC_CLI_TUI_HEX_VIEWER_H_
3
4#include <functional>
5
6#include "rom/rom.h"
8
9namespace yaze {
10namespace cli {
11
13 public:
14 explicit HexViewerComponent(Rom* rom, std::function<void()> on_back);
15 ftxui::Component Render() override;
16
17 private:
19 std::function<void()> on_back_;
20 int offset_ = 0;
21 const int lines_to_show_ = 20;
22
23 ftxui::Component component_ = nullptr;
24};
25
26} // namespace cli
27} // namespace yaze
28
29#endif // YAZE_SRC_CLI_TUI_HEX_VIEWER_H_
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Definition rom.h:24
HexViewerComponent(Rom *rom, std::function< void()> on_back)
Definition hex_viewer.cc:13
std::function< void()> on_back_
Definition hex_viewer.h:19
ftxui::Component component_
Definition hex_viewer.h:23
ftxui::Component Render() override
Definition hex_viewer.cc:16