LMMS
Loading...
Searching...
No Matches
juce::CodeEditorComponent::Pimpl Class Reference
Inheritance diagram for juce::CodeEditorComponent::Pimpl:
juce::Timer juce::AsyncUpdater juce::ScrollBar::Listener juce::CodeDocument::Listener

Public Member Functions

 Pimpl (CodeEditorComponent &ed)
Public Member Functions inherited from juce::Timer
virtual ~Timer ()
void startTimer (int intervalInMilliseconds) noexcept
void startTimerHz (int timerFrequencyHz) noexcept
void stopTimer () noexcept
bool isTimerRunning () const noexcept
int getTimerInterval () const noexcept
Public Member Functions inherited from juce::AsyncUpdater
 AsyncUpdater ()
virtual ~AsyncUpdater ()
void triggerAsyncUpdate ()
void cancelPendingUpdate () noexcept
void handleUpdateNowIfNeeded ()
bool isUpdatePending () const noexcept
Public Member Functions inherited from juce::ScrollBar::Listener
virtual ~Listener ()=default
Public Member Functions inherited from juce::CodeDocument::Listener
 Listener ()=default
virtual ~Listener ()=default

Private Member Functions

void timerCallback () override
void handleAsyncUpdate () override
void scrollBarMoved (ScrollBar *scrollBarThatHasMoved, double newRangeStart) override
void codeDocumentTextInserted (const String &newText, int pos) override
void codeDocumentTextDeleted (int start, int end) override

Private Attributes

CodeEditorComponentowner

Additional Inherited Members

Static Public Member Functions inherited from juce::Timer
static void JUCE_CALLTYPE callAfterDelay (int milliseconds, std::function< void()> functionToCall)
static void JUCE_CALLTYPE callPendingTimersSynchronously ()
Protected Member Functions inherited from juce::Timer
 Timer () noexcept
 Timer (const Timer &) noexcept

Constructor & Destructor Documentation

◆ Pimpl()

juce::CodeEditorComponent::Pimpl::Pimpl ( CodeEditorComponent & ed)
inline

Member Function Documentation

◆ codeDocumentTextDeleted()

void juce::CodeEditorComponent::Pimpl::codeDocumentTextDeleted ( int startIndex,
int endIndex )
inlineoverrideprivatevirtual

Called by a CodeDocument when text is deleted.

Implements juce::CodeDocument::Listener.

◆ codeDocumentTextInserted()

void juce::CodeEditorComponent::Pimpl::codeDocumentTextInserted ( const String & newText,
int insertIndex )
inlineoverrideprivatevirtual

Called by a CodeDocument when text is added.

Implements juce::CodeDocument::Listener.

◆ handleAsyncUpdate()

void juce::CodeEditorComponent::Pimpl::handleAsyncUpdate ( )
inlineoverrideprivatevirtual

Called back to do whatever your class needs to do.

This method is called by the message thread at the next convenient time after the triggerAsyncUpdate() method has been called.

Implements juce::AsyncUpdater.

◆ scrollBarMoved()

void juce::CodeEditorComponent::Pimpl::scrollBarMoved ( ScrollBar * scrollBarThatHasMoved,
double newRangeStart )
inlineoverrideprivatevirtual

Called when a ScrollBar is moved.

Parameters
scrollBarThatHasMovedthe bar that has moved
newRangeStartthe new range start of this bar

Implements juce::ScrollBar::Listener.

◆ timerCallback()

void juce::CodeEditorComponent::Pimpl::timerCallback ( )
inlineoverrideprivatevirtual

The user-defined callback routine that actually gets called periodically.

It's perfectly ok to call startTimer() or stopTimer() from within this callback to change the subsequent intervals.

Implements juce::Timer.

Member Data Documentation

◆ owner

CodeEditorComponent& juce::CodeEditorComponent::Pimpl::owner
private

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