Re: [gtk-list] Graphic Contexts
- From: Havoc Pennington <hp redhat com>
- To: corsepiu faw uni-ulm de
- Cc: gtk-list redhat com
- Subject: Re: [gtk-list] Graphic Contexts
- Date: 13 Mar 2000 14:58:08 -0500
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]