- bool Open; // = true // set to false when DrawWindow() was closed. ignore if not using DrawWindow
- bool ReadOnly; // = false // set to true to disable any editing
- int Cols; // = 16 //
- bool OptShowDataPreview; // = false //
- bool OptShowHexII; // = false //
- bool OptShowAscii; // = true //
- bool OptGreyOutZeroes; // = true //
- int OptMidColsCount; // = 8 // set to 0 to disable extra spacing between every mid-cols
- int OptAddrDigitsCount; // = 0 // number of addr digits to display (default calculated based on maximum displayed addr)
- ImU32 HighlightColor; // // color of highlight
- u8 (*ReadFn)(const u8* data, size_t off); // = NULL // optional handler to read bytes
- void (*WriteFn)(u8* data, size_t off, u8 d); // = NULL // optional handler to write bytes
- bool (*HighlightFn)(const u8* data, size_t off);//NULL // optional handler to return Highlight property (to support non-contiguous highlighting)
-
- // State/Internals
+ bool Open; // = true // set to false when DrawWindow() was closed. ignore if not using DrawWindow().
+ bool ReadOnly; // = false // disable any editing.
+ int Cols; // = 16 // number of columns to display.
+ bool OptShowOptions; // = true // display options button/context menu. when disabled, options will be locked unless you provide your own UI for them.
+ bool OptShowDataPreview; // = false // display a footer previewing the decimal/binary/hex/float representation of the currently selected bytes.
+ bool OptShowHexII; // = false // display values in HexII representation instead of regular hexadecimal: hide null/zero bytes, ascii values as ".X".
+ bool OptShowAscii; // = true // display ASCII representation on the right side.
+ bool OptGreyOutZeroes; // = true // display null/zero bytes using the TextDisabled color.
+ bool OptUpperCaseHex; // = true // display hexadecimal values as "FF" instead of "ff".
+ int OptMidColsCount; // = 8 // set to 0 to disable extra spacing between every mid-cols.
+ int OptAddrDigitsCount; // = 0 // number of addr digits to display (default calculated based on maximum displayed addr).
+ ImU32 HighlightColor; // // background color of highlighted bytes.
+ u8 (*ReadFn)(const u8* data, size_t off); // = NULL // optional handler to read bytes.
+ void (*WriteFn)(u8* data, size_t off, u8 d); // = NULL // optional handler to write bytes.
+ bool (*HighlightFn)(const u8* data, size_t off);//NULL // optional handler to return Highlight property (to support non-contiguous highlighting).
+
+ // [Internal State]