#include <imgui_memory_editor.h>
Classes | |
| struct | Sizes |
Public Types | |
| enum | DataFormat { DataFormat_Bin = 0 , DataFormat_Dec = 1 , DataFormat_Hex = 2 , DataFormat_COUNT } |
Public Member Functions | |
| void | SetComparisonData (void *data) |
| MemoryEditorWidget () | |
| void | GotoAddrAndHighlight (size_t addr_min, size_t addr_max) |
| void | CalcSizes (Sizes &s, size_t mem_size, size_t base_display_addr) |
| void | DrawWindow (const char *title, void *mem_data, size_t mem_size, size_t base_display_addr=0x0000) |
| void | DrawContents (void *mem_data_void, size_t mem_size, size_t base_display_addr=0x0000) |
| void | DrawOptionsLine (const Sizes &s, void *mem_data, size_t mem_size, size_t base_display_addr) |
| void | DrawPreviewLine (const Sizes &s, void *mem_data_void, size_t mem_size, size_t base_display_addr) |
| const char * | DataTypeGetDesc (ImGuiDataType data_type) const |
| size_t | DataTypeGetSize (ImGuiDataType data_type) const |
| const char * | DataFormatGetDesc (DataFormat data_format) const |
| bool | IsBigEndian () const |
| void * | EndianessCopy (void *dst, void *src, size_t size) const |
| const char * | FormatBinary (const uint8_t *buf, int width) const |
| void | DrawPreviewData (size_t addr, const ImU8 *mem_data, size_t mem_size, ImGuiDataType data_type, DataFormat data_format, char *out_buf, size_t out_buf_size) const |
Static Public Member Functions | |
| static void * | EndianessCopyBigEndian (void *_dst, void *_src, size_t s, int is_little_endian) |
| static void * | EndianessCopyLittleEndian (void *_dst, void *_src, size_t s, int is_little_endian) |
Public Attributes | |
| bool | Open |
| bool | ReadOnly |
| int | Cols |
| bool | OptShowOptions |
| bool | OptShowDataPreview |
| bool | OptShowHexII |
| bool | OptShowAscii |
| bool | OptGreyOutZeroes |
| bool | OptUpperCaseHex |
| int | OptMidColsCount |
| int | OptAddrDigitsCount |
| float | OptFooterExtraHeight |
| ImU32 | HighlightColor |
| ImU8(* | ReadFn )(const ImU8 *data, size_t off) |
| void(* | WriteFn )(ImU8 *data, size_t off, ImU8 d) |
| bool(* | HighlightFn )(const ImU8 *data, size_t off) |
| bool | ContentsWidthChanged |
| size_t | DataPreviewAddr |
| size_t | DataEditingAddr |
| bool | DataEditingTakeFocus |
| char | DataInputBuf [32] |
| char | AddrInputBuf [32] |
| size_t | GotoAddr |
| size_t | HighlightMin |
| size_t | HighlightMax |
| int | PreviewEndianess |
| ImGuiDataType | PreviewDataType |
| ImU8 * | ComparisonData |
Definition at line 25 of file imgui_memory_editor.h.
| Enumerator | |
|---|---|
| DataFormat_Bin | |
| DataFormat_Dec | |
| DataFormat_Hex | |
| DataFormat_COUNT | |
Definition at line 26 of file imgui_memory_editor.h.
|
inline |
Definition at line 87 of file imgui_memory_editor.h.
References AddrInputBuf, Cols, ContentsWidthChanged, DataEditingAddr, DataEditingTakeFocus, DataInputBuf, DataPreviewAddr, GotoAddr, HighlightColor, HighlightFn, HighlightMax, HighlightMin, Open, OptAddrDigitsCount, OptFooterExtraHeight, OptGreyOutZeroes, OptMidColsCount, OptShowAscii, OptShowDataPreview, OptShowHexII, OptShowOptions, OptUpperCaseHex, PreviewDataType, PreviewEndianess, ReadFn, ReadOnly, and WriteFn.
|
inline |
Definition at line 85 of file imgui_memory_editor.h.
References ComparisonData.
Referenced by yaze::editor::MemoryEditor::Update().
|
inline |
Definition at line 118 of file imgui_memory_editor.h.
References GotoAddr, HighlightMax, and HighlightMin.
Referenced by yaze::editor::MemoryEditor::DrawBookmarksPopup(), and yaze::editor::MemoryEditor::DrawJumpToAddressPopup().
|
inline |
Definition at line 139 of file imgui_memory_editor.h.
References yaze::gui::MemoryEditorWidget::Sizes::AddrDigitsCount, Cols, yaze::gui::MemoryEditorWidget::Sizes::GlyphWidth, yaze::gui::MemoryEditorWidget::Sizes::HexCellWidth, yaze::gui::MemoryEditorWidget::Sizes::LineHeight, OptAddrDigitsCount, OptMidColsCount, OptShowAscii, yaze::gui::MemoryEditorWidget::Sizes::PosAsciiEnd, yaze::gui::MemoryEditorWidget::Sizes::PosAsciiStart, yaze::gui::MemoryEditorWidget::Sizes::PosHexEnd, yaze::gui::MemoryEditorWidget::Sizes::PosHexStart, yaze::gui::MemoryEditorWidget::Sizes::SpacingBetweenMidCols, and yaze::gui::MemoryEditorWidget::Sizes::WindowWidth.
Referenced by DrawContents(), and DrawWindow().
|
inline |
Definition at line 171 of file imgui_memory_editor.h.
References CalcSizes(), ContentsWidthChanged, DrawContents(), Open, and yaze::gui::MemoryEditorWidget::Sizes::WindowWidth.
Referenced by yaze::editor::GraphicsEditor::DrawMemoryEditor().

|
inline |
Definition at line 195 of file imgui_memory_editor.h.
References _PRISizeT, yaze::gui::MemoryEditorWidget::Sizes::AddrDigitsCount, AddrInputBuf, CalcSizes(), Cols, ComparisonData, DataEditingAddr, DataEditingTakeFocus, DataInputBuf, DataPreviewAddr, DataTypeGetSize(), DrawOptionsLine(), DrawPreviewLine(), yaze::gui::MemoryEditorWidget::Sizes::GlyphWidth, yaze::gui::MemoryEditorWidget::Sizes::HexCellWidth, HighlightColor, HighlightFn, HighlightMax, HighlightMin, yaze::gui::MemoryEditorWidget::Sizes::LineHeight, OptFooterExtraHeight, OptGreyOutZeroes, OptMidColsCount, OptShowAscii, OptShowDataPreview, OptShowHexII, OptShowOptions, OptUpperCaseHex, yaze::gui::MemoryEditorWidget::Sizes::PosAsciiEnd, yaze::gui::MemoryEditorWidget::Sizes::PosAsciiStart, yaze::gui::MemoryEditorWidget::Sizes::PosHexStart, PreviewDataType, ReadFn, ReadOnly, yaze::gui::MemoryEditorWidget::Sizes::SpacingBetweenMidCols, yaze::gui::MemoryEditorWidget::Sizes::WindowWidth, and WriteFn.
Referenced by DrawWindow(), yaze::gui::MemoryEditorPopup(), yaze::emu::ui::RenderMemoryViewer(), and yaze::editor::MemoryEditor::Update().

|
inline |
Definition at line 508 of file imgui_memory_editor.h.
References _PRISizeT, yaze::gui::MemoryEditorWidget::Sizes::AddrDigitsCount, AddrInputBuf, Cols, ContentsWidthChanged, DataEditingAddr, DataEditingTakeFocus, DataPreviewAddr, yaze::gui::MemoryEditorWidget::Sizes::GlyphWidth, GotoAddr, HighlightMax, HighlightMin, ICON_MD_ABC, ICON_MD_FORMAT_COLOR_RESET, ICON_MD_HEXAGON, ICON_MD_KEYBOARD_CAPSLOCK, ICON_MD_LOCATION_ON, ICON_MD_PREVIEW, ICON_MD_SETTINGS, ICON_MD_VIEW_COLUMN, ICON_MD_ZOOM_OUT_MAP, OptGreyOutZeroes, OptShowAscii, OptShowDataPreview, OptShowHexII, and OptUpperCaseHex.
Referenced by DrawContents().
|
inline |
Definition at line 571 of file imgui_memory_editor.h.
References DataFormat_Bin, DataFormat_Dec, DataFormat_Hex, DataPreviewAddr, DataTypeGetDesc(), DrawPreviewData(), yaze::gui::MemoryEditorWidget::Sizes::GlyphWidth, ICON_MD_DATA_ARRAY, ICON_MD_HEXAGON, ICON_MD_NUMBERS, ICON_MD_SEARCH, PreviewDataType, and PreviewEndianess.
Referenced by DrawContents().

|
inline |
Definition at line 621 of file imgui_memory_editor.h.
Referenced by DrawPreviewLine().
|
inline |
Definition at line 628 of file imgui_memory_editor.h.
Referenced by DrawContents(), and DrawPreviewData().
|
inline |
Definition at line 635 of file imgui_memory_editor.h.
References DataFormat_COUNT.
|
inline |
Definition at line 641 of file imgui_memory_editor.h.
Referenced by EndianessCopy().
|
inlinestatic |
Definition at line 648 of file imgui_memory_editor.h.
Referenced by EndianessCopy().
|
inlinestatic |
Definition at line 661 of file imgui_memory_editor.h.
Referenced by EndianessCopy().
|
inline |
Definition at line 674 of file imgui_memory_editor.h.
References EndianessCopyBigEndian(), EndianessCopyLittleEndian(), IsBigEndian(), and PreviewEndianess.
Referenced by DrawPreviewData().

|
inline |
Definition at line 681 of file imgui_memory_editor.h.
Referenced by DrawPreviewData().
|
inline |
Definition at line 697 of file imgui_memory_editor.h.
References DataFormat_Bin, DataFormat_Dec, DataFormat_Hex, DataTypeGetSize(), EndianessCopy(), FormatBinary(), ImSnprintf, and ReadFn.
Referenced by DrawPreviewLine().

| bool yaze::gui::MemoryEditorWidget::Open |
Definition at line 34 of file imgui_memory_editor.h.
Referenced by DrawWindow(), and MemoryEditorWidget().
| bool yaze::gui::MemoryEditorWidget::ReadOnly |
Definition at line 36 of file imgui_memory_editor.h.
Referenced by DrawContents(), and MemoryEditorWidget().
| int yaze::gui::MemoryEditorWidget::Cols |
Definition at line 37 of file imgui_memory_editor.h.
Referenced by CalcSizes(), DrawContents(), DrawOptionsLine(), and MemoryEditorWidget().
| bool yaze::gui::MemoryEditorWidget::OptShowOptions |
Definition at line 38 of file imgui_memory_editor.h.
Referenced by DrawContents(), and MemoryEditorWidget().
| bool yaze::gui::MemoryEditorWidget::OptShowDataPreview |
Definition at line 41 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawOptionsLine(), and MemoryEditorWidget().
| bool yaze::gui::MemoryEditorWidget::OptShowHexII |
Definition at line 44 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawOptionsLine(), and MemoryEditorWidget().
| bool yaze::gui::MemoryEditorWidget::OptShowAscii |
Definition at line 47 of file imgui_memory_editor.h.
Referenced by CalcSizes(), DrawContents(), DrawOptionsLine(), and MemoryEditorWidget().
| bool yaze::gui::MemoryEditorWidget::OptGreyOutZeroes |
Definition at line 49 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawOptionsLine(), and MemoryEditorWidget().
| bool yaze::gui::MemoryEditorWidget::OptUpperCaseHex |
Definition at line 51 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawOptionsLine(), and MemoryEditorWidget().
| int yaze::gui::MemoryEditorWidget::OptMidColsCount |
Definition at line 53 of file imgui_memory_editor.h.
Referenced by CalcSizes(), DrawContents(), and MemoryEditorWidget().
| int yaze::gui::MemoryEditorWidget::OptAddrDigitsCount |
Definition at line 55 of file imgui_memory_editor.h.
Referenced by CalcSizes(), and MemoryEditorWidget().
| float yaze::gui::MemoryEditorWidget::OptFooterExtraHeight |
Definition at line 58 of file imgui_memory_editor.h.
Referenced by DrawContents(), and MemoryEditorWidget().
| ImU32 yaze::gui::MemoryEditorWidget::HighlightColor |
Definition at line 60 of file imgui_memory_editor.h.
Referenced by DrawContents(), and MemoryEditorWidget().
| ImU8(* yaze::gui::MemoryEditorWidget::ReadFn) (const ImU8 *data, size_t off) |
Definition at line 61 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawPreviewData(), and MemoryEditorWidget().
| void(* yaze::gui::MemoryEditorWidget::WriteFn) (ImU8 *data, size_t off, ImU8 d) |
Definition at line 63 of file imgui_memory_editor.h.
Referenced by DrawContents(), and MemoryEditorWidget().
| bool(* yaze::gui::MemoryEditorWidget::HighlightFn) (const ImU8 *data, size_t off) |
Definition at line 65 of file imgui_memory_editor.h.
Referenced by DrawContents(), and MemoryEditorWidget().
| bool yaze::gui::MemoryEditorWidget::ContentsWidthChanged |
Definition at line 71 of file imgui_memory_editor.h.
Referenced by DrawOptionsLine(), DrawWindow(), and MemoryEditorWidget().
| size_t yaze::gui::MemoryEditorWidget::DataPreviewAddr |
Definition at line 72 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawOptionsLine(), DrawPreviewLine(), and MemoryEditorWidget().
| size_t yaze::gui::MemoryEditorWidget::DataEditingAddr |
Definition at line 73 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawOptionsLine(), and MemoryEditorWidget().
| bool yaze::gui::MemoryEditorWidget::DataEditingTakeFocus |
Definition at line 74 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawOptionsLine(), and MemoryEditorWidget().
| char yaze::gui::MemoryEditorWidget::DataInputBuf[32] |
Definition at line 75 of file imgui_memory_editor.h.
Referenced by DrawContents(), and MemoryEditorWidget().
| char yaze::gui::MemoryEditorWidget::AddrInputBuf[32] |
Definition at line 76 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawOptionsLine(), and MemoryEditorWidget().
| size_t yaze::gui::MemoryEditorWidget::GotoAddr |
Definition at line 77 of file imgui_memory_editor.h.
Referenced by DrawOptionsLine(), GotoAddrAndHighlight(), and MemoryEditorWidget().
| size_t yaze::gui::MemoryEditorWidget::HighlightMin |
Definition at line 78 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawOptionsLine(), GotoAddrAndHighlight(), and MemoryEditorWidget().
| size_t yaze::gui::MemoryEditorWidget::HighlightMax |
Definition at line 78 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawOptionsLine(), GotoAddrAndHighlight(), and MemoryEditorWidget().
| int yaze::gui::MemoryEditorWidget::PreviewEndianess |
Definition at line 79 of file imgui_memory_editor.h.
Referenced by DrawPreviewLine(), EndianessCopy(), and MemoryEditorWidget().
| ImGuiDataType yaze::gui::MemoryEditorWidget::PreviewDataType |
Definition at line 80 of file imgui_memory_editor.h.
Referenced by DrawContents(), DrawPreviewLine(), and MemoryEditorWidget().
| ImU8* yaze::gui::MemoryEditorWidget::ComparisonData |
Definition at line 83 of file imgui_memory_editor.h.
Referenced by DrawContents(), and SetComparisonData().