[cairo] Re: New API: cairo_surface_get_width/height

Carl Worth cworth at redhat.com
Mon Jun 12 09:49:35 PDT 2006


On Mon, 12 Jun 2006 12:10:11 -0400, Owen Taylor wrote:
> 
> Well, image surfaces have very well defined width/height, so it's
> hard to imagine cairo_image_surface_get_width/height()
> meaning something different from cairo_surface_get_width/height(). 
> 

OK. So if you're imagining, (or if I have proposed), that
cairo_surface_get_width/height would return something different than
cairo_xlib_surface_get_width/height, then we definitely need a new
name and specification for whatever it would be that
cairo_surface_get_width/height are doing.

Anyway, it seems clear to me that we don't have good consensus around
cairo_surface_get_width/height. I don't want to push a mistake in just
before a major release, so I had planned on just dropping this for
now.

But since Robert says he would be cairo_xlib_surface_get_width/height,
I propose we throw those in now, before 1.2. We already have
cairo_xlib_surface_set_size, so there's not much reason to prevent the
user from getting these back out again. And 1.2 is already adding
several other cairo_xlib_surface_get functions compared to 1.0,
(display, drawable, visual, screen, depth).

-Carl
-------------- 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/20060612/891af233/attachment.pgp


More information about the cairo mailing list