=head1 NAME

Gtk2::Menu

=head1 HIERARCHY

  Glib::Object
  +----Gtk2::Object
        +----Gtk2::Widget
              +----Gtk2::Container
                    +----Gtk2::MenuShell
                          +----Gtk2::Menu

=head1 INTERFACES

  Gtk2::Atk::ImplementorIface


=head1 METHODS

=head2 widget = Gtk2::Menu-E<gt>B<new> 

=over

=back

=head2 accelgroup = $menu-E<gt>B<get_accel_group> 

=over

=back

=head2 $menu-E<gt>B<set_accel_group> ($accel_group)

=over

=over

=item * $accel_group (Gtk2::AccelGroup) 

=back

=back

=head2 $menu-E<gt>B<set_accel_path> ($accel_path)

=over

=over

=item * $accel_path (string) 

=back

=back

=head2 widget = $menu-E<gt>B<get_active> 

=over

=back

=head2 $menu-E<gt>B<set_active> ($index)

=over

=over

=item * $index (integer) 

=back

=back

=head2 $menu-E<gt>B<attach> ($child, $left_attach, $right_attach, $top_attach, $bottom_attach)

=over

=over

=item * $child (Gtk2::Widget) 

=item * $left_attach (integer) 

=item * $right_attach (integer) 

=item * $top_attach (integer) 

=item * $bottom_attach (integer) 

=back

=back

=head2 $menu-E<gt>B<attach_to_widget> ($attach_widget, $detacher)

=over

=over

=item * $attach_widget (Gtk2::Widget) 

=item * $detacher (scalar) 

=back

=back

=head2 widget = $menu-E<gt>B<get_attach_widget> 

=over

=back

=head2 $menu-E<gt>B<detach> 

=over

=back

=head2 list = Gtk2::Menu-E<gt>B<get_for_attach_widget> ($widget)

=over

=over

=item * $widget (Gtk2::Widget) 

=back

=back

=head2 $menu-E<gt>B<set_monitor> ($monitor_num)

=over

=over

=item * $monitor_num (integer) 

=back

=back

=head2 $menu-E<gt>B<popdown> 

=over

=back

=head2 $menu-E<gt>B<popup> ($parent_menu_shell, $parent_menu_item, $menu_pos_func, $data, $button, $activate_time)

=over

=over

=item * $parent_menu_shell (Gtk2::Widget or undef) 

=item * $parent_menu_item (Gtk2::Widget or undef) 

=item * $menu_pos_func (scalar) 

=item * $data (scalar) 

=item * $button (integer) 

=item * $activate_time (integer) 

=back

=back

=head2 $menu-E<gt>B<reorder_child> ($child, $position)

=over

=over

=item * $child (Gtk2::Widget) 

=item * $position (integer) 

=back

=back

=head2 $menu-E<gt>B<reposition> 

=over

=back

=head2 $menu-E<gt>B<set_screen> ($screen)

=over

=over

=item * $screen (Gtk2::Gdk::Screen) 

=back

=back

=head2 boolean = $menu-E<gt>B<get_tearoff_state> 

=over

=back

=head2 $menu-E<gt>B<set_tearoff_state> ($torn_off)

=over

=over

=item * $torn_off (boolean) 

=back

=back

=head2 string = $menu-E<gt>B<get_title> 

=over

=back

=head2 $menu-E<gt>B<set_title> ($title)

=over

=over

=item * $title (string) 

=back

=back


=head1 PROPERTIES

=over

=item 'tearoff-state' (boolean : readable / writable)

A boolean that indicates whether the menu is torn-off

=item 'tearoff-title' (string : readable / writable)

A title that may be displayed by the window manager when this menu is torn-off

=back


=head1 SIGNALS

=over

=item B<move-scroll> (Gtk2::Menu, Gtk2::ScrollType)

=back


=head1 ENUMS AND FLAGS

=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



=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>, L<Gtk2::Object>, L<Gtk2::Widget>, L<Gtk2::Container>, L<Gtk2::MenuShell>

=head1 COPYRIGHT

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

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


=cut

