melatonin_blur icon indicating copy to clipboard operation
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

Open dpsproservices opened this issue 2 years ago • 1 comments

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

dpsproservices avatar Mar 08 '24 01:03 dpsproservices

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...

sudara avatar Mar 08 '24 12:03 sudara