1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Added a method CodeEditorComponent::editorViewportPositionChanged

This commit is contained in:
jules 2015-09-01 12:28:36 +01:00
parent f0bb1ca635
commit 4c26b1bcb9
2 changed files with 9 additions and 0 deletions

View file

@ -679,6 +679,8 @@ void CodeEditorComponent::scrollToLineInternal (int newFirstLineOnScreen)
updateCachedIterators (firstLineOnScreen);
rebuildLineTokensAsync();
pimpl->handleUpdateNowIfNeeded();
editorViewportPositionChanged();
}
}
@ -1229,6 +1231,10 @@ void CodeEditorComponent::handleEscapeKey()
newTransaction();
}
void CodeEditorComponent::editorViewportPositionChanged()
{
}
//==============================================================================
ApplicationCommandTarget* CodeEditorComponent::getNextCommandTarget()
{

View file

@ -278,6 +278,9 @@ public:
/** Called when the escape key is pressed - this can be overridden for custom behaviour. */
virtual void handleEscapeKey();
/** Called when the view position is scrolled horizontally or vertically. */
virtual void editorViewportPositionChanged();
//==============================================================================
/** This adds the items to the popup menu.