Can be used to save and restore the editor's caret position, selection state, etc.
More...
#include <juce_CodeEditorComponent.h>
Can be used to save and restore the editor's caret position, selection state, etc.
◆ State() [1/3]
Creates an object containing the state of the given editor.
◆ State() [2/3]
CodeEditorComponent::State::State |
( |
const String & |
stringifiedVersion | ) |
|
Creates a state object from a string that was previously created with toString().
◆ State() [3/3]
CodeEditorComponent::State::State |
( |
const State & |
| ) |
|
|
noexcept |
◆ restoreState()
Updates the given editor with this saved state.
◆ toString()
String CodeEditorComponent::State::toString |
( |
| ) |
const |
Returns a stringified version of this state that can be used to recreate it later.
◆ lastCaretPos
int CodeEditorComponent::State::lastCaretPos |
|
private |
◆ lastSelectionEnd
int CodeEditorComponent::State::lastSelectionEnd |
|
private |
◆ lastTopLine
int CodeEditorComponent::State::lastTopLine |
|
private |
The documentation for this struct was generated from the following file: