JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::CodeDocument::Listener Class Referenceabstract

An object that receives callbacks from the CodeDocument when its text changes. More...

#include <juce_CodeDocument.h>

Public Member Functions

 Listener ()
 
virtual ~Listener ()
 
virtual void codeDocumentTextDeleted (int startIndex, int endIndex)=0
 Called by a CodeDocument when text is deleted. More...
 
virtual void codeDocumentTextInserted (const String &newText, int insertIndex)=0
 Called by a CodeDocument when text is added. More...
 

Detailed Description

An object that receives callbacks from the CodeDocument when its text changes.

See also
CodeDocument::addListener, CodeDocument::removeListener

Constructor & Destructor Documentation

◆ Listener()

juce::CodeDocument::Listener::Listener ( )
inline

◆ ~Listener()

virtual juce::CodeDocument::Listener::~Listener ( )
inlinevirtual

Member Function Documentation

◆ codeDocumentTextDeleted()

virtual void juce::CodeDocument::Listener::codeDocumentTextDeleted ( int  startIndex,
int  endIndex 
)
pure virtual

Called by a CodeDocument when text is deleted.

◆ codeDocumentTextInserted()

virtual void juce::CodeDocument::Listener::codeDocumentTextInserted ( const String newText,
int  insertIndex 
)
pure virtual

Called by a CodeDocument when text is added.


The documentation for this class was generated from the following file: