NAME

Prima::Menus - menu widgets

DESCRIPTION

This module contains classes that can create menu widgets used as regular widgets, without any special considerations about system-depended menus.

SYNOPSIS

use Prima qw(Application Menus);
my $w = Prima::MainWindow->new(
	accelItems => [['~File' => [
		['Exit' => sub { exit } ],
	]]],
	onMouseDown => sub {
		Prima::Menu::Popup->new(menu => $_[0]-> accelTable)->popup;
	},
	height => 100,
);
$w->insert( 'Prima::Menu::Bar',
	pack  => { fill => 'x', expand => 1},
	menu  => $w-> accelTable,
);
run Prima;

AUTHOR

Dmitry Karasik, <dmitry@karasik.eu.org>.

SEE ALSO

Prima, Prima::Menu, examples/menu.pl