Prima::Menus(3)
π Prima::Menus π
okay bestie, welcome to the Prima::Menus(3) page β yes, it's User Contributed Perl Documentation, and we're gonna get you comfy with it. This is the manual page for Prima::Menus, aka menu widgets, and it's lowkey iconic. πβ¨
πΈ NAME πΈ
Prima::Menus - menu widgets ππ
π¦ DESCRIPTION π¦
okay so this module contains classes that can create menu widgets used as regular widgets, without any special considerations about system-depended menus. That's the whole vibe: menu widgets doing regular-widget things, no cap. It's giving "menus, but make it ordinary widgets," and honestly? obsessed. π
π SYNOPSIS π
here's the code vibe check, bestie β copy it exactly:
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 π«Ά
shoutout to the icon behind this: Dmitry Karasik, <dmitry@karasik.eu.org>. π
π SEE ALSO π
go check out Prima, Prima::Menu, and examples/menu.pl β that's the SEE ALSO squad, fr fr. π«Άβ¨
mwah π this cutie of a page is from perl v5.42.0, dated 2024-08-20, and it's still serving Prima::Menus(3) energy. stan. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms