|
LMMS
|
#include <juce_CodeEditorComponent.h>
Public Member Functions | |
| State (const CodeEditorComponent &) | |
| State (const String &stringifiedVersion) | |
| State (const State &) noexcept | |
| void | restoreState (CodeEditorComponent &) const |
| String | toString () const |
Private Attributes | |
| int | lastTopLine |
| int | lastCaretPos |
| int | lastSelectionEnd |
Can be used to save and restore the editor's caret position, selection state, etc.
| juce::CodeEditorComponent::State::State | ( | const CodeEditorComponent & | editor | ) |
Creates an object containing the state of the given editor.
Creates a state object from a string that was previously created with toString().
| void juce::CodeEditorComponent::State::restoreState | ( | CodeEditorComponent & | editor | ) | const |
Updates the given editor with this saved state.
| String juce::CodeEditorComponent::State::toString | ( | ) | const |
Returns a stringified version of this state that can be used to recreate it later.
|
private |
|
private |
|
private |