@ -428,9 +428,10 @@ struct ImGuiSettingsHandler
{
{
const char * TypeName ; // Short description stored in .ini file. Disallowed characters: '[' ']'
const char * TypeName ; // Short description stored in .ini file. Disallowed characters: '[' ']'
ImGuiID TypeHash ; // == ImHash(TypeName, 0, 0)
ImGuiID TypeHash ; // == ImHash(TypeName, 0, 0)
void * ( * ReadOpenFn ) ( ImGuiContext * ctx , ImGuiSettingsHandler * handler , const char * name ) ;
void * ( * ReadOpenFn ) ( ImGuiContext * ctx , ImGuiSettingsHandler * handler , const char * name ) ; // Read: Called when entering into a new ini entry e.g. "[Window][Name]"
void ( * ReadLineFn ) ( ImGuiContext * ctx , ImGuiSettingsHandler * handler , void * entry , const char * line ) ;
void ( * ReadCloseFn ) ( ImGuiContext * ctx , ImGuiSettingsHandler * handler , void * entry ) ; // Read: Called when closing an existing entry, so code can validate overall data. [Optional]
void ( * WriteAllFn ) ( ImGuiContext * ctx , ImGuiSettingsHandler * handler , ImGuiTextBuffer * out_buf ) ;
void ( * ReadLineFn ) ( ImGuiContext * ctx , ImGuiSettingsHandler * handler , void * entry , const char * line ) ; // Read: Called for every line of text within an ini entry
void ( * WriteAllFn ) ( ImGuiContext * ctx , ImGuiSettingsHandler * handler , ImGuiTextBuffer * out_buf ) ; // Write: Output every entries into 'out_buf'
void * UserData ;
void * UserData ;
ImGuiSettingsHandler ( ) { memset ( this , 0 , sizeof ( * this ) ) ; }
ImGuiSettingsHandler ( ) { memset ( this , 0 , sizeof ( * this ) ) ; }