Prima::FrameSet(3)

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

πŸ’… NAME πŸ’…

Prima::FrameSet β€” it's the frameset widget, bestie. that's the whole name. that's the whole vibe.

(this one's from the User Contributed Perl Documentation corner of the manual, hi, welcome 🫢)


✨ SYNOPSIS ✨

ok so here's literally the whole thing, copy it, run it, slay:

        use Prima qw(Application Buttons FrameSet);

        my $w = Prima::MainWindow->create( size => [300, 150] );

        my $frame = $w-> insert( 'FrameSet' =>
                pack          => { fill => 'both', expand => 1 },
                frameSizes    => [qw(60% *)],
                frameProfiles => [ 0,0, { minFrameWidth => 123 }],
        );

        $frame->insert_to_frame( 0, Button =>
                bottom        => 50,
                text          => '~Ok',
        );

        run Prima;

like… look at it. frameSizes with a 60% and a *? frameProfiles with an inline { minFrameWidth => 123 }? the way this just works?? iconic. πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

so <rainbow>Prima::FrameSet</rainbow> gives you the standard frameset widget. that's the whole serve. πŸ’…

what it actually does, bestie: the frameset divides its surface among groups of children, and it lets you interactively change that surface by dragging the frame bars with the mouse. yes, with the mouse. drag it. go off. πŸ–±οΈβœ¨

and the little detail nobody tells you β€” this module defines the fra:: and frr:: constants, which get used by the arrangement and resizeMethod properties respectively. say it with me: fra:: β†’ arrangement, frr:: β†’ resizeMethod. iykyk. πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

Vadim Belman, <voland@lflat.org> β€” thank you for the widget, king. 🫑


🌸 SEE ALSO 🌸

  • Prima β€” the whole ecosystem, start here
  • Prima::Widget β€” the widget situation
  • examples/frames.pl. β€” an actual example file, go look at it fr fr

πŸ’– sign-off πŸ’–

this page ships with perl v5.42.0, dated 2024-08-20, and it's Prima::FrameSet(3) β€” periodt. 🩷✨ go drag some frame bars, you earned it. 🧚

πŸ“¦ where this page comes from