[cairo] Parameter types of image_surface API

David Weiß David.Weiss at ptvgroup.com
Wed Jul 30 02:30:32 PDT 2014


Hey,

I'm wondering whether there's any reason for the image_surface API to use signed datatypes for width/height parameters?
I think unsigned int makes more sense.
Also, none of the parameters is defined as const. E.g. and especially for getters like cairo_image_surface_get_width() it's IMHO better style (and semantics) to pass const cairo_surface_t * const instead of just cairo_surface_t *.
Is there a technical reason not to do so?

Blessings,
--
David Weiß

PTV GROUP
Logistics Software Development

Haid-und-Neu-Str. 15, 76131 Karlsruhe, Germany

david.weiss at ptvgroup.com<mailto:david.weiss at ptvgroup.com>
www.ptvgroup.com<http://www.ptvgroup.com/>

http://ptv.to/facebook

PTV Planung Transport Verkehr AG
Headquarters: Karlsruhe
Executive Board: Vincent Kobesen (CEO)
Chairman of the Supervisory Board: Dr. h.c. Frank-Jürgen Weise
Commercial Register (HRB-Nr): 109262
Local Court: Mannheim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20140730/0d5eb0a9/attachment.html>


More information about the cairo mailing list