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:
parent
f0bb1ca635
commit
4c26b1bcb9
2 changed files with 9 additions and 0 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue