Prima::Widget::ScrollWidget - scrollable generic document widget
Prima::Widget::ScrollWidget is a simple class that declares two pairs of properties, delta and limit for vertical and horizontal axes, which define the extensions of a virtual document. limit is the document dimension, and delta is the current offset.
Prima::Widget::ScrollWidget
Prima::Widget::ScrollWidget is a descendant of Prima::Widget::GroupScroller, and as well as its ascendant, provides the same user navigation by two scrollbars. The scrollbars' partial and whole properties are automatically updated when the document or widget extensions change.
Prima::Widget::GroupScroller
partial
whole
Prima::Widget::ScrollGroup provides the capability of hosting other widgets inside, and also scrolling them. Useful for widget group panels that cannot fit in a window
Prima::Widget::ScrollGroup
Selects the horizontal and vertical document offsets.
Selects the horizontal document offset.
Selects the vertical document offset.
Selects the horizontal and vertical document extensions.
Selects the horizontal document extension.
Selects the vertical document extension.
Called whenever the client area is to be scrolled. The default action calls Widget::scroll .
Widget::scroll
Returns the parent widget to insert other widgets. The client size is fixed and is panned through the slave widget when scrolling. The client is unaffected by the eventual automated pack/place/growMode size alteration the parent or slave might be subjected to.
A clientClass widget is inserted in the slave widget.
clientClass
slave
Returns the slave widget. The slave widget covers the scrollable area and is otherwise just a normal Prima::Widget object that can be resized, moved, etc.
Prima::Widget
A slaveClass widget is inserted directly in the scroll group widget.
slaveClass
Dmitry Karasik, <dmitry@karasik.eu.org>.
Prima, Prima::ImageViewer, Prima::ScrollBar, examples/e.pl.
To install Prima, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prima
CPAN shell
perl -MCPAN -e shell install Prima
For more information on module installation, please visit the detailed CPAN module installation guide.