Re: [gtk-list] Graphic Contexts




Ralf Corsepius <corsepiu@faw.uni-ulm.de> writes: 
> Am I misunderstanding something here? Otherwise, this API seems somewhat
> suspectable or even broken to me.
> 

A mask of multiple values will work fine.

The GTK convention (which may be a bit broken) is to specify the enum
type instead of "int", when a logical | of several flags is the
expected argument. This helps humans know what the argument is
supposed to be.

C++ compilers don't like this at all, so you typically have to insert 
a cast to the enum type. Gtk-- probably maps these Mask enums to ints, 
if it doesn't it's a good suggestion.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]