mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-01 03:10:06 +00:00
Added an alpha setting to Components with Component::setAlpha(). Removed Component::fadeOutComponent method and instead refactored the ComponentAnimator class to provide fading in and out of the alpha level. Added a method Desktop::getAnimator() that provides a global instance of a ComponentAnimator so that there's no need to create your own.
This commit is contained in:
parent
e299011789
commit
4e1c66b02e
58 changed files with 1088 additions and 1054 deletions
|
|
@ -1907,9 +1907,8 @@ public:
|
|||
|
||||
ColourGradient g2 (*(fillType.gradient));
|
||||
g2.multiplyOpacity (fillType.getOpacity());
|
||||
g2.point1.addXY (-0.5f, -0.5f);
|
||||
g2.point2.addXY (-0.5f, -0.5f);
|
||||
AffineTransform transform (fillType.transform.translated ((float) xOffset, (float) yOffset));
|
||||
AffineTransform transform (fillType.transform.translated (xOffset - 0.5f, yOffset - 0.5f));
|
||||
|
||||
const bool isIdentity = transform.isOnlyTranslation();
|
||||
|
||||
if (isIdentity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue