bgfx/3rdparty/dear-imgui/widgets/memory_editor.h

28 lines
711 B
C
Raw Normal View History

2016-05-28 22:12:59 +03:00
namespace ImGui
{
struct MemoryEditor
{
bool AllowEdits;
bool HexII;
int Rows;
int DataEditingAddr;
bool DataEditingTakeFocus;
char DataInput[32];
char AddrInput[32];
MemoryEditor()
{
AllowEdits = true;
HexII = true;
Rows = 16;
DataEditingAddr = -1;
DataEditingTakeFocus = false;
strcpy(DataInput, "");
strcpy(AddrInput, "");
}
2016-05-31 20:51:55 +03:00
void Draw(void* mem_data, int mem_size, int base_display_addr = 0);
void Draw(const void* mem_data, int mem_size, int base_display_addr = 0);
2016-05-28 22:12:59 +03:00
};
} // namespace ImGui