Re: Which events does a widget listen for

From: Date: Fri, 11 Jun 2004 19:08:45 +0000
Subject: Re: Which events does a widget listen for
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4650@lists.php.net to get a copy of this message
Steph wrote:
http://gtk.php.net/manual/en/gdk.gdkevent.php http://gtk.php.net/manual/en/gdk.enum.gdkeventmask.php (the returned integer maps to this) and I'd strongly recommend reading Havoc's chapter on the subject (link given on first page above).
Thanks Steph. I have already read all of that (I re-read it just now for fun) but I still don't quite get it. What I don't understand is how the return value from get_events() matches up with the event masks. In the chart on the event mask page what exactly does the flag value stand for? Is that the bit position? If it is then I could do something like the following to check if an event is accepted by a widget. if (GDK_BUTTON_PRESS_MASK | $widget->get_events()) { echo 'Button press event accepted.'; } Is that the right idea or am I completely lost? Thanks, Scott Mattocks

« previous php.gtk.general (#4650) next »