[cairo]
API Shapeup, setters and getters consistency, get vs current
Øyvind Kolås
islewind at gmail.com
Tue Feb 15 10:41:39 PST 2005
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.
Are there any strong argumentation for keeping the current name? (I
find the claim that it is part of the graphics state, and thus is not
a instance variable, but can change through restore, to be weak, by
even working on the gstate object this should be known).
For the ruby binding this doesn´t really matter, since
"cr.alpha=cr.alpha*0.8" already is legal code.
/Øyvind K:
--
Software patents hinder progress | http://swpat.ffii.org/
Web : http://pippin.gimp.org/
More information about the cairo
mailing list