1Gtk2::Widget(3) User Contributed Perl Documentation Gtk2::Widget(3)
2
3
4
6 Gtk2::Widget
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13
15 Glib::Object::_Unregistered::AtkImplementorIface
16
18 $widget->set_accel_path ($accel_path, $accel_group)
19
20 * $accel_path (string)
21 * $accel_group (Gtk2::AccelGroup)
22
23 object = $widget->get_accessible
24
25 action or undef = $widget->get_action
26
27 boolean = $widget->activate
28
29 $widget->add_accelerator ($accel_signal, $accel_group, $accel_key,
30 $accel_mods, $flags)
31
32 * $accel_signal (string)
33 * $accel_group (Gtk2::AccelGroup)
34 * $accel_key (integer)
35 * $accel_mods (Gtk2::Gdk::ModifierType)
36 * $flags (Gtk2::AccelFlags)
37
38 $widget->add_events ($events)
39
40 * $events (Gtk2::Gdk::EventMask)
41
42 $widget->add_mnemonic_label ($label)
43
44 * $label (Gtk2::Widget)
45
46 allocation = $widget->allocation
47
48 Returns $widget's current allocated size as a read-only rectangle;
49 the allocated size is not necessarily the same as the requested
50 size.
51
52 widget or undef = $widget->get_ancestor ($ancestor_package)
53
54 * $ancestor_package (string)
55
56 $widget->app_paintable ($boolean)
57
58 boolean = $widget->app_paintable
59
60 $widget->set_app_paintable ($app_paintable)
61
62 * $app_paintable (boolean)
63
64 boolean = $widget->can_activate_accel ($signal_id)
65
66 * $signal_id (integer)
67
68 $widget->can_default ($boolean)
69
70 boolean = $widget->can_default
71
72 $widget->can_focus ($boolean)
73
74 boolean = $widget->can_focus
75
76 boolean = $widget->child_focus ($direction)
77
78 * $direction (Gtk2::DirectionType)
79
80 $widget->child_notify ($child_property)
81
82 * $child_property (string)
83
84 requisition = $widget->get_child_requisition
85
86 boolean = $widget->get_child_visible
87
88 $widget->set_child_visible ($is_visible)
89
90 * $is_visible (boolean)
91
92 (path, path_reversed) = $widget->class_path
93
94 clipboard = $widget->get_clipboard ($selection=GDK_SELECTION_CLIPBOARD)
95
96 * $selection (Gtk2::Gdk::Atom)
97
98 colormap = $widget->get_colormap
99
100 $widget->set_colormap ($colormap)
101
102 * $colormap (Gtk2::Gdk::Colormap)
103
104 $widget->composite_child ($boolean)
105
106 boolean = $widget->composite_child
107
108 string = $widget->get_composite_name
109
110 $widget->set_composite_name ($name)
111
112 * $name (string)
113
114 context = $widget->create_pango_context
115
116 layout = $widget->create_pango_layout ($text)
117
118 * $text (string)
119
120 colormap = Gtk2::Widget->get_default_colormap
121
122 colormap = $widget->get_default_colormap
123
124 Gtk2::Widget->set_default_colormap ($colormap)
125
126 $widget->set_default_colormap ($colormap)
127
128 * $colormap (Gtk2::Gdk::Colormap)
129
130 textdirection = Gtk2::Widget->get_default_direction
131
132 Gtk2::Widget->set_default_direction ($dir)
133
134 * $dir (Gtk2::TextDirection)
135
136 style = Gtk2::Widget->get_default_style
137
138 style = $widget->get_default_style
139
140 visual = Gtk2::Widget->get_default_visual
141
142 visual = $widget->get_default_visual
143
144 $widget->destroy
145
146 textdirection = $widget->get_direction
147
148 $widget->set_direction ($dir)
149
150 * $dir (Gtk2::TextDirection)
151
152 display = $widget->get_display
153
154 $widget->double_buffered ($boolean)
155
156 boolean = $widget->double_buffered
157
158 $widget->set_double_buffered ($double_buffered)
159
160 * $double_buffered (boolean)
161
162 dragcontext = $widget->drag_begin ($targets, $actions, $button, $event)
163
164 * $targets (Gtk2::TargetList)
165 * $actions (Gtk2::Gdk::DragAction)
166 * $button (integer)
167 * $event (Gtk2::Gdk::Event)
168
169 boolean = $widget->drag_check_threshold ($start_x, $start_y, $cur‐
170 rent_x, $current_y)
171
172 * $start_x (integer)
173 * $start_y (integer)
174 * $current_x (integer)
175 * $current_y (integer)
176
177 $widget->drag_dest_add_image_targets
178
179 $widget->drag_dest_add_text_targets
180
181 $widget->drag_dest_add_uri_targets
182
183 atom = $widget->drag_dest_find_target ($context, $target_list)
184
185 * $context (Gtk2::Gdk::DragContext)
186 * $target_list (Gtk2::TargetList or undef)
187
188 targetlist or undef = $widget->drag_dest_get_target_list
189
190 boolean = $widget->drag_dest_get_track_motion
191
192 $widget->drag_dest_set ($flags, $actions, ...)
193
194 * $flags (Gtk2::DestDefaults)
195 * $actions (Gtk2::Gdk::DragAction)
196 * ... (list) of Gtk2::TargetEntry's
197
198 $widget->drag_dest_set_proxy ($proxy_window, $protocol, $use_coordi‐
199 nates)
200
201 * $proxy_window (Gtk2::Gdk::Window)
202 * $protocol (Gtk2::Gdk::DragProtocol)
203 * $use_coordinates (boolean)
204
205 $widget->drag_dest_set_target_list ($target_list)
206
207 * $target_list (Gtk2::TargetList or undef)
208
209 $widget->drag_dest_set_track_motion ($track_motion)
210
211 * $track_motion (boolean)
212
213 $widget->drag_dest_unset
214
215 $widget->drag_get_data ($context, $target, $time_)
216
217 * $context (Gtk2::Gdk::DragContext)
218 * $target (Gtk2::Gdk::Atom)
219 * $time_ (unsigned)
220
221 $widget->drag_highlight
222
223 $widget->drag_source_add_image_targets
224
225 $widget->drag_source_add_text_targets
226
227 $widget->drag_source_add_uri_targets
228
229 targetlist or undef = $widget->drag_source_get_target_list
230
231 $widget->drag_source_set ($start_button_mask, $actions, ...)
232
233 * $start_button_mask (Gtk2::Gdk::ModifierType)
234 * $actions (Gtk2::Gdk::DragAction)
235 * ... (list) of Gtk2::TargetEntry's
236
237 $widget->drag_source_set_icon ($colormap, $pixmap, $mask)
238
239 * $colormap (Gtk2::Gdk::Colormap or undef)
240 * $pixmap (Gtk2::Gdk::Pixmap or undef)
241 * $mask (Gtk2::Gdk::Bitmap or undef)
242
243 $widget->drag_source_set_icon_name ($icon_name)
244
245 * $icon_name (string)
246
247 $widget->drag_source_set_icon_pixbuf ($pixbuf)
248
249 * $pixbuf (Gtk2::Gdk::Pixbuf or undef)
250
251 $widget->drag_source_set_icon_stock ($stock_id)
252
253 * $stock_id (string)
254
255 $widget->drag_source_set_target_list ($target_list)
256
257 * $target_list (Gtk2::TargetList or undef)
258
259 $widget->drag_source_unset
260
261 $widget->drag_unhighlight
262
263 $widget->drawable ($boolean)
264
265 boolean = $widget->drawable
266
267 $widget->ensure_style
268
269 boolean = $widget->event ($event)
270
271 * $event (Gtk2::Gdk::Event)
272
273 This rarely-used function emits an event signal on $widget. Don't
274 use this to synthesize events; use "Gtk2->main_do_event" instead.
275 Don't synthesize expose events; use "$gdkwindow->invalidate_rect"
276 instead. Basically, the main use for this in gtk2-perl will be to
277 pass motion notify events to rulers from other widgets.
278
279 eventmask = $widget->get_events
280
281 $widget->set_events ($events)
282
283 * $events (Gtk2::Gdk::EventMask)
284
285 extensionmode = $widget->get_extension_events
286
287 $widget->set_extension_events ($mode)
288
289 * $mode (Gtk2::Gdk::ExtensionMode)
290
291 widgetflags = $widget->flags
292
293 widgetflags = $widget->get_flags
294
295 $widget->set_flags ($flags)
296
297 * $flags (Gtk2::WidgetFlags)
298
299 $widget->freeze_child_notify
300
301 $widget->grab_default
302
303 $widget->grab_focus
304
305 $widget->has_default ($boolean)
306
307 boolean = $widget->has_default
308
309 $widget->has_focus ($boolean)
310
311 boolean = $widget->has_focus
312
313 $widget->has_grab ($boolean)
314
315 boolean = $widget->has_grab
316
317 boolean = $widget->has_screen
318
319 $widget->hide
320
321 $widget->hide_all
322
323 $widget->input_shape_combine_mask ($shape_mask, $offset_x, $offset_y)
324
325 * $shape_mask (Gtk2::Gdk::Bitmap or undef)
326 * $offset_x (integer)
327 * $offset_y (integer)
328
329 rectangle = $widget->intersect ($area)
330
331 * $area (Gtk2::Gdk::Rectangle)
332
333 Returns undef if $widget and $area do not intersect.
334
335 boolean = $widget->is_ancestor ($ancestor)
336
337 * $ancestor (Gtk2::Widget)
338
339 boolean = $widget->is_focus
340
341 $widget->is_sensitive ($boolean)
342
343 boolean = $widget->is_sensitive
344
345 list = $widget->list_mnemonic_labels
346
347 $widget->map
348
349 $widget->mapped ($boolean)
350
351 boolean = $widget->mapped
352
353 boolean = $widget->mnemonic_activate ($group_cycling)
354
355 * $group_cycling (boolean)
356
357 rcstyle = $widget->get_modifier_style
358
359 $widget->modify_base ($state, $color)
360
361 * $state (Gtk2::StateType)
362 * $color (Gtk2::Gdk::Color or undef)
363
364 $widget->modify_bg ($state, $color)
365
366 * $state (Gtk2::StateType)
367 * $color (Gtk2::Gdk::Color or undef)
368
369 $widget->modify_fg ($state, $color)
370
371 * $state (Gtk2::StateType)
372 * $color (Gtk2::Gdk::Color or undef)
373
374 $widget->modify_font ($font_desc)
375
376 * $font_desc (Gtk2::Pango::FontDescription or undef)
377
378 $widget->modify_style ($style)
379
380 * $style (Gtk2::RcStyle)
381
382 $widget->modify_text ($state, $color)
383
384 * $state (Gtk2::StateType)
385 * $color (Gtk2::Gdk::Color or undef)
386
387 string = $widget->get_name
388
389 $widget->set_name ($name)
390
391 * $name (string)
392
393 boolean = $widget->get_no_show_all
394
395 $widget->set_no_show_all ($no_show_all)
396
397 * $no_show_all (boolean)
398
399 $widget->no_window ($boolean)
400
401 boolean = $widget->no_window
402
403 context = $widget->get_pango_context
404
405 widget or undef = $widget->parent
406
407 widget or undef = $widget->get_parent
408
409 $widget->parent_sensitive ($boolean)
410
411 boolean = $widget->parent_sensitive
412
413 $widget->set_parent ($parent)
414
415 * $parent (Gtk2::Widget)
416
417 window = $widget->get_parent_window
418
419 $widget->set_parent_window ($parent_window)
420
421 * $parent_window (Gtk2::Gdk::Window)
422
423 (path, path_reversed) = $widget->path
424
425 (x, y) = $widget->get_pointer
426
427 Gtk2::Widget->pop_colormap (cmap)
428
429 $widget->pop_colormap (cmap)
430
431 Gtk2::Widget->pop_composite_child
432
433 $widget->pop_composite_child
434
435 $widget->propagate_event ($event)
436
437 * $event (Gtk2::Gdk::Event)
438
439 From gtk+'s API documentation:
440
441 You most likely don't want to use any of these functions; synthe‐
442 sizing events is rarely needed. Consider asking on the mailing list
443 for better ways to achieve your goals. For example, use
444 Gtk2::Gdk::invalidate_rect or Gtk2::Widget::queue_draw instead of
445 making up expose events.
446
447 Gtk2::Widget->push_colormap (cmap)
448
449 $widget->push_colormap (cmap)
450
451 * $cmap (Gtk2::Gdk::Colormap)
452
453 Gtk2::Widget->push_composite_child
454
455 $widget->push_composite_child
456
457 $widget->queue_draw
458
459 $widget->queue_draw_area ($x, $y, $width, $height)
460
461 * $x (integer)
462 * $y (integer)
463 * $width (integer)
464 * $height (integer)
465
466 $widget->queue_resize
467
468 $widget->queue_resize_no_redraw
469
470 $widget->rc_style ($boolean)
471
472 boolean = $widget->rc_style
473
474 $widget->realize
475
476 $widget->realized ($boolean)
477
478 boolean = $widget->realized
479
480 $widget->receives_default ($boolean)
481
482 boolean = $widget->receives_default
483
484 $widget->set_redraw_on_allocate ($redraw_on_allocate)
485
486 * $redraw_on_allocate (boolean)
487
488 region = $widget->region_intersect ($region)
489
490 * $region (Gtk2::Gdk::Region)
491
492 boolean = $widget->remove_accelerator ($accel_group, $accel_key,
493 $accel_mods)
494
495 * $accel_group (Gtk2::AccelGroup)
496 * $accel_key (integer)
497 * $accel_mods (Gtk2::Gdk::ModifierType)
498
499 $widget->remove_mnemonic_label ($label)
500
501 * $label (Gtk2::Widget)
502
503 pixbuf = $widget->render_icon ($stock_id, $size, $detail=undef)
504
505 * $stock_id (string)
506 * $size (Gtk2::IconSize)
507 * $detail (string)
508
509 $widget->reparent ($new_parent)
510
511 * $new_parent (Gtk2::Widget)
512
513 requisition = $widget->requisition
514
515 $widget->reset_rc_styles
516
517 $widget->reset_shapes
518
519 window = $widget->get_root_window
520
521 statetype = $widget->saved_state
522
523 screen = $widget->get_screen
524
525 boolean = $widget->set_scroll_adjustments ($hadjustment, $vadjustment)
526
527 * $hadjustment (Gtk2::Adjustment or undef)
528 * $vadjustment (Gtk2::Adjustment or undef)
529
530 $widget->selection_add_target ($selection, $target, $info)
531
532 * $selection (Gtk2::Gdk::Atom)
533 * $target (Gtk2::Gdk::Atom)
534 * $info (integer)
535
536 $widget->selection_add_targets ($selection, ...)
537
538 * $selection (Gtk2::Gdk::Atom)
539 * ... (list) of Gtk2::TargetEntry's
540
541 $widget->selection_clear_targets ($selection)
542
543 * $selection (Gtk2::Gdk::Atom)
544
545 boolean = $widget->selection_convert ($selection, $target, $time_)
546
547 * $selection (Gtk2::Gdk::Atom)
548 * $target (Gtk2::Gdk::Atom)
549 * $time_ (unsigned)
550
551 $widget->selection_remove_all
552
553 $widget->sensitive ($boolean)
554
555 boolean = $widget->sensitive
556
557 $widget->set_sensitive ($sensitive)
558
559 * $sensitive (boolean)
560
561 settings = $widget->get_settings
562
563 $widget->shape_combine_mask ($shape_mask, $offset_x, $offset_y)
564
565 * $shape_mask (Gtk2::Gdk::Bitmap)
566 * $offset_x (integer)
567 * $offset_y (integer)
568
569 $widget->show
570
571 $widget->show_all
572
573 $widget->show_now
574
575 $widget->size_allocate ($allocation)
576
577 * $allocation (Gtk2::Gdk::Rectangle)
578
579 requisition = $widget->size_request
580
581 list = $widget->get_size_request
582
583 This function is typically used when implementing a GtkContainer
584 subclass. Obtains the preferred size of a widget. The container
585 uses this information to arrange its child widgets and decide what
586 size allocations to give them with size_allocate ().
587
588 You can also call this function from an application, with some
589 caveats. Most notably, getting a size request requires the widget
590 to be associated with a screen, because font information may be
591 needed. Multihead-aware applications should keep this in mind.
592
593 Also remember that the size request is not necessarily the size a
594 widget will actually be allocated.
595
596 See also get_child_requisition ()
597
598 $widget->set_size_request ($width=-1, $height=-1)
599
600 * $width (integer)
601 * $height (integer)
602
603 statetype = $widget->state
604
605 $widget->set_state ($state)
606
607 * $state (Gtk2::StateType)
608
609 style = $widget->style
610
611 style = $widget->get_style
612
613 list = $widget->style_get ($first_property_name, ...)
614
615 * $first_property_name (string)
616 * ... (list) 0 or more additional property names
617
618 Returns the values of the requested style properties.
619
620 list = $widget->style_get_property ($first_property_name, ...)
621
622 * $first_property_name (string)
623 * ... (list) 0 or more additional property names
624
625 An alias for style_get.
626
627 $widget->set_style ($style)
628
629 * $style (Gtk2::Style or undef)
630
631 $widget->thaw_child_notify
632
633 $widget->toplevel ($value)
634
635 boolean = $widget->toplevel
636
637 widget or undef = $widget->get_toplevel
638
639 (dst_x, dst_y) = $src_widget->translate_coordinates ($dest_widget,
640 $src_x, $src_y)
641
642 * $dest_widget (Gtk2::Widget)
643 * $src_x (integer)
644 * $src_y (integer)
645
646 Returns an empty list if either widget is not realized or if they
647 do not share a common ancestor.
648
649 $widget->unmap
650
651 $widget->unparent
652
653 $widget->unrealize
654
655 $widget->unset_flags ($flags)
656
657 * $flags (Gtk2::WidgetFlags)
658
659 $widget->visible ($boolean)
660
661 boolean = $widget->visible
662
663 visual = $widget->get_visual
664
665 window or undef = $widget->window ($new=undef)
666
667 * $new (Gtk2::Gdk::Window or undef)
668
670 'app-paintable' (boolean : readable / writable / private)
671 Whether the application will paint directly on the widget
672
673 'can-default' (boolean : readable / writable / private)
674 Whether the widget can be the default widget
675
676 'can-focus' (boolean : readable / writable / private)
677 Whether the widget can accept the input focus
678
679 'composite-child' (boolean : readable / private)
680 Whether the widget is part of a composite widget
681
682 'events' (Gtk2::Gdk::EventMask : readable / writable / private)
683 The event mask that decides what kind of GdkEvents this widget gets
684
685 'extension-events' (Gtk2::Gdk::ExtensionMode : readable / writable /
686 private)
687 The mask that decides what kind of extension events this widget
688 gets
689
690 'has-default' (boolean : readable / writable / private)
691 Whether the widget is the default widget
692
693 'has-focus' (boolean : readable / writable / private)
694 Whether the widget has the input focus
695
696 'height-request' (integer : readable / writable / private)
697 Override for height request of the widget, or -1 if natural request
698 should be used
699
700 'is-focus' (boolean : readable / writable / private)
701 Whether the widget is the focus widget within the toplevel
702
703 'name' (string : readable / writable / private)
704 The name of the widget
705
706 'no-show-all' (boolean : readable / writable / private)
707 Whether gtk_widget_show_all() should not affect this widget
708
709 'parent' (Gtk2::Container : readable / writable / private)
710 The parent widget of this widget. Must be a Container widget
711
712 'receives-default' (boolean : readable / writable / private)
713 If TRUE, the widget will receive the default action when it is
714 focused
715
716 'sensitive' (boolean : readable / writable / private)
717 Whether the widget responds to input
718
719 'style' (Gtk2::Style : readable / writable / private)
720 The style of the widget, which contains information about how it
721 will look (colors etc)
722
723 'visible' (boolean : readable / writable / private)
724 Whether the widget is visible
725
726 'width-request' (integer : readable / writable / private)
727 Override for width request of the widget, or -1 if natural request
728 should be used
729
731 show (Gtk2::Widget)
732 hide (Gtk2::Widget)
733 map (Gtk2::Widget)
734 unmap (Gtk2::Widget)
735 realize (Gtk2::Widget)
736 unrealize (Gtk2::Widget)
737 size-request (Gtk2::Widget, Gtk2::Requisition)
738 size-allocate (Gtk2::Widget, Gtk2::Gdk::Rectangle)
739 state-changed (Gtk2::Widget, Gtk2::StateType)
740 parent-set (Gtk2::Widget, Gtk2::Widget)
741 hierarchy-changed (Gtk2::Widget, Gtk2::Widget)
742 style-set (Gtk2::Widget, Gtk2::Style)
743 direction-changed (Gtk2::Widget, Gtk2::TextDirection)
744 grab-notify (Gtk2::Widget, boolean)
745 child-notify (Gtk2::Widget, Glib::ParamSpec)
746 boolean = mnemonic-activate (Gtk2::Widget, boolean)
747 grab-focus (Gtk2::Widget)
748 boolean = focus (Gtk2::Widget, Gtk2::DirectionType)
749 boolean = event (Gtk2::Widget, Gtk2::Gdk::Event)
750 event-after (Gtk2::Widget, Gtk2::Gdk::Event)
751 boolean = button-press-event (Gtk2::Widget, Gtk2::Gdk::Event)
752 boolean = button-release-event (Gtk2::Widget, Gtk2::Gdk::Event)
753 boolean = scroll-event (Gtk2::Widget, Gtk2::Gdk::Event)
754 boolean = motion-notify-event (Gtk2::Widget, Gtk2::Gdk::Event)
755 composited-changed (Gtk2::Widget)
756 boolean = delete-event (Gtk2::Widget, Gtk2::Gdk::Event)
757 boolean = destroy-event (Gtk2::Widget, Gtk2::Gdk::Event)
758 boolean = expose-event (Gtk2::Widget, Gtk2::Gdk::Event)
759 boolean = key-press-event (Gtk2::Widget, Gtk2::Gdk::Event)
760 boolean = key-release-event (Gtk2::Widget, Gtk2::Gdk::Event)
761 boolean = enter-notify-event (Gtk2::Widget, Gtk2::Gdk::Event)
762 boolean = leave-notify-event (Gtk2::Widget, Gtk2::Gdk::Event)
763 boolean = configure-event (Gtk2::Widget, Gtk2::Gdk::Event)
764 boolean = focus-in-event (Gtk2::Widget, Gtk2::Gdk::Event)
765 boolean = focus-out-event (Gtk2::Widget, Gtk2::Gdk::Event)
766 boolean = map-event (Gtk2::Widget, Gtk2::Gdk::Event)
767 boolean = unmap-event (Gtk2::Widget, Gtk2::Gdk::Event)
768 boolean = property-notify-event (Gtk2::Widget, Gtk2::Gdk::Event)
769 boolean = selection-clear-event (Gtk2::Widget, Gtk2::Gdk::Event)
770 boolean = selection-request-event (Gtk2::Widget, Gtk2::Gdk::Event)
771 boolean = selection-notify-event (Gtk2::Widget, Gtk2::Gdk::Event)
772 selection-received (Gtk2::Widget, Gtk2::SelectionData, Glib::UInt)
773 selection-get (Gtk2::Widget, Gtk2::SelectionData, Glib::UInt,
774 Glib::UInt)
775 boolean = proximity-in-event (Gtk2::Widget, Gtk2::Gdk::Event)
776 boolean = proximity-out-event (Gtk2::Widget, Gtk2::Gdk::Event)
777 drag-leave (Gtk2::Widget, Gtk2::Gdk::DragContext, Glib::UInt)
778 drag-begin (Gtk2::Widget, Gtk2::Gdk::DragContext)
779 drag-end (Gtk2::Widget, Gtk2::Gdk::DragContext)
780 drag-data-delete (Gtk2::Widget, Gtk2::Gdk::DragContext)
781 boolean = drag-motion (Gtk2::Widget, Gtk2::Gdk::DragContext, integer,
782 integer, Glib::UInt)
783 boolean = drag-drop (Gtk2::Widget, Gtk2::Gdk::DragContext, integer,
784 integer, Glib::UInt)
785 drag-data-get (Gtk2::Widget, Gtk2::Gdk::DragContext, Gtk2::Selection‐
786 Data, Glib::UInt, Glib::UInt)
787 drag-data-received (Gtk2::Widget, Gtk2::Gdk::DragContext, integer,
788 integer, Gtk2::SelectionData, Glib::UInt, Glib::UInt)
789 boolean = visibility-notify-event (Gtk2::Widget, Gtk2::Gdk::Event)
790 boolean = client-event (Gtk2::Widget, Gtk2::Gdk::Event)
791 boolean = no-expose-event (Gtk2::Widget, Gtk2::Gdk::Event)
792 boolean = window-state-event (Gtk2::Widget, Gtk2::Gdk::Event)
793 boolean = grab-broken-event (Gtk2::Widget, Gtk2::Gdk::Event)
794 boolean = popup-menu (Gtk2::Widget)
795 boolean = show-help (Gtk2::Widget, Gtk2::WidgetHelpType)
796 accel-closures-changed (Gtk2::Widget)
797 screen-changed (Gtk2::Widget, Gtk2::Gdk::Screen)
798 boolean = can-activate-accel (Gtk2::Widget, Glib::UInt)
799
801 flags Gtk2::AccelFlags
802
803 * 'visible' / 'GTK_ACCEL_VISIBLE'
804 * 'locked' / 'GTK_ACCEL_LOCKED'
805 * 'mask' / 'GTK_ACCEL_MASK'
806
807 flags Gtk2::DestDefaults
808
809 * 'motion' / 'GTK_DEST_DEFAULT_MOTION'
810 * 'highlight' / 'GTK_DEST_DEFAULT_HIGHLIGHT'
811 * 'drop' / 'GTK_DEST_DEFAULT_DROP'
812 * 'all' / 'GTK_DEST_DEFAULT_ALL'
813
814 enum Gtk2::DirectionType
815
816 * 'tab-forward' / 'GTK_DIR_TAB_FORWARD'
817 * 'tab-backward' / 'GTK_DIR_TAB_BACKWARD'
818 * 'up' / 'GTK_DIR_UP'
819 * 'down' / 'GTK_DIR_DOWN'
820 * 'left' / 'GTK_DIR_LEFT'
821 * 'right' / 'GTK_DIR_RIGHT'
822
823 flags Gtk2::Gdk::DragAction
824
825 * 'default' / 'GDK_ACTION_DEFAULT'
826 * 'copy' / 'GDK_ACTION_COPY'
827 * 'move' / 'GDK_ACTION_MOVE'
828 * 'link' / 'GDK_ACTION_LINK'
829 * 'private' / 'GDK_ACTION_PRIVATE'
830 * 'ask' / 'GDK_ACTION_ASK'
831
832 enum Gtk2::Gdk::DragProtocol
833
834 * 'motif' / 'GDK_DRAG_PROTO_MOTIF'
835 * 'xdnd' / 'GDK_DRAG_PROTO_XDND'
836 * 'rootwin' / 'GDK_DRAG_PROTO_ROOTWIN'
837 * 'none' / 'GDK_DRAG_PROTO_NONE'
838 * 'win32-dropfiles' / 'GDK_DRAG_PROTO_WIN32_DROPFILES'
839 * 'ole2' / 'GDK_DRAG_PROTO_OLE2'
840 * 'local' / 'GDK_DRAG_PROTO_LOCAL'
841
842 flags Gtk2::Gdk::EventMask
843
844 * 'exposure-mask' / 'GDK_EXPOSURE_MASK'
845 * 'pointer-motion-mask' / 'GDK_POINTER_MOTION_MASK'
846 * 'pointer-motion-hint-mask' / 'GDK_POINTER_MOTION_HINT_MASK'
847 * 'button-motion-mask' / 'GDK_BUTTON_MOTION_MASK'
848 * 'button1-motion-mask' / 'GDK_BUTTON1_MOTION_MASK'
849 * 'button2-motion-mask' / 'GDK_BUTTON2_MOTION_MASK'
850 * 'button3-motion-mask' / 'GDK_BUTTON3_MOTION_MASK'
851 * 'button-press-mask' / 'GDK_BUTTON_PRESS_MASK'
852 * 'button-release-mask' / 'GDK_BUTTON_RELEASE_MASK'
853 * 'key-press-mask' / 'GDK_KEY_PRESS_MASK'
854 * 'key-release-mask' / 'GDK_KEY_RELEASE_MASK'
855 * 'enter-notify-mask' / 'GDK_ENTER_NOTIFY_MASK'
856 * 'leave-notify-mask' / 'GDK_LEAVE_NOTIFY_MASK'
857 * 'focus-change-mask' / 'GDK_FOCUS_CHANGE_MASK'
858 * 'structure-mask' / 'GDK_STRUCTURE_MASK'
859 * 'property-change-mask' / 'GDK_PROPERTY_CHANGE_MASK'
860 * 'visibility-notify-mask' / 'GDK_VISIBILITY_NOTIFY_MASK'
861 * 'proximity-in-mask' / 'GDK_PROXIMITY_IN_MASK'
862 * 'proximity-out-mask' / 'GDK_PROXIMITY_OUT_MASK'
863 * 'substructure-mask' / 'GDK_SUBSTRUCTURE_MASK'
864 * 'scroll-mask' / 'GDK_SCROLL_MASK'
865 * 'all-events-mask' / 'GDK_ALL_EVENTS_MASK'
866
867 enum Gtk2::Gdk::ExtensionMode
868
869 * 'none' / 'GDK_EXTENSION_EVENTS_NONE'
870 * 'all' / 'GDK_EXTENSION_EVENTS_ALL'
871 * 'cursor' / 'GDK_EXTENSION_EVENTS_CURSOR'
872
873 flags Gtk2::Gdk::ModifierType
874
875 * 'shift-mask' / 'GDK_SHIFT_MASK'
876 * 'lock-mask' / 'GDK_LOCK_MASK'
877 * 'control-mask' / 'GDK_CONTROL_MASK'
878 * 'mod1-mask' / 'GDK_MOD1_MASK'
879 * 'mod2-mask' / 'GDK_MOD2_MASK'
880 * 'mod3-mask' / 'GDK_MOD3_MASK'
881 * 'mod4-mask' / 'GDK_MOD4_MASK'
882 * 'mod5-mask' / 'GDK_MOD5_MASK'
883 * 'button1-mask' / 'GDK_BUTTON1_MASK'
884 * 'button2-mask' / 'GDK_BUTTON2_MASK'
885 * 'button3-mask' / 'GDK_BUTTON3_MASK'
886 * 'button4-mask' / 'GDK_BUTTON4_MASK'
887 * 'button5-mask' / 'GDK_BUTTON5_MASK'
888 * 'super-mask' / 'GDK_SUPER_MASK'
889 * 'hyper-mask' / 'GDK_HYPER_MASK'
890 * 'meta-mask' / 'GDK_META_MASK'
891 * 'release-mask' / 'GDK_RELEASE_MASK'
892 * 'modifier-mask' / 'GDK_MODIFIER_MASK'
893
894 enum Gtk2::IconSize
895
896 * 'invalid' / 'GTK_ICON_SIZE_INVALID'
897 * 'menu' / 'GTK_ICON_SIZE_MENU'
898 * 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
899 * 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
900 * 'button' / 'GTK_ICON_SIZE_BUTTON'
901 * 'dnd' / 'GTK_ICON_SIZE_DND'
902 * 'dialog' / 'GTK_ICON_SIZE_DIALOG'
903
904 enum Gtk2::StateType
905
906 * 'normal' / 'GTK_STATE_NORMAL'
907 * 'active' / 'GTK_STATE_ACTIVE'
908 * 'prelight' / 'GTK_STATE_PRELIGHT'
909 * 'selected' / 'GTK_STATE_SELECTED'
910 * 'insensitive' / 'GTK_STATE_INSENSITIVE'
911
912 enum Gtk2::TextDirection
913
914 * 'none' / 'GTK_TEXT_DIR_NONE'
915 * 'ltr' / 'GTK_TEXT_DIR_LTR'
916 * 'rtl' / 'GTK_TEXT_DIR_RTL'
917
918 flags Gtk2::WidgetFlags
919
920 * 'toplevel' / 'GTK_TOPLEVEL'
921 * 'no-window' / 'GTK_NO_WINDOW'
922 * 'realized' / 'GTK_REALIZED'
923 * 'mapped' / 'GTK_MAPPED'
924 * 'visible' / 'GTK_VISIBLE'
925 * 'sensitive' / 'GTK_SENSITIVE'
926 * 'parent-sensitive' / 'GTK_PARENT_SENSITIVE'
927 * 'can-focus' / 'GTK_CAN_FOCUS'
928 * 'has-focus' / 'GTK_HAS_FOCUS'
929 * 'can-default' / 'GTK_CAN_DEFAULT'
930 * 'has-default' / 'GTK_HAS_DEFAULT'
931 * 'has-grab' / 'GTK_HAS_GRAB'
932 * 'rc-style' / 'GTK_RC_STYLE'
933 * 'composite-child' / 'GTK_COMPOSITE_CHILD'
934 * 'no-reparent' / 'GTK_NO_REPARENT'
935 * 'app-paintable' / 'GTK_APP_PAINTABLE'
936 * 'receives-default' / 'GTK_RECEIVES_DEFAULT'
937 * 'double-buffered' / 'GTK_DOUBLE_BUFFERED'
938 * 'no-show-all' / 'GTK_NO_SHOW_ALL'
939
940 enum Gtk2::WidgetHelpType
941
942 * 'tooltip' / 'GTK_WIDGET_HELP_TOOLTIP'
943 * 'whats-this' / 'GTK_WIDGET_HELP_WHATS_THIS'
944
946 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Targe‐
947 tEntry
948
950 Copyright (C) 2003-2007 by the gtk2-perl team.
951
952 This software is licensed under the LGPL. See Gtk2 for a full notice.
953
954
955
956perl v5.8.8 2007-03-18 Gtk2::Widget(3)