other versions
- Tumbleweed 1.76000-1.1
- Leap-16.0
- Leap-15.6
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¶
- 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:
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.
2025-03-13 | perl v5.40.1 |