JUCE
|
Can be used to save and restore the editor's caret position, selection state, etc. More...
Public Member Functions | |
State (const CodeEditorComponent &) | |
Creates an object containing the state of the given editor. More... | |
State (const String &stringifiedVersion) | |
Creates a state object from a string that was previously created with toString(). More... | |
State (const State &) noexcept | |
void | restoreState (CodeEditorComponent &) const |
Updates the given editor with this saved state. More... | |
String | toString () const |
Returns a stringified version of this state that can be used to recreate it later. More... | |
Can be used to save and restore the editor's caret position, selection state, etc.
CodeEditorComponent::State::State | ( | const CodeEditorComponent & | ) |
Creates an object containing the state of the given editor.
CodeEditorComponent::State::State | ( | const String & | stringifiedVersion | ) |
Creates a state object from a string that was previously created with toString().
|
noexcept |
void CodeEditorComponent::State::restoreState | ( | CodeEditorComponent & | ) | const |
Updates the given editor with this saved state.
String CodeEditorComponent::State::toString | ( | ) | const |
Returns a stringified version of this state that can be used to recreate it later.