melatonin_blur
melatonin_blur copied to clipboard
Create one Shadow class which can be either a Drop Shadow or an Inner Shadow based on a constructor paramerer
expose the "inner" boolean flag which determines whether or not the shadow is an inner shadow as is seen in the last argument of the CachedShadows class constructor, as seen in file CachedShadows.h
What's the use case for this? It's currently designed so that DropShadow and InnerShadow are separate classes. I was thinking about an object called PathWithShadows which owns a path and a collection of drop/inner shadows, mainly so that painting becomes pathWithShadows.render() or something very succinct...