[cairo] API proposal: cairo_format_from_content and cairo_content_from_format

Carl Worth cworth at cworth.org
Mon Apr 23 13:32:36 PDT 2007

On Thu, 19 Apr 2007 23:57:06 -0400, Behdad Esfahbod wrote:
> I want to propose making the two functions public in 1.6.  They are
> pretty well-defined, but I agree that they are not the most useful
> functions for user programs.

I'm confused on both points.

1. How is cairo_format_from_content well-defined?

   There's already not a one-to-one correspondence between formats and
   content, (does CONTENT_ALPHA map to FORMAT_A8 or FORMAT_A1 ?), and
   this will only get worse as we add more format types.

   It was exactly for the reason that we expected to add more formats
   in the future that we decided to separate the notions of content
   and format.

2. Given "they are not the most useful functions for user programs",
   what's the point of discussing this? Let's talk again when a user
   has a need that can't be met with the current API, OK?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070423/211a742d/attachment.pgp

More information about the cairo mailing list