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
#include "
cli/tui/tui_component.h
"
6
#include "
app/rom.h
"
7
8
namespace
yaze
{
9
namespace
cli {
10
11
class
HexViewerComponent
:
public
TuiComponent
{
12
public
:
13
explicit
HexViewerComponent
(
Rom
* rom, std::function<
void
()> on_back);
14
ftxui::Component
Render
()
override
;
15
16
private
:
17
Rom
*
rom_
;
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_
yaze::Rom
The Rom class is used to load, save, and modify Rom data.
Definition
rom.h:71
yaze::cli::HexViewerComponent
Definition
hex_viewer.h:11
yaze::cli::HexViewerComponent::lines_to_show_
const int lines_to_show_
Definition
hex_viewer.h:20
yaze::cli::HexViewerComponent::rom_
Rom * rom_
Definition
hex_viewer.h:17
yaze::cli::HexViewerComponent::on_back_
std::function< void()> on_back_
Definition
hex_viewer.h:18
yaze::cli::HexViewerComponent::component_
ftxui::Component component_
Definition
hex_viewer.h:22
yaze::cli::HexViewerComponent::Render
ftxui::Component Render() override
Definition
hex_viewer.cc:15
yaze::cli::HexViewerComponent::offset_
int offset_
Definition
hex_viewer.h:19
yaze::cli::TuiComponent
Definition
tui_component.h:9
yaze
Main namespace for the application.
Definition
asar_wrapper.cc:14
rom.h
tui_component.h
src
cli
tui
hex_viewer.h
Generated by
1.9.8