ScummVM API documentation
MemoryEditor Struct Reference

Classes

struct  Sizes
 

Public Types

enum  DataFormat { DataFormat_Bin = 0, DataFormat_Dec = 1, DataFormat_Hex = 2, DataFormat_COUNT }
 

Public Member Functions

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 * EndiannessCopy (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 * EndiannessCopyBigEndian (void *_dst, void *_src, size_t s, int is_little_endian)
 
static void * EndiannessCopyLittleEndian (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 PreviewEndianness
 
ImGuiDataType PreviewDataType
 

The documentation for this struct was generated from the following file: