=head1 NAME

Gtk2::Widget

=head1 HIERARCHY

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget

=head1 INTERFACES

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable


=head1 METHODS

=head2 $widget-E<gt>B<set_accel_path> ($accel_path, $accel_group)

=over

=over

=item * $accel_path (string) 

=item * $accel_group (Gtk2::AccelGroup) 

=back

=back

=head2 object = $widget-E<gt>B<get_accessible> 

=over

=back

=head2 action or undef = $widget-E<gt>B<get_action> 

=over

Since: gtk+ 2.10

=back

=head2 boolean = $widget-E<gt>B<activate> 

=over

=back

=head2 $widget-E<gt>B<add_accelerator> ($accel_signal, $accel_group, $accel_key, $accel_mods, $flags)

=over

=over

=item * $accel_signal (string) 

=item * $accel_group (Gtk2::AccelGroup) 

=item * $accel_key (integer) 

=item * $accel_mods (Gtk2::Gdk::ModifierType) 

=item * $flags (Gtk2::AccelFlags) 

=back

=back

=head2 $widget-E<gt>B<add_events> ($events)

=over

=over

=item * $events (Gtk2::Gdk::EventMask) 

=back

=back

=head2 $widget-E<gt>B<add_mnemonic_label> ($label)

=over

=over

=item * $label (Gtk2::Widget) 

=back

Since: gtk+ 2.4

=back

=head2 allocation = $widget->B<allocation>

=over

Returns I<$widget>'s current allocated size as a read-only rectangle; the
allocated size is not necessarily the same as the requested size.

=back

=head2 widget or undef = $widget-E<gt>B<get_ancestor> ($ancestor_package)

=over

=over

=item * $ancestor_package (string) 

=back

=back

=head2 $widget->B<app_paintable> ($boolean)

=head2 boolean = $widget->B<app_paintable>

=over

=over

=back



=back

=head2 $widget-E<gt>B<set_app_paintable> ($app_paintable)

=over

=over

=item * $app_paintable (boolean) 

=back

=back

=head2 boolean = $widget-E<gt>B<can_activate_accel> ($signal_id)

=over

=over

=item * $signal_id (integer) 

=back

Since: gtk+ 2.4

=back

=head2 $widget->B<can_default> ($boolean)

=head2 boolean = $widget->B<can_default>

=over

=over

=back



=back

=head2 $widget->B<can_focus> ($boolean)

=head2 boolean = $widget->B<can_focus>

=over

=over

=back



=back

=head2 boolean = $widget-E<gt>B<child_focus> ($direction)

=over

=over

=item * $direction (Gtk2::DirectionType) 

=back

=back

=head2 $widget-E<gt>B<child_notify> ($child_property)

=over

=over

=item * $child_property (string) 

=back

=back

=head2 requisition = $widget-E<gt>B<get_child_requisition> 

=over

=back

=head2 boolean = $widget-E<gt>B<get_child_visible> 

=over

=back

=head2 $widget-E<gt>B<set_child_visible> ($is_visible)

=over

=over

=item * $is_visible (boolean) 

=back

=back

=head2 (path, path_reversed) = $widget->B<class_path>

=over



=back

=head2 clipboard = $widget-E<gt>B<get_clipboard> ($selection=GDK_SELECTION_CLIPBOARD)

=over

=over

=item * $selection (Gtk2::Gdk::Atom) 

=back

Since: gtk+ 2.2

=back

=head2 colormap = $widget-E<gt>B<get_colormap> 

=over

=back

=head2 $widget-E<gt>B<set_colormap> ($colormap)

=over

=over

=item * $colormap (Gtk2::Gdk::Colormap) 

=back

=back

=head2 $widget->B<composite_child> ($boolean)

=head2 boolean = $widget->B<composite_child>

=over

=over

=back



=back

=head2 string = $widget-E<gt>B<get_composite_name> 

=over

=back

=head2 $widget-E<gt>B<set_composite_name> ($name)

=over

=over

=item * $name (string) 

=back

=back

=head2 context = $widget-E<gt>B<create_pango_context> 

=over

=back

=head2 layout = $widget-E<gt>B<create_pango_layout> ($text)

=over

=over

=item * $text (string) 

=back

=back

=head2 colormap = Gtk2::Widget->B<get_default_colormap>

=head2 colormap = $widget->B<get_default_colormap>

=over



=back

=head2 Gtk2::Widget->B<set_default_colormap> ($colormap)

=head2 $widget->B<set_default_colormap> ($colormap)

=over

=over

=item * $colormap (Gtk2::Gdk::Colormap) 

=back



=back

=head2 textdirection = Gtk2::Widget-E<gt>B<get_default_direction> 

=over

=back

=head2 Gtk2::Widget-E<gt>B<set_default_direction> ($dir)

=over

=over

=item * $dir (Gtk2::TextDirection) 

=back

=back

=head2 style = Gtk2::Widget->B<get_default_style>

=head2 style = $widget->B<get_default_style>

=over



=back

=head2 visual = Gtk2::Widget->B<get_default_visual>

=head2 visual = $widget->B<get_default_visual>

=over



=back

=head2 $widget-E<gt>B<destroy> 

=over

=back

=head2 textdirection = $widget-E<gt>B<get_direction> 

=over

=back

=head2 $widget-E<gt>B<set_direction> ($dir)

=over

=over

=item * $dir (Gtk2::TextDirection) 

=back

=back

=head2 display = $widget-E<gt>B<get_display> 

=over

Since: gtk+ 2.2

=back

=head2 $widget->B<double_buffered> ($boolean)

=head2 boolean = $widget->B<double_buffered>

=over

=over

=back



=back

=head2 $widget-E<gt>B<set_double_buffered> ($double_buffered)

=over

=over

=item * $double_buffered (boolean) 

=back

=back

=head2 dragcontext = $widget-E<gt>B<drag_begin> ($targets, $actions, $button, $event)

=over

=over

=item * $targets (Gtk2::TargetList) 

=item * $actions (Gtk2::Gdk::DragAction) 

=item * $button (integer) 

=item * $event (Gtk2::Gdk::Event) 

=back

=back

=head2 boolean = $widget-E<gt>B<drag_check_threshold> ($start_x, $start_y, $current_x, $current_y)

=over

=over

=item * $start_x (integer) 

=item * $start_y (integer) 

=item * $current_x (integer) 

=item * $current_y (integer) 

=back

=back

=head2 $widget-E<gt>B<drag_dest_add_image_targets> 

=over

Since: gtk+ 2.6

=back

=head2 $widget-E<gt>B<drag_dest_add_text_targets> 

=over

Since: gtk+ 2.6

=back

=head2 $widget-E<gt>B<drag_dest_add_uri_targets> 

=over

Since: gtk+ 2.6

=back

=head2 atom = $widget-E<gt>B<drag_dest_find_target> ($context, $target_list)

=over

=over

=item * $context (Gtk2::Gdk::DragContext) 

=item * $target_list (Gtk2::TargetList or undef) 

=back

=back

=head2 targetlist or undef = $widget-E<gt>B<drag_dest_get_target_list> 

=over

=back

=head2 boolean = $widget-E<gt>B<drag_dest_get_track_motion> 

=over

Since: gtk+ 2.10

=back

=head2 $widget-E<gt>B<drag_dest_set> ($flags, $actions, ...)

=over

=over

=item * $flags (Gtk2::DestDefaults) 

=item * $actions (Gtk2::Gdk::DragAction) 

=item * ... (list) of Gtk2::TargetEntry's

=back



=back

=head2 $widget-E<gt>B<drag_dest_set_proxy> ($proxy_window, $protocol, $use_coordinates)

=over

=over

=item * $proxy_window (Gtk2::Gdk::Window) 

=item * $protocol (Gtk2::Gdk::DragProtocol) 

=item * $use_coordinates (boolean) 

=back

=back

=head2 $widget-E<gt>B<drag_dest_set_target_list> ($target_list)

=over

=over

=item * $target_list (Gtk2::TargetList or undef) 

=back

=back

=head2 $widget-E<gt>B<drag_dest_set_track_motion> ($track_motion)

=over

=over

=item * $track_motion (boolean) 

=back

Since: gtk+ 2.10

=back

=head2 $widget-E<gt>B<drag_dest_unset> 

=over

=back

=head2 $widget-E<gt>B<drag_get_data> ($context, $target, $time_)

=over

=over

=item * $context (Gtk2::Gdk::DragContext) 

=item * $target (Gtk2::Gdk::Atom) 

=item * $time_ (unsigned) 

=back

=back

=head2 $widget-E<gt>B<drag_highlight> 

=over

=back

=head2 $widget-E<gt>B<drag_source_add_image_targets> 

=over

Since: gtk+ 2.6

=back

=head2 $widget-E<gt>B<drag_source_add_text_targets> 

=over

Since: gtk+ 2.6

=back

=head2 $widget-E<gt>B<drag_source_add_uri_targets> 

=over

Since: gtk+ 2.6

=back

=head2 targetlist or undef = $widget-E<gt>B<drag_source_get_target_list> 

=over

Since: gtk+ 2.4

=back

=head2 $widget-E<gt>B<drag_source_set> ($start_button_mask, $actions, ...)

=over

=over

=item * $start_button_mask (Gtk2::Gdk::ModifierType) 

=item * $actions (Gtk2::Gdk::DragAction) 

=item * ... (list) of Gtk2::TargetEntry's

=back



=back

=head2 $widget-E<gt>B<drag_source_set_icon> ($colormap, $pixmap, $mask)

=over

=over

=item * $colormap (Gtk2::Gdk::Colormap or undef) 

=item * $pixmap (Gtk2::Gdk::Pixmap or undef) 

=item * $mask (Gtk2::Gdk::Bitmap or undef) 

=back

=back

=head2 $widget-E<gt>B<drag_source_set_icon_name> ($icon_name)

=over

=over

=item * $icon_name (string) 

=back

Since: gtk+ 2.8

=back

=head2 $widget-E<gt>B<drag_source_set_icon_pixbuf> ($pixbuf)

=over

=over

=item * $pixbuf (Gtk2::Gdk::Pixbuf or undef) 

=back

=back

=head2 $widget-E<gt>B<drag_source_set_icon_stock> ($stock_id)

=over

=over

=item * $stock_id (string) 

=back

=back

=head2 $widget-E<gt>B<drag_source_set_target_list> ($target_list)

=over

=over

=item * $target_list (Gtk2::TargetList or undef) 

=back

Since: gtk+ 2.4

=back

=head2 $widget-E<gt>B<drag_source_unset> 

=over

=back

=head2 $widget-E<gt>B<drag_unhighlight> 

=over

=back

=head2 $widget->B<drawable> ($boolean)

=head2 boolean = $widget->B<drawable>

=over

=over

=back



=back

=head2 $widget-E<gt>B<ensure_style> 

=over

=back

=head2 $widget-E<gt>B<error_bell> 

=over

Since: gtk+ 2.12

=back

=head2 boolean = $widget-E<gt>B<event> ($event)

=over

=over

=item * $event (Gtk2::Gdk::Event) 

=back

This rarely-used function emits an event signal on I<$widget>.  Don't use
this to synthesize events; use C<< Gtk2->main_do_event >> instead.  Don't
synthesize expose events; use C<< $gdkwindow->invalidate_rect >> instead.
Basically, the main use for this in gtk2-perl will be to pass motion
notify events to rulers from other widgets.

=back

=head2 eventmask = $widget-E<gt>B<get_events> 

=over

=back

=head2 $widget-E<gt>B<set_events> ($events)

=over

=over

=item * $events (Gtk2::Gdk::EventMask) 

=back

=back

=head2 extensionmode = $widget-E<gt>B<get_extension_events> 

=over

=back

=head2 $widget-E<gt>B<set_extension_events> ($mode)

=over

=over

=item * $mode (Gtk2::Gdk::ExtensionMode) 

=back

=back

=head2 widgetflags = $widget-E<gt>B<flags> 

=over

=back

=head2 widgetflags = $widget-E<gt>B<get_flags> 

=over

=back

=head2 $widget-E<gt>B<set_flags> ($flags)

=over

=over

=item * $flags (Gtk2::WidgetFlags) 

=back

=back

=head2 $widget-E<gt>B<freeze_child_notify> 

=over

=back

=head2 $widget-E<gt>B<grab_default> 

=over

=back

=head2 $widget-E<gt>B<grab_focus> 

=over

=back

=head2 $widget->B<has_default> ($boolean)

=head2 boolean = $widget->B<has_default>

=over

=over

=back



=back

=head2 $widget->B<has_focus> ($boolean)

=head2 boolean = $widget->B<has_focus>

=over

=over

=back



=back

=head2 $widget->B<has_grab> ($boolean)

=head2 boolean = $widget->B<has_grab>

=over

=over

=back



=back

=head2 boolean = $widget-E<gt>B<has_screen> 

=over

Since: gtk+ 2.2

=back

=head2 boolean = $widget-E<gt>B<get_has_tooltip> 

=over

Since: gtk+ 2.12

=back

=head2 $widget-E<gt>B<set_has_tooltip> ($has_tooltip)

=over

=over

=item * $has_tooltip (boolean) 

=back

Since: gtk+ 2.12

=back

=head2 $widget-E<gt>B<hide> 

=over

=back

=head2 $widget-E<gt>B<hide_all> 

=over

=back

=head2 $widget-E<gt>B<input_shape_combine_mask> ($shape_mask, $offset_x, $offset_y)

=over

=over

=item * $shape_mask (Gtk2::Gdk::Bitmap or undef) 

=item * $offset_x (integer) 

=item * $offset_y (integer) 

=back

Since: gtk+ 2.10

=back

=head2 rectangle = $widget-E<gt>B<intersect> ($area)

=over

=over

=item * $area (Gtk2::Gdk::Rectangle) 

=back

Returns undef if I<$widget> and I<$area> do not intersect.

=back

=head2 boolean = $widget-E<gt>B<is_ancestor> ($ancestor)

=over

=over

=item * $ancestor (Gtk2::Widget) 

=back

=back

=head2 boolean = $widget-E<gt>B<is_focus> 

=over

=back

=head2 $widget->B<is_sensitive> ($boolean)

=head2 boolean = $widget->B<is_sensitive>

=over

=over

=back



=back

=head2 boolean = $widget-E<gt>B<keynav_failed> ($direction)

=over

=over

=item * $direction (Gtk2::DirectionType) 

=back

Since: gtk+ 2.12

=back

=head2 list = $widget-E<gt>B<list_mnemonic_labels> 

=over

Since: gtk+ 2.4

=back

=head2 $widget-E<gt>B<map> 

=over

=back

=head2 $widget->B<mapped> ($boolean)

=head2 boolean = $widget->B<mapped>

=over

=over

=back



=back

=head2 boolean = $widget-E<gt>B<mnemonic_activate> ($group_cycling)

=over

=over

=item * $group_cycling (boolean) 

=back

=back

=head2 rcstyle = $widget-E<gt>B<get_modifier_style> 

=over

=back

=head2 $widget-E<gt>B<modify_base> ($state, $color)

=over

=over

=item * $state (Gtk2::StateType) 

=item * $color (Gtk2::Gdk::Color or undef) 

=back

=back

=head2 $widget-E<gt>B<modify_bg> ($state, $color)

=over

=over

=item * $state (Gtk2::StateType) 

=item * $color (Gtk2::Gdk::Color or undef) 

=back

=back

=head2 $widget-E<gt>B<modify_cursor> ($primary, $secondary)

=over

=over

=item * $primary (Gtk2::Gdk::Color) 

=item * $secondary (Gtk2::Gdk::Color) 

=back

Since: gtk+ 2.12

=back

=head2 $widget-E<gt>B<modify_fg> ($state, $color)

=over

=over

=item * $state (Gtk2::StateType) 

=item * $color (Gtk2::Gdk::Color or undef) 

=back

=back

=head2 $widget-E<gt>B<modify_font> ($font_desc)

=over

=over

=item * $font_desc (Gtk2::Pango::FontDescription or undef) 

=back

=back

=head2 $widget-E<gt>B<modify_style> ($style)

=over

=over

=item * $style (Gtk2::RcStyle) 

=back

=back

=head2 $widget-E<gt>B<modify_text> ($state, $color)

=over

=over

=item * $state (Gtk2::StateType) 

=item * $color (Gtk2::Gdk::Color or undef) 

=back

=back

=head2 string = $widget-E<gt>B<get_name> 

=over

=back

=head2 $widget-E<gt>B<set_name> ($name)

=over

=over

=item * $name (string) 

=back

=back

=head2 boolean = $widget-E<gt>B<get_no_show_all> 

=over

Since: gtk+ 2.4

=back

=head2 $widget-E<gt>B<set_no_show_all> ($no_show_all)

=over

=over

=item * $no_show_all (boolean) 

=back

Since: gtk+ 2.4

=back

=head2 $widget->B<no_window> ($boolean)

=head2 boolean = $widget->B<no_window>

=over

=over

=back



=back

=head2 context = $widget-E<gt>B<get_pango_context> 

=over

=back

=head2 widget or undef = $widget-E<gt>B<parent> 

=over

=back

=head2 widget or undef = $widget-E<gt>B<get_parent> 

=over

=back

=head2 $widget->B<parent_sensitive> ($boolean)

=head2 boolean = $widget->B<parent_sensitive>

=over

=over

=back



=back

=head2 $widget-E<gt>B<set_parent> ($parent)

=over

=over

=item * $parent (Gtk2::Widget) 

=back

=back

=head2 window = $widget-E<gt>B<get_parent_window> 

=over

=back

=head2 $widget-E<gt>B<set_parent_window> ($parent_window)

=over

=over

=item * $parent_window (Gtk2::Gdk::Window) 

=back

=back

=head2 (path, path_reversed) = $widget->B<path>

=over



=back

=head2 (x, y) = $widget-E<gt>B<get_pointer> 

=over

=back

=head2 Gtk2::Widget->B<pop_colormap> (cmap)

=head2 $widget->B<pop_colormap> (cmap)

=over



=back

=head2 Gtk2::Widget->B<pop_composite_child>

=head2 $widget->B<pop_composite_child>

=over



=back

=head2 $widget-E<gt>B<propagate_event> ($event)

=over

=over

=item * $event (Gtk2::Gdk::Event) 

=back


From gtk+'s API documentation:

You most likely don't want to use any of these functions; synthesizing events
is rarely needed. Consider asking on the mailing list for better ways to
achieve your goals. For example, use Gtk2::Gdk::invalidate_rect or
Gtk2::Widget::queue_draw instead of making up expose events.


=back

=head2 Gtk2::Widget->B<push_colormap> (cmap)

=head2 $widget->B<push_colormap> (cmap)

=over

=over

=item * $cmap (Gtk2::Gdk::Colormap) 

=back



=back

=head2 Gtk2::Widget->B<push_composite_child>

=head2 $widget->B<push_composite_child>

=over



=back

=head2 $widget-E<gt>B<queue_draw> 

=over

=back

=head2 $widget-E<gt>B<queue_draw_area> ($x, $y, $width, $height)

=over

=over

=item * $x (integer) 

=item * $y (integer) 

=item * $width (integer) 

=item * $height (integer) 

=back

=back

=head2 $widget-E<gt>B<queue_resize> 

=over

=back

=head2 $widget-E<gt>B<queue_resize_no_redraw> 

=over

Since: gtk+ 2.4

=back

=head2 $widget->B<rc_style> ($boolean)

=head2 boolean = $widget->B<rc_style>

=over

=over

=back



=back

=head2 $widget-E<gt>B<realize> 

=over

=back

=head2 $widget->B<realized> ($boolean)

=head2 boolean = $widget->B<realized>

=over

=over

=back



=back

=head2 $widget->B<receives_default> ($boolean)

=head2 boolean = $widget->B<receives_default>

=over

=over

=back



=back

=head2 $widget-E<gt>B<set_redraw_on_allocate> ($redraw_on_allocate)

=over

=over

=item * $redraw_on_allocate (boolean) 

=back

=back

=head2 region = $widget-E<gt>B<region_intersect> ($region)

=over

=over

=item * $region (Gtk2::Gdk::Region) 

=back

=back

=head2 boolean = $widget-E<gt>B<remove_accelerator> ($accel_group, $accel_key, $accel_mods)

=over

=over

=item * $accel_group (Gtk2::AccelGroup) 

=item * $accel_key (integer) 

=item * $accel_mods (Gtk2::Gdk::ModifierType) 

=back

=back

=head2 $widget-E<gt>B<remove_mnemonic_label> ($label)

=over

=over

=item * $label (Gtk2::Widget) 

=back

Since: gtk+ 2.4

=back

=head2 pixbuf = $widget-E<gt>B<render_icon> ($stock_id, $size, $detail=undef)

=over

=over

=item * $stock_id (string) 

=item * $size (Gtk2::IconSize) 

=item * $detail (string) 

=back

=back

=head2 $widget-E<gt>B<reparent> ($new_parent)

=over

=over

=item * $new_parent (Gtk2::Widget) 

=back

=back

=head2 requisition = $widget-E<gt>B<requisition> 

=over

=back

=head2 $widget-E<gt>B<reset_rc_styles> 

=over

=back

=head2 $widget-E<gt>B<reset_shapes> 

=over

=back

=head2 window = $widget-E<gt>B<get_root_window> 

=over

Since: gtk+ 2.2

=back

=head2 statetype = $widget-E<gt>B<saved_state> 

=over

=back

=head2 screen = $widget-E<gt>B<get_screen> 

=over

Since: gtk+ 2.2

=back

=head2 boolean = $widget-E<gt>B<set_scroll_adjustments> ($hadjustment, $vadjustment)

=over

=over

=item * $hadjustment (Gtk2::Adjustment or undef) 

=item * $vadjustment (Gtk2::Adjustment or undef) 

=back

=back

=head2 $widget-E<gt>B<selection_add_target> ($selection, $target, $info)

=over

=over

=item * $selection (Gtk2::Gdk::Atom) 

=item * $target (Gtk2::Gdk::Atom) 

=item * $info (integer) 

=back

=back

=head2 $widget-E<gt>B<selection_add_targets> ($selection, ...)

=over

=over

=item * $selection (Gtk2::Gdk::Atom) 

=item * ... (list) of Gtk2::TargetEntry's

=back



=back

=head2 $widget-E<gt>B<selection_clear_targets> ($selection)

=over

=over

=item * $selection (Gtk2::Gdk::Atom) 

=back

=back

=head2 boolean = $widget-E<gt>B<selection_convert> ($selection, $target, $time_)

=over

=over

=item * $selection (Gtk2::Gdk::Atom) 

=item * $target (Gtk2::Gdk::Atom) 

=item * $time_ (unsigned) 

=back

=back

=head2 $widget-E<gt>B<selection_remove_all> 

=over

=back

=head2 $widget->B<sensitive> ($boolean)

=head2 boolean = $widget->B<sensitive>

=over

=over

=back



=back

=head2 $widget-E<gt>B<set_sensitive> ($sensitive)

=over

=over

=item * $sensitive (boolean) 

=back

=back

=head2 settings = $widget-E<gt>B<get_settings> 

=over

=back

=head2 $widget-E<gt>B<shape_combine_mask> ($shape_mask, $offset_x, $offset_y)

=over

=over

=item * $shape_mask (Gtk2::Gdk::Bitmap) 

=item * $offset_x (integer) 

=item * $offset_y (integer) 

=back

=back

=head2 $widget-E<gt>B<show> 

=over

=back

=head2 $widget-E<gt>B<show_all> 

=over

=back

=head2 $widget-E<gt>B<show_now> 

=over

=back

=head2 $widget-E<gt>B<size_allocate> ($allocation)

=over

=over

=item * $allocation (Gtk2::Gdk::Rectangle) 

=back

=back

=head2 requisition = $widget-E<gt>B<size_request> 

=over

=back

=head2 list = $widget-E<gt>B<get_size_request> 

=over

This function is typically used when implementing a GtkContainer subclass.
Obtains the preferred size of a widget. The container uses this information to
arrange its child widgets and decide what size allocations to give them with
size_allocate ().

You can also call this function from an application, with some caveats. Most
notably, getting a size request requires the widget to be associated with a
screen, because font information may be needed. Multihead-aware applications
should keep this in mind.

Also remember that the size request is not necessarily the size a widget will
actually be allocated.

See also L<get_child_requisition ()|requisistion = $widget-E<gt>get_child_requisition>

=back

=head2 $widget-E<gt>B<set_size_request> ($width=-1, $height=-1)

=over

=over

=item * $width (integer) 

=item * $height (integer) 

=back

=back

=head2 statetype = $widget-E<gt>B<state> 

=over

=back

=head2 $widget-E<gt>B<set_state> ($state)

=over

=over

=item * $state (Gtk2::StateType) 

=back

=back

=head2 style = $widget-E<gt>B<style> 

=over

=back

=head2 style = $widget-E<gt>B<get_style> 

=over

=back

=head2 list = $widget-E<gt>B<style_get> ($first_property_name, ...)

=over

=over

=item * $first_property_name (string) 

=item * ... (list) 0 or more additional property names

=back

Returns the values of the requested style properties.

Since: gtk+ 2.2

=back

=head2 list = $widget-E<gt>B<style_get_property> ($first_property_name, ...)

=over

=over

=item * $first_property_name (string) 

=item * ... (list) 0 or more additional property names

=back

An alias for style_get.

Since: gtk+ 2.2

=back

=head2 $widget-E<gt>B<set_style> ($style)

=over

=over

=item * $style (Gtk2::Style or undef) 

=back

=back

=head2 $widget-E<gt>B<thaw_child_notify> 

=over

=back

=head2 string = $widget-E<gt>B<get_tooltip_markup> 

=over

Since: gtk+ 2.12

=back

=head2 $widget-E<gt>B<set_tooltip_markup> ($markup)

=over

=over

=item * $markup (string or undef) 

=back

Since: gtk+ 2.12

=back

=head2 string = $widget-E<gt>B<get_tooltip_text> 

=over

Since: gtk+ 2.12

=back

=head2 $widget-E<gt>B<set_tooltip_text> ($text)

=over

=over

=item * $text (string or undef) 

=back

Since: gtk+ 2.12

=back

=head2 window or undef = $widget-E<gt>B<get_tooltip_window> 

=over

Since: gtk+ 2.12

=back

=head2 $widget-E<gt>B<set_tooltip_window> ($custom_window)

=over

=over

=item * $custom_window (Gtk2::Window or undef) 

=back

Since: gtk+ 2.12

=back

=head2 $widget->B<toplevel> ($value)

=head2 boolean = $widget->B<toplevel>

=over

=over

=back



=back

=head2 widget or undef = $widget-E<gt>B<get_toplevel> 

=over

=back

=head2 (dst_x, dst_y) = $src_widget->B<translate_coordinates> ($dest_widget, $src_x, $src_y)

=over

=over

=item * $dest_widget (Gtk2::Widget) 

=item * $src_x (integer) 

=item * $src_y (integer) 

=back

Returns an empty list if either widget is not realized or if they do not share
a common ancestor.

=back

=head2 $widget-E<gt>B<trigger_tooltip_query> 

=over

Since: gtk+ 2.12

=back

=head2 $widget-E<gt>B<unmap> 

=over

=back

=head2 $widget-E<gt>B<unparent> 

=over

=back

=head2 $widget-E<gt>B<unrealize> 

=over

=back

=head2 $widget-E<gt>B<unset_flags> ($flags)

=over

=over

=item * $flags (Gtk2::WidgetFlags) 

=back

=back

=head2 $widget->B<visible> ($boolean)

=head2 boolean = $widget->B<visible>

=over

=over

=back



=back

=head2 visual = $widget-E<gt>B<get_visual> 

=over

=back

=head2 window or undef = $widget-E<gt>B<window> ($new=undef)

=over

=over

=item * $new (Gtk2::Gdk::Window or undef) 

=back

=back


=head1 PROPERTIES

=over

=item 'app-paintable' (boolean : readable / writable / private)

Whether the application will paint directly on the widget

=item 'can-default' (boolean : readable / writable / private)

Whether the widget can be the default widget

=item 'can-focus' (boolean : readable / writable / private)

Whether the widget can accept the input focus

=item 'composite-child' (boolean : readable / private)

Whether the widget is part of a composite widget

=item 'events' (Gtk2::Gdk::EventMask : readable / writable / private)

The event mask that decides what kind of GdkEvents this widget gets

=item 'extension-events' (Gtk2::Gdk::ExtensionMode : readable / writable / private)

The mask that decides what kind of extension events this widget gets

=item 'has-default' (boolean : readable / writable / private)

Whether the widget is the default widget

=item 'has-focus' (boolean : readable / writable / private)

Whether the widget has the input focus

=item 'has-tooltip' (boolean : readable / writable / private)

Whether this widget has a tooltip

=item 'height-request' (integer : readable / writable / private)

Override for height request of the widget, or -1 if natural request should be used

=item 'is-focus' (boolean : readable / writable / private)

Whether the widget is the focus widget within the toplevel

=item 'name' (string : readable / writable / private)

The name of the widget

=item 'no-show-all' (boolean : readable / writable / private)

Whether gtk_widget_show_all() should not affect this widget

=item 'parent' (Gtk2::Container : readable / writable / private)

The parent widget of this widget. Must be a Container widget

=item 'receives-default' (boolean : readable / writable / private)

If TRUE, the widget will receive the default action when it is focused

=item 'sensitive' (boolean : readable / writable / private)

Whether the widget responds to input

=item 'style' (Gtk2::Style : readable / writable / private)

The style of the widget, which contains information about how it will look (colors etc)

=item 'tooltip-markup' (string : readable / writable / private)

The contents of the tooltip for this widget

=item 'tooltip-text' (string : readable / writable / private)

The contents of the tooltip for this widget

=item 'visible' (boolean : readable / writable / private)

Whether the widget is visible

=item 'width-request' (integer : readable / writable / private)

Override for width request of the widget, or -1 if natural request should be used

=back


=head1 SIGNALS

=over

=item B<style-set> (Gtk2::Widget, Gtk2::Style)

=item B<show> (Gtk2::Widget)

=item B<hide> (Gtk2::Widget)

=item B<map> (Gtk2::Widget)

=item B<unmap> (Gtk2::Widget)

=item B<realize> (Gtk2::Widget)

=item B<unrealize> (Gtk2::Widget)

=item B<size-request> (Gtk2::Widget, Gtk2::Requisition)

=item B<size-allocate> (Gtk2::Widget, Gtk2::Gdk::Rectangle)

=item B<state-changed> (Gtk2::Widget, Gtk2::StateType)

=item B<parent-set> (Gtk2::Widget, Gtk2::Widget)

=item B<hierarchy-changed> (Gtk2::Widget, Gtk2::Widget)

=item B<direction-changed> (Gtk2::Widget, Gtk2::TextDirection)

=item B<grab-notify> (Gtk2::Widget, boolean)

=item B<child-notify> (Gtk2::Widget, Glib::ParamSpec)

=item boolean = B<mnemonic-activate> (Gtk2::Widget, boolean)

=item B<grab-focus> (Gtk2::Widget)

=item boolean = B<focus> (Gtk2::Widget, Gtk2::DirectionType)

=item B<move-focus> (Gtk2::Widget, Gtk2::DirectionType)

=item boolean = B<event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item B<event-after> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<button-press-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<button-release-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<scroll-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<motion-notify-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item B<composited-changed> (Gtk2::Widget)

=item boolean = B<keynav-failed> (Gtk2::Widget, Gtk2::DirectionType)

=item boolean = B<delete-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<destroy-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<expose-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<key-press-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<key-release-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<enter-notify-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<leave-notify-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<configure-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<focus-in-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<focus-out-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<map-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<unmap-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<property-notify-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<selection-clear-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<selection-request-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<selection-notify-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item B<selection-received> (Gtk2::Widget, Gtk2::SelectionData, Glib::UInt)

=item B<selection-get> (Gtk2::Widget, Gtk2::SelectionData, Glib::UInt, Glib::UInt)

=item boolean = B<proximity-in-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<proximity-out-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item B<drag-leave> (Gtk2::Widget, Gtk2::Gdk::DragContext, Glib::UInt)

=item B<drag-begin> (Gtk2::Widget, Gtk2::Gdk::DragContext)

=item B<drag-end> (Gtk2::Widget, Gtk2::Gdk::DragContext)

=item B<drag-data-delete> (Gtk2::Widget, Gtk2::Gdk::DragContext)

=item boolean = B<drag-failed> (Gtk2::Widget, Gtk2::Gdk::DragContext, GtkDragResult)

=item boolean = B<drag-motion> (Gtk2::Widget, Gtk2::Gdk::DragContext, integer, integer, Glib::UInt)

=item boolean = B<drag-drop> (Gtk2::Widget, Gtk2::Gdk::DragContext, integer, integer, Glib::UInt)

=item B<drag-data-get> (Gtk2::Widget, Gtk2::Gdk::DragContext, Gtk2::SelectionData, Glib::UInt, Glib::UInt)

=item B<drag-data-received> (Gtk2::Widget, Gtk2::Gdk::DragContext, integer, integer, Gtk2::SelectionData, Glib::UInt, Glib::UInt)

=item boolean = B<visibility-notify-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<client-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<no-expose-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<window-state-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<grab-broken-event> (Gtk2::Widget, Gtk2::Gdk::Event)

=item boolean = B<query-tooltip> (Gtk2::Widget, integer, integer, boolean, Gtk2::Tooltip)

=item boolean = B<popup-menu> (Gtk2::Widget)

=item boolean = B<show-help> (Gtk2::Widget, Gtk2::WidgetHelpType)

=item B<accel-closures-changed> (Gtk2::Widget)

=item B<screen-changed> (Gtk2::Widget, Gtk2::Gdk::Screen)

=item boolean = B<can-activate-accel> (Gtk2::Widget, Glib::UInt)

=back


=head1 ENUMS AND FLAGS

=head2 flags Gtk2::AccelFlags

=over

=item * 'visible' / 'GTK_ACCEL_VISIBLE'

=item * 'locked' / 'GTK_ACCEL_LOCKED'

=item * 'mask' / 'GTK_ACCEL_MASK'

=back


=head2 flags Gtk2::DestDefaults

=over

=item * 'motion' / 'GTK_DEST_DEFAULT_MOTION'

=item * 'highlight' / 'GTK_DEST_DEFAULT_HIGHLIGHT'

=item * 'drop' / 'GTK_DEST_DEFAULT_DROP'

=item * 'all' / 'GTK_DEST_DEFAULT_ALL'

=back


=head2 enum Gtk2::DirectionType

=over

=item * 'tab-forward' / 'GTK_DIR_TAB_FORWARD'

=item * 'tab-backward' / 'GTK_DIR_TAB_BACKWARD'

=item * 'up' / 'GTK_DIR_UP'

=item * 'down' / 'GTK_DIR_DOWN'

=item * 'left' / 'GTK_DIR_LEFT'

=item * 'right' / 'GTK_DIR_RIGHT'

=back


=head2 flags Gtk2::Gdk::DragAction

=over

=item * 'default' / 'GDK_ACTION_DEFAULT'

=item * 'copy' / 'GDK_ACTION_COPY'

=item * 'move' / 'GDK_ACTION_MOVE'

=item * 'link' / 'GDK_ACTION_LINK'

=item * 'private' / 'GDK_ACTION_PRIVATE'

=item * 'ask' / 'GDK_ACTION_ASK'

=back


=head2 enum Gtk2::Gdk::DragProtocol

=over

=item * 'motif' / 'GDK_DRAG_PROTO_MOTIF'

=item * 'xdnd' / 'GDK_DRAG_PROTO_XDND'

=item * 'rootwin' / 'GDK_DRAG_PROTO_ROOTWIN'

=item * 'none' / 'GDK_DRAG_PROTO_NONE'

=item * 'win32-dropfiles' / 'GDK_DRAG_PROTO_WIN32_DROPFILES'

=item * 'ole2' / 'GDK_DRAG_PROTO_OLE2'

=item * 'local' / 'GDK_DRAG_PROTO_LOCAL'

=back


=head2 flags Gtk2::Gdk::EventMask

=over

=item * 'exposure-mask' / 'GDK_EXPOSURE_MASK'

=item * 'pointer-motion-mask' / 'GDK_POINTER_MOTION_MASK'

=item * 'pointer-motion-hint-mask' / 'GDK_POINTER_MOTION_HINT_MASK'

=item * 'button-motion-mask' / 'GDK_BUTTON_MOTION_MASK'

=item * 'button1-motion-mask' / 'GDK_BUTTON1_MOTION_MASK'

=item * 'button2-motion-mask' / 'GDK_BUTTON2_MOTION_MASK'

=item * 'button3-motion-mask' / 'GDK_BUTTON3_MOTION_MASK'

=item * 'button-press-mask' / 'GDK_BUTTON_PRESS_MASK'

=item * 'button-release-mask' / 'GDK_BUTTON_RELEASE_MASK'

=item * 'key-press-mask' / 'GDK_KEY_PRESS_MASK'

=item * 'key-release-mask' / 'GDK_KEY_RELEASE_MASK'

=item * 'enter-notify-mask' / 'GDK_ENTER_NOTIFY_MASK'

=item * 'leave-notify-mask' / 'GDK_LEAVE_NOTIFY_MASK'

=item * 'focus-change-mask' / 'GDK_FOCUS_CHANGE_MASK'

=item * 'structure-mask' / 'GDK_STRUCTURE_MASK'

=item * 'property-change-mask' / 'GDK_PROPERTY_CHANGE_MASK'

=item * 'visibility-notify-mask' / 'GDK_VISIBILITY_NOTIFY_MASK'

=item * 'proximity-in-mask' / 'GDK_PROXIMITY_IN_MASK'

=item * 'proximity-out-mask' / 'GDK_PROXIMITY_OUT_MASK'

=item * 'substructure-mask' / 'GDK_SUBSTRUCTURE_MASK'

=item * 'scroll-mask' / 'GDK_SCROLL_MASK'

=item * 'all-events-mask' / 'GDK_ALL_EVENTS_MASK'

=back


=head2 enum Gtk2::Gdk::ExtensionMode

=over

=item * 'none' / 'GDK_EXTENSION_EVENTS_NONE'

=item * 'all' / 'GDK_EXTENSION_EVENTS_ALL'

=item * 'cursor' / 'GDK_EXTENSION_EVENTS_CURSOR'

=back


=head2 flags Gtk2::Gdk::ModifierType

=over

=item * 'shift-mask' / 'GDK_SHIFT_MASK'

=item * 'lock-mask' / 'GDK_LOCK_MASK'

=item * 'control-mask' / 'GDK_CONTROL_MASK'

=item * 'mod1-mask' / 'GDK_MOD1_MASK'

=item * 'mod2-mask' / 'GDK_MOD2_MASK'

=item * 'mod3-mask' / 'GDK_MOD3_MASK'

=item * 'mod4-mask' / 'GDK_MOD4_MASK'

=item * 'mod5-mask' / 'GDK_MOD5_MASK'

=item * 'button1-mask' / 'GDK_BUTTON1_MASK'

=item * 'button2-mask' / 'GDK_BUTTON2_MASK'

=item * 'button3-mask' / 'GDK_BUTTON3_MASK'

=item * 'button4-mask' / 'GDK_BUTTON4_MASK'

=item * 'button5-mask' / 'GDK_BUTTON5_MASK'

=item * 'super-mask' / 'GDK_SUPER_MASK'

=item * 'hyper-mask' / 'GDK_HYPER_MASK'

=item * 'meta-mask' / 'GDK_META_MASK'

=item * 'release-mask' / 'GDK_RELEASE_MASK'

=item * 'modifier-mask' / 'GDK_MODIFIER_MASK'

=back


=head2 enum Gtk2::IconSize

=over

=item * 'invalid' / 'GTK_ICON_SIZE_INVALID'

=item * 'menu' / 'GTK_ICON_SIZE_MENU'

=item * 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'

=item * 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'

=item * 'button' / 'GTK_ICON_SIZE_BUTTON'

=item * 'dnd' / 'GTK_ICON_SIZE_DND'

=item * 'dialog' / 'GTK_ICON_SIZE_DIALOG'

=back


=head2 enum Gtk2::StateType

=over

=item * 'normal' / 'GTK_STATE_NORMAL'

=item * 'active' / 'GTK_STATE_ACTIVE'

=item * 'prelight' / 'GTK_STATE_PRELIGHT'

=item * 'selected' / 'GTK_STATE_SELECTED'

=item * 'insensitive' / 'GTK_STATE_INSENSITIVE'

=back


=head2 enum Gtk2::TextDirection

=over

=item * 'none' / 'GTK_TEXT_DIR_NONE'

=item * 'ltr' / 'GTK_TEXT_DIR_LTR'

=item * 'rtl' / 'GTK_TEXT_DIR_RTL'

=back


=head2 flags Gtk2::WidgetFlags

=over

=item * 'toplevel' / 'GTK_TOPLEVEL'

=item * 'no-window' / 'GTK_NO_WINDOW'

=item * 'realized' / 'GTK_REALIZED'

=item * 'mapped' / 'GTK_MAPPED'

=item * 'visible' / 'GTK_VISIBLE'

=item * 'sensitive' / 'GTK_SENSITIVE'

=item * 'parent-sensitive' / 'GTK_PARENT_SENSITIVE'

=item * 'can-focus' / 'GTK_CAN_FOCUS'

=item * 'has-focus' / 'GTK_HAS_FOCUS'

=item * 'can-default' / 'GTK_CAN_DEFAULT'

=item * 'has-default' / 'GTK_HAS_DEFAULT'

=item * 'has-grab' / 'GTK_HAS_GRAB'

=item * 'rc-style' / 'GTK_RC_STYLE'

=item * 'composite-child' / 'GTK_COMPOSITE_CHILD'

=item * 'no-reparent' / 'GTK_NO_REPARENT'

=item * 'app-paintable' / 'GTK_APP_PAINTABLE'

=item * 'receives-default' / 'GTK_RECEIVES_DEFAULT'

=item * 'double-buffered' / 'GTK_DOUBLE_BUFFERED'

=item * 'no-show-all' / 'GTK_NO_SHOW_ALL'

=back


=head2 enum Gtk2::WidgetHelpType

=over

=item * 'tooltip' / 'GTK_WIDGET_HELP_TOOLTIP'

=item * 'whats-this' / 'GTK_WIDGET_HELP_WHATS_THIS'

=back


=head2 enum GtkDragResult

=over

=item * 'success' / 'GTK_DRAG_RESULT_SUCCESS'

=item * 'no-target' / 'GTK_DRAG_RESULT_NO_TARGET'

=item * 'user-cancelled' / 'GTK_DRAG_RESULT_USER_CANCELLED'

=item * 'timeout-expired' / 'GTK_DRAG_RESULT_TIMEOUT_EXPIRED'

=item * 'grab-broken' / 'GTK_DRAG_RESULT_GRAB_BROKEN'

=item * 'error' / 'GTK_DRAG_RESULT_ERROR'

=back



=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>, L<Glib::InitiallyUnowned>, L<Gtk2::Object>, L<Gtk2::TargetEntry>

=head1 COPYRIGHT

Copyright (C) 2003-2007 by the gtk2-perl team.

This software is licensed under the LGPL.  See L<Gtk2> for a full notice.


=cut

