Next:
Gtk2::MenuBar
Previous:
Gtk2::main
 [Gtk2-Perl - Table of Contents][Gtk2-Perl - Index]

Gtk2::Menu



NAME

Gtk2::Menu

HIERARCHY

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

INTERFACES

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

METHODS

widget = Gtk2::Menu->new

accelgroup = $menu->get_accel_group

$menu->set_accel_group ($accel_group)

$menu->set_accel_path ($accel_path)

widget = $menu->get_active

$menu->set_active ($index)

$menu->attach ($child, $left_attach, $right_attach, $top_attach, $bottom_attach)

Since: gtk+ 2.4

$menu->attach_to_widget ($attach_widget, $detacher)

widget = $menu->get_attach_widget

$menu->detach

list = Gtk2::Menu->get_for_attach_widget ($widget)

Since: gtk+ 2.6

$menu->set_monitor ($monitor_num)

Since: gtk+ 2.4

$menu->popdown

$menu->popup ($parent_menu_shell, $parent_menu_item, $menu_pos_func, $data, $button, $activate_time)

$menu->reorder_child ($child, $position)

$menu->reposition

$menu->set_screen ($screen)

Since: gtk+ 2.2

boolean = $menu->get_tearoff_state

$menu->set_tearoff_state ($torn_off)

string = $menu->get_title

$menu->set_title ($title)

PROPERTIES

'tearoff-state' (boolean : readable / writable / private)
A boolean that indicates whether the menu is torn-off
'tearoff-title' (string : readable / writable / private)
A title that may be displayed by the window manager when this menu is torn-off

SIGNALS

move-scroll (Gtk2::Menu, Gtk2::ScrollType)

ENUMS AND FLAGS

enum Gtk2::ScrollType

SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::MenuShell

COPYRIGHT

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

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


[Top] Generated by Marek::Pod::HTML 0.49 on Wed Dec 16 23:02:48 2009