mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
parent
9321b2f7a9
commit
7dc5e33d52
4 changed files with 17 additions and 9 deletions
|
|
@ -122,7 +122,7 @@ public:
|
|||
method called, so it should release any spare memory, etc. that it might have
|
||||
allocated during the prepareToPlay() call.
|
||||
|
||||
Note that there's no guarantee that prepareToPlay() will actually have been called before
|
||||
Note that there's no guarantee that prepareToPlay() will actually have been called before
|
||||
releaseResources(), and it may be called more than once in succession, so make sure your
|
||||
code is robust and doesn't make any assumptions about when it will be called.
|
||||
|
||||
|
|
|
|||
|
|
@ -88,8 +88,8 @@ public:
|
|||
//==============================================================================
|
||||
/** Sets the filter up to act as a low-pass shelf filter with variable Q and gain.
|
||||
|
||||
The gain is a scale factor that the low frequencies are multiplied by, so values
|
||||
greater than 1.0 will boost the low frequencies, values less than 1.0 will
|
||||
The gain is a scale factor that the low frequencies are multiplied by, so values
|
||||
greater than 1.0 will boost the low frequencies, values less than 1.0 will
|
||||
attenuate them.
|
||||
*/
|
||||
void makeLowShelf (const double sampleRate,
|
||||
|
|
@ -99,8 +99,8 @@ public:
|
|||
|
||||
/** Sets the filter up to act as a high-pass shelf filter with variable Q and gain.
|
||||
|
||||
The gain is a scale factor that the high frequencies are multiplied by, so values
|
||||
greater than 1.0 will boost the high frequencies, values less than 1.0 will
|
||||
The gain is a scale factor that the high frequencies are multiplied by, so values
|
||||
greater than 1.0 will boost the high frequencies, values less than 1.0 will
|
||||
attenuate them.
|
||||
*/
|
||||
void makeHighShelf (const double sampleRate,
|
||||
|
|
@ -111,8 +111,8 @@ public:
|
|||
/** Sets the filter up to act as a band pass filter centred around a
|
||||
frequency, with a variable Q and gain.
|
||||
|
||||
The gain is a scale factor that the centre frequencies are multiplied by, so
|
||||
values greater than 1.0 will boost the centre frequencies, values less than
|
||||
The gain is a scale factor that the centre frequencies are multiplied by, so
|
||||
values greater than 1.0 will boost the centre frequencies, values less than
|
||||
1.0 will attenuate them.
|
||||
*/
|
||||
void makeBandPass (const double sampleRate,
|
||||
|
|
|
|||
|
|
@ -184,8 +184,10 @@ public:
|
|||
|
||||
|
||||
//==============================================================================
|
||||
/** Changes the current data model to display. */
|
||||
void setModel (ListBoxModel* const newModel);
|
||||
|
||||
/** Returns the current list model. */
|
||||
ListBoxModel* getModel() const throw() { return model; }
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1069,8 +1069,14 @@ void TextEditor::applyFontToAllText (const Font& newFont)
|
|||
{
|
||||
currentFont = newFont;
|
||||
|
||||
const Colour overallColour (findColour (textColourId));
|
||||
|
||||
for (int i = sections.size(); --i >= 0;)
|
||||
((UniformTextSection*) sections.getUnchecked(i))->setFont (newFont, passwordCharacter);
|
||||
{
|
||||
UniformTextSection* const uts = (UniformTextSection*) sections.getUnchecked(i);
|
||||
uts->setFont (newFont, passwordCharacter);
|
||||
uts->colour = overallColour;
|
||||
}
|
||||
|
||||
coalesceSimilarSections();
|
||||
updateTextHolderSize();
|
||||
|
|
@ -1447,7 +1453,7 @@ void TextEditor::moveCursorTo (const int newPosition,
|
|||
jassert (selectionStart <= selectionEnd);
|
||||
jassert (oldSelStart <= oldSelEnd);
|
||||
|
||||
repaintText (jmin (oldSelStart, selectionStart),
|
||||
repaintText (jmin (oldSelStart, selectionStart),
|
||||
jmax (oldSelEnd, selectionEnd));
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue