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',
);

run Prima;

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

frameCount INTEGER

Number of frames, no less than 2.

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

Default: 2

flexible BOOLEAN

Frame can be resized by user

Default: 1

frameSizes @SIZES

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:

NUMBER%

F.ex. 50%, to occupy the part defined by the procent of the whole width

NUMBER

Explicit width in pixels

'*'

Asterisk calculated the width automatically

Example:

frameSizes => [qw(50% *)],
opaqueResize BOOLEAN

Whether dragging of a frame bar is interactive, or is an old-style with a marquee

Default: 1

sliderWidth PIXELS

Slider width in pixels.

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

vertical BOOLEAN

Sets the direction in which frames are inserted

Default: 0

Methods

firstFrame

Returns the first frame

lastFrame

Returns the last frame

frames

Returns all the frames

frame N

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.