mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Added DrawableText::replaceColour()
This commit is contained in:
parent
fd4125d964
commit
9b48d6d516
2 changed files with 11 additions and 0 deletions
|
|
@ -200,4 +200,13 @@ Path DrawableText::getOutlineAsPath() const
|
|||
return pathOfAllGlyphs;
|
||||
}
|
||||
|
||||
bool DrawableText::replaceColour (Colour originalColour, Colour replacementColour)
|
||||
{
|
||||
if (colour != originalColour)
|
||||
return false;
|
||||
|
||||
setColour (replacementColour);
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -97,6 +97,8 @@ public:
|
|||
Rectangle<float> getDrawableBounds() const override;
|
||||
/** @internal */
|
||||
Path getOutlineAsPath() const override;
|
||||
/** @internal */
|
||||
bool replaceColour (Colour originalColour, Colour replacementColour) override;
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue