Scroll to navigation

Prima::FrameSet(3) User Contributed Perl Documentation Prima::FrameSet(3)

NAME

Prima::FrameSet - frameset widget

SYNOPSIS

        use Prima qw(Application Buttons FrameSet);
        my $w = Prima::MainWindow->new( 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',
        );
        Prima->run;

DESCRIPTION

Provides the standard frameset widget. The frameset divides its surface among groups of children and allows interactive change of the surface by dragging the frame bars with the mouse.

API

Properties

Number of frames, no less than 2.

This property can be set during creation only, thereafter it is readonly

Default: 2

Frame can be resized by user

Default: 1

Defines the widths of the frames, where each item in the array represents the width of the related frame. The item can be one of:
F.ex. 50%, to occupy the part defined by the procent of the whole width
Explicit width in pixels
'*'
Asterisk calculated the width automatically

Example:

   frameSizes => [qw(50% *)],
Whether dragging of a frame bar is interactive, or is an old-style with a marquee

Default: 1

Slider width in pixels.

When setting it explicitly, consider "uiScaling" in Prima::Application , the visual aspect.

Sets the direction in which frames are inserted

Default: 0

Methods

Returns the first frame
Returns the last frame
Returns all the frames
Returns the frame N

sub insert_to_frame N, CLASS, PARAMETERS

CLASS and PARAMETERS are same as in "insert", but reference the frame N

AUTHOR

Vadim Belman, <voland@lflat.org>

SEE ALSO

Prima, Prima::Widget, examples/frames.pl.

2025-03-13 perl v5.40.1