1Prima::Widget::ScrollWiUdsgeert(C3o)ntributed Perl DocumPernitmaat:i:oWnidget::ScrollWidget(3)
2
3
4

NAME

6       Prima::Widget::ScrollWidget - scrollable generic document widget.
7

DESCRIPTION

9       "Prima::Widget::ScrollWidget" is a simple class that declares two pairs
10       of properties, delta and limit for vertical and horizontal axes, which
11       define a a virtual document. limit is the document dimension, and delta
12       is the current offset.
13
14       "Prima::Widget::ScrollWidget" is a descendant of
15       "Prima::Widget::GroupScroller", and, as well as its ascendant, provides
16       same user navigation by two scrollbars. The scrollbars' "partial" and
17       "whole" properties are maintained if the document or widget extensions
18       change.
19
20       "Prima::Widget::ScrollGroup" in addition provides capability to host
21       other widgets inside, and scroll them. Useful for widget group panels
22       that cannot. fit in window
23

Prima::Widget::ScrollWidget

25   Properties
26       deltas X, Y
27           Selects horizontal and vertical document offsets.
28
29       deltaX INTEGER
30           Selects horizontal document offset.
31
32       deltaY INTEGER
33           Selects vertical document offset.
34
35       limits X, Y
36           Selects horizontal and vertical document extensions.
37
38       limitX INTEGER
39           Selects horizontal document extension.
40
41       limitY INTEGER
42           Selects vertical document extension.
43
44   Events
45       Scroll DX, DY
46           Called whenever the client area is to be scrolled. The default
47           action calls "Widget::scroll" .
48

Prima::Widget::ScrollGroup

50   Properties
51       client
52           Return a parent widget to insert other widgets to. The client size
53           is fixed, and is panned through the slave widget when scrolling.
54           The client is unaffected by eventual automated pack/place/growMode
55           size alteration the parent or slave might have.
56
57       clientClass
58           "clientClass" widget is inserted in the "slave" widget.
59
60       slave
61           Returns the slave widget. The slave widget designated the area
62           desired to be scrollable, and is just a normal widget that is
63           allowed to be resized, moved, etc.
64
65       slaveClass
66           "slaveClass" widget is inserted directly in the scroll group
67           widget.
68

AUTHOR

70       Dmitry Karasik, <dmitry@karasik.eu.org>.
71

SEE ALSO

73       Prima, Prima::ImageViewer, Prima::ScrollBar, examples/e.pl.
74
75
76
77perl v5.38.0                      2023-07-21    Prima::Widget::ScrollWidget(3)
Impressum