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>
6#include "app/rom.h"
7
8namespace yaze {
9namespace cli {
10
12 public:
13 explicit HexViewerComponent(Rom* rom, std::function<void()> on_back);
14 ftxui::Component Render() override;
15
16 private:
18 std::function<void()> on_back_;
19 int offset_ = 0;
20 const int lines_to_show_ = 20;
21
22 ftxui::Component component_ = nullptr;
23};
24
25} // namespace cli
26} // namespace yaze
27
28#endif // YAZE_SRC_CLI_TUI_HEX_VIEWER_H_
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:71
std::function< void()> on_back_
Definition hex_viewer.h:18
ftxui::Component component_
Definition hex_viewer.h:22
ftxui::Component Render() override
Definition hex_viewer.cc:15
Main namespace for the application.