[cairo] API Shapeup, setters and getters consistency, get vs current

Carl Worth cworth at cworth.org
Tue Feb 15 14:23:16 PST 2005


On Tue, 15 Feb 2005 19:41:39 +0100, Øyvind Kolås wrote:
> I find it strange that getters working on the graphics
> state/gstate/cairo context, use a _current_ prefix. On a pattern
> _set_matrix and _get_matrix are used, but for the graphics state.

I agree. We're about to propose splitting off a couple of pieces from
the saved/restored graphics state (target surface and path), and if
these were accessed via "get" while everything else was with "current"
it would just be confusing.

And besides, even if I'm not a fan of abbreviation, I do like shorter
names when they are equally clear. So I propose "get" everywhere
instead of "current".

-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/20050215/f535244d/attachment.pgp


More information about the cairo mailing list