|
NAMEGtk2::Gdk::Event - wrapper for GdkEventHIERARCHYGlib::Boxed +----Gtk2::Gdk::Event EVENT TYPES
METHODSevent = Gtk2::Gdk::Event->new ($type)
double = $event->axis ($axis_use)
double = $event->get_axis ($axis_use)
($x, $y) = $event->coords($x, $y) = $event->get_coordsevent = $event->copyevent or undef = Gtk2::Gdk::Event->getevent or undef = Gtk2::Gdk::Event->get_graphics_expose ($window)
Gtk2::Gdk::Event->handler_set ($func, $data=undef)
Set the function that handles all events from GDK. GTK+ uses this to dispatch events, and as such this is rarely of use to applications, unless you are implementing completely custom event dispatching (unlikely) or preprocess events somehow and then pass them on to "Gtk2::main_do_event". As a special case, if func is undef, we "reset" the handler by passing the actual C function gtk_main_do_event to GDK, to bypass the Perl marshaling (and take things back up to full speed). event or undef = Gtk2::Gdk::Event->peekGtk2::Gdk::Event->put ($event)
($x_root, $y_root) = $event->root_coords($x_root, $y_root) = $event->get_root_coordsscreen = $event->get_screenSince: gtk+ 2.2$event->set_screen ($screen)
Since: gtk+ 2.2 boolean = Gtk2::Gdk::Event->send_client_message ($event, $winid)
boolean = Gtk2::Gdk::Event->send_client_message_for_display ($display, $event, $winid)
Since: gtk+ 2.2 Gtk2::Gdk::Event->send_clientmessage_toall ($event)
integer = $event->send_event ($newvalue=0)
$modifiertype = $event->get_state$modifiertype = $event->stateGet $event's state. Croaks if that event type doesn't have a state.$event->set_state ($newstate)
$timestamp = $event->get_time$timestamp = $event->timeGet $event's time. If that event type doesn't have a time, or if $event is undef, returns GDK_CURRENT_TIME, which is 0.$event->set_time ($newtime)
eventtype = $event->typewindow or undef = $event->window ($newvalue=undef)
integer = $event->x_rootinteger = $event->y_rootENUMS AND FLAGSenum Gtk2::Gdk::AxisUse
enum Gtk2::Gdk::EventType
flags Gtk2::Gdk::ModifierType
SEE ALSOGtk2, Glib::BoxedCOPYRIGHTCopyright (C) 2003-2011 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Visit the GSP FreeBSD Man Page Interface. |