[cairo] cairomm enums

Jonathon Jongsma jonathon.jongsma at gmail.com
Tue Feb 28 16:02:35 PST 2006


On 2/27/06, Carl Worth <cworth at cworth.org> wrote:
> Would you really have a type named Cairo::LineCap with a valued named
> Cairo::LINE_CAP_BUTT instead of Cairo::LineCapButt ?
>
> I'm not a fan of CamelCase, but inconsistent style looks even worse to
> me. (That said, I'm only commenting on the local style presented in
> this message. If gtkmm does things this way, then consistency could
> also argue in favor of this rather than against it.)

Yes, this is indeed how gtkmm does it, which is why I proposed this
style.  But I agree that it does look a little strange.

> I think you're correct to try to use the namespace for everything
> rather than sometimes yes and sometimes no. And yes, cairo is small
> and shouldn't be adding lots of values to existing enums at anything
> like a rapid pace.

Since nobody else has chimed in about this, I'm going to go ahead and
implement this change unless I get some negative feedback very soon.

Thanks
Jonner


More information about the cairo mailing list