[cairo] cairo_get_pattern() manual entry

Owen Taylor otaylor at redhat.com
Wed Mar 16 07:18:07 PST 2005


On Wed, 2005-03-16 at 16:12 +0800, Steve Chaplin wrote:
> The manual entry for cairo_get_pattern() says 
> "Returns : the current source pattern"
> shouldn't that be "Returns : the current source pattern or NULL"?

A cairo_t always has a source pattern ... initially a black solid color.
So, the only reason that get_pattern() could return %NULL is if the
cairo_t is in an error state.

But our plans (not yet implemented) in this area are to return a
special "error pattern" object in that case.

Regards,
						Owen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050316/6cdaa639/attachment.pgp


More information about the cairo mailing list