mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
Introjucer: minor internal changes.
This commit is contained in:
parent
7a1c8f61a5
commit
9e3cd767aa
8 changed files with 21 additions and 3 deletions
|
|
@ -71,7 +71,15 @@ SourceCodeEditor::~SourceCodeEditor()
|
|||
getAppSettings().appearance.settings.removeListener (this);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
void SourceCodeEditor::highlightLine (int lineNum, int characterIndex)
|
||||
{
|
||||
if (lineNum <= editor->getFirstLineOnScreen()
|
||||
|| lineNum >= editor->getFirstLineOnScreen() + editor->getNumLinesOnScreen() - 1)
|
||||
editor->scrollToLine (jmax (lineNum - editor->getNumLinesOnScreen() / 3, 0));
|
||||
|
||||
editor->moveCaretTo (CodeDocument::Position (&editor->getDocument(), lineNum - 1, characterIndex), false);
|
||||
}
|
||||
|
||||
void SourceCodeEditor::resized()
|
||||
{
|
||||
editor->setBounds (getLocalBounds());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue