feat: Added hex editor segment separators

This commit is contained in:
WerWolv
2024-11-28 21:26:55 +01:00
parent 71f2f3a5fc
commit 9be9eb90f6
3 changed files with 47 additions and 4 deletions

View File

@@ -96,6 +96,7 @@ namespace hex::ui {
enum class CellType : u8 { None, Hex, ASCII };
void drawCell(u64 address, const u8 *data, size_t size, bool hovered, CellType cellType);
void drawSeparatorLine(u64 address, bool drawVerticalConnector);
void drawSelectionFrame(u32 x, u32 y, Region selection, u64 byteAddress, u16 bytesPerCell, const ImVec2 &cellPos, const ImVec2 &cellSize, const ImColor &backgroundColor) const;
void drawEditor(const ImVec2 &size);
void drawFooter(const ImVec2 &size);
@@ -339,6 +340,7 @@ namespace hex::ui {
std::endian m_dataVisualizerEndianness = std::endian::little;
std::shared_ptr<ContentRegistry::HexEditor::DataVisualizer> m_currDataVisualizer;
char m_unknownDataCharacter = '?';
u64 m_separatorStride = 0;
bool m_shouldJumpToSelection = false;
float m_jumpPivot = 0.0F;