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
"
7
#include "
cli/tui/tui_component.h
"
8
9
namespace
yaze
{
10
namespace
cli {
11
12
class
HexViewerComponent
:
public
TuiComponent
{
13
public
:
14
explicit
HexViewerComponent
(
Rom
* rom, std::function<
void
()> on_back);
15
ftxui::Component
Render
()
override
;
16
17
private
:
18
Rom
*
rom_
;
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_
yaze::Rom
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
yaze::cli::HexViewerComponent
Definition
hex_viewer.h:12
yaze::cli::HexViewerComponent::HexViewerComponent
HexViewerComponent(Rom *rom, std::function< void()> on_back)
Definition
hex_viewer.cc:13
yaze::cli::HexViewerComponent::lines_to_show_
const int lines_to_show_
Definition
hex_viewer.h:21
yaze::cli::HexViewerComponent::rom_
Rom * rom_
Definition
hex_viewer.h:18
yaze::cli::HexViewerComponent::on_back_
std::function< void()> on_back_
Definition
hex_viewer.h:19
yaze::cli::HexViewerComponent::component_
ftxui::Component component_
Definition
hex_viewer.h:23
yaze::cli::HexViewerComponent::Render
ftxui::Component Render() override
Definition
hex_viewer.cc:16
yaze::cli::HexViewerComponent::offset_
int offset_
Definition
hex_viewer.h:20
yaze::cli::TuiComponent
Definition
tui_component.h:9
yaze
Definition
application.cc:18
rom.h
tui_component.h
src
cli
tui
hex_viewer.h
Generated by
1.10.0