Re: RFC: Shadow API v2

Chris Wilson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On Thu, Oct 30, 2014 at 07:45:01AM +0000, Chris Wilson wrote:
> On Wed, Oct 29, 2014 at 04:54:33PM -0700, Bryce Harrington wrote:
> > /*
> >  * Effect properties
> >  */
> > typedef enum _cairo_effect_type {
> >     CAIRO_SHADOW_NONE = 0,
> >     CAIRO_SHADOW_DROP,
> >     CAIRO_SHADOW_INSET
> > } cairo_effect_type_t;
>
> So cairo_effect_type should be CAIRO_EFFECT_TYPE_PATH,
> CAIRO_EFFECT_TYPE_PEN, etc.

The other twist would be to have,

type = CAIRO_EFFECT_TYPE_PATH << 24 | CAIRO_PATH_EFFECT_DROP_SHADOW; etc
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.