Rechercher une page de manuel
Gtk2::Menu.3pm
Langue: en
Version: 2010-05-02 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- HIERARCHY
- INTERFACES
- METHODS
- widget = Gtk2::Menu->new
- accelgroup = $menu->get_accel_group
- $menu->set_accel_group ($accel_group)
- string = $menu->get_accel_path
- $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)
- $menu->attach_to_widget ($attach_widget, $detacher)
- widget = $menu->get_attach_widget
- $menu->detach
- list = Gtk2::Menu->get_for_attach_widget ($widget)
- integer = $menu->get_monitor
- $menu->set_monitor ($monitor_num)
- $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)
- boolean = $menu->get_tearoff_state
- $menu->set_tearoff_state ($torn_off)
- string = $menu->get_title
- $menu->set_title ($title)
- PROPERTIES
- SIGNALS
- ENUMS AND FLAGS
- SEE ALSO
- COPYRIGHT
NAME
Gtk2::MenuHIERARCHY
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)
-
- *
- $accel_group (Gtk2::AccelGroup)
string = $menu->get_accel_path
- Since: gtk+ 2.14
$menu->set_accel_path ($accel_path)
-
- *
- $accel_path (string)
widget = $menu->get_active
$menu->set_active ($index)
-
- *
- $index (integer)
$menu->attach ($child, $left_attach, $right_attach, $top_attach, $bottom_attach)
-
- *
- $child (Gtk2::Widget)
- *
- $left_attach (integer)
- *
- $right_attach (integer)
- *
- $top_attach (integer)
- *
- $bottom_attach (integer)
Since: gtk+ 2.4
$menu->attach_to_widget ($attach_widget, $detacher)
-
- *
- $attach_widget (Gtk2::Widget)
- *
- $detacher (scalar)
widget = $menu->get_attach_widget
$menu->detach
list = Gtk2::Menu->get_for_attach_widget ($widget)
-
- *
- $widget (Gtk2::Widget)
Since: gtk+ 2.6
integer = $menu->get_monitor
- Since: gtk+ 2.14
$menu->set_monitor ($monitor_num)
-
- *
- $monitor_num (integer)
Since: gtk+ 2.4
$menu->popdown
$menu->popup ($parent_menu_shell, $parent_menu_item, $menu_pos_func, $data, $button, $activate_time)
-
- *
- $parent_menu_shell (Gtk2::Widget or undef)
- *
- $parent_menu_item (Gtk2::Widget or undef)
- *
- $menu_pos_func (scalar)
- *
- $data (scalar)
- *
- $button (integer)
- *
- $activate_time (integer)
$menu->reorder_child ($child, $position)
-
- *
- $child (Gtk2::Widget)
- *
- $position (integer)
$menu->reposition
$menu->set_screen ($screen)
-
- *
- $screen (Gtk2::Gdk::Screen)
Since: gtk+ 2.2
boolean = $menu->get_tearoff_state
$menu->set_tearoff_state ($torn_off)
-
- *
- $torn_off (boolean)
string = $menu->get_title
$menu->set_title ($title)
-
- *
- $title (string)
PROPERTIES
- 'accel-group' (Gtk2::AccelGroup : readable / writable / private)
- The accel group holding accelerators for the menu
- 'accel-path' (string : readable / writable / private)
- An accel path used to conveniently construct accel paths of child items
- 'active' (integer : readable / writable / private)
- The currently selected menu item
- 'attach-widget' (Gtk2::Widget : readable / writable / private)
- The widget the menu is attached to
- 'monitor' (integer : readable / writable / private)
- The monitor the menu will be popped up on
- 'reserve-toggle-size' (boolean : readable / writable / private)
- A boolean that indicates whether the menu reserves space for toggles and icons
- '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
- *
- 'none' / 'GTK_SCROLL_NONE'
- *
- 'jump' / 'GTK_SCROLL_JUMP'
- *
- 'step-backward' / 'GTK_SCROLL_STEP_BACKWARD'
- *
- 'step-forward' / 'GTK_SCROLL_STEP_FORWARD'
- *
- 'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD'
- *
- 'page-forward' / 'GTK_SCROLL_PAGE_FORWARD'
- *
- 'step-up' / 'GTK_SCROLL_STEP_UP'
- *
- 'step-down' / 'GTK_SCROLL_STEP_DOWN'
- *
- 'page-up' / 'GTK_SCROLL_PAGE_UP'
- *
- 'page-down' / 'GTK_SCROLL_PAGE_DOWN'
- *
- 'step-left' / 'GTK_SCROLL_STEP_LEFT'
- *
- 'step-right' / 'GTK_SCROLL_STEP_RIGHT'
- *
- 'page-left' / 'GTK_SCROLL_PAGE_LEFT'
- *
- 'page-right' / 'GTK_SCROLL_PAGE_RIGHT'
- *
- 'start' / 'GTK_SCROLL_START'
- *
- 'end' / 'GTK_SCROLL_END'
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::MenuShellCOPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre