ImHex/include/views/highlight.hpp

25 lines
469 B
C++
Raw Normal View History

2020-11-10 20:31:04 +00:00
#pragma once
#include <hex.hpp>
#include <string>
namespace hex {
struct VariableType {
size_t size;
enum class Kind { Unsigned, Signed, FloatingPoint } kind;
};
2020-11-10 20:31:04 +00:00
struct Highlight {
Highlight(u64 offset, VariableType type, u32 color, std::string name)
: offset(offset), type(type), color(color), name(name) {
2020-11-10 20:31:04 +00:00
}
u64 offset;
VariableType type;
2020-11-10 20:31:04 +00:00
u32 color;
std::string name;
};
}