Prima::Menus(3)

πŸ“¦
version 1.74000 Β· 5 versions
, in opensuse-leap 16.0

πŸ’– 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