1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

New class: DropShadow, and a complete refactoring of the way shadows are rendered. The DropShadowEffect and DropShadower classes now take a DropShadow object to describe their shadow parameters, instead of the raw numbers.

This commit is contained in:
jules 2012-07-11 21:07:47 +01:00
parent 591ce2a396
commit 3ddc6dd43d
16 changed files with 286 additions and 248 deletions

View file

@ -223,7 +223,7 @@ public:
numIns (0),
numOuts (0)
{
shadow.setShadowProperties (2.5f, 0.5f, -1, 0);
shadow.setShadowProperties (DropShadow (Colours::black.withAlpha (0.5f), 3, Point<int> (0, 1));
setComponentEffect (&shadow);
setSize (150, 60);