|
NAMEGtk2::Object - wrapper for GtkObjectHIERARCHYGlib::Object +----Glib::InitiallyUnowned +----Gtk2::Object METHODSobject = Gtk2::Object->new ($object_class, ...)
Create a new object of type $object_class, with some optional initial property values. You may see this used in some code as Gtk2::Widget->new, e.g. $window = Gtk2::Widget->new ('Gtk2::Window', title => 'something cool', allow_grow => TRUE); This is really just a convenience function that wraps Glib::Object->new. boolean = $object->bindings_activate ($keyval, $modifiers)
Although "activate" and "activate_event" are "Gtk2::Object" methods, as of Gtk 2.12 binding sets are only associated with widgets so on an object as such the return is always false (no binding activated). Further, although "activate" and binding sets are both expressed in terms of keyvals, internally the lookup is by keycode. If a keyval cannot be generated by at least one keycode/modifier combination (see Gtk2::Gdk::Keymap) then it cannot be activated. In particular this means keyvals like "Pointer_Button1" which are not actual keys cannot be dispatched by "activate" (returning false for no binding activated). boolean = $object->bindings_activate_event ($event)
Since: gtk+ 2.4 $object->destroyThis is an explicit destroy --- NOT the auto destroy; Gtk2::Object inherits that from Glib::Object!PROPERTIES
SIGNALS
ENUMS AND FLAGSflags Gtk2::Gdk::ModifierType
SEE ALSOGtk2, Glib::Object, Glib::InitiallyUnownedCOPYRIGHTCopyright (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. |