JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::CodeEditorComponent::State Struct Reference

Can be used to save and restore the editor's caret position, selection state, etc. More...

#include "juce_CodeEditorComponent.h"

Public Member Functions

 State (const CodeEditorComponent &)
 Creates an object containing the state of the given editor.
 
 State (const String &stringifiedVersion)
 Creates a state object from a string that was previously created with toString().
 
 State (const State &) noexcept
 
void restoreState (CodeEditorComponent &) const
 Updates the given editor with this saved state.
 
String toString () const
 Returns a stringified version of this state that can be used to recreate it later.
 

Detailed Description

Can be used to save and restore the editor's caret position, selection state, etc.

Definition at line 190 of file juce_CodeEditorComponent.h.

Constructor & Destructor Documentation

◆ State() [1/3]

juce::CodeEditorComponent::State::State ( const CodeEditorComponent editor)

Creates an object containing the state of the given editor.

Definition at line 1799 of file juce_CodeEditorComponent.cpp.

◆ State() [2/3]

juce::CodeEditorComponent::State::State ( const String stringifiedVersion)

Creates a state object from a string that was previously created with toString().

Definition at line 1828 of file juce_CodeEditorComponent.cpp.

◆ State() [3/3]

juce::CodeEditorComponent::State::State ( const State other)
noexcept

Definition at line 1812 of file juce_CodeEditorComponent.cpp.

Member Function Documentation

◆ restoreState()

void juce::CodeEditorComponent::State::restoreState ( CodeEditorComponent editor) const

Updates the given editor with this saved state.

Definition at line 1819 of file juce_CodeEditorComponent.cpp.

◆ toString()

String juce::CodeEditorComponent::State::toString ( ) const

Returns a stringified version of this state that can be used to recreate it later.

Definition at line 1837 of file juce_CodeEditorComponent.cpp.


The documentation for this struct was generated from the following files: