Prima::...llWidget(3)

πŸ“¦
version 1.74000 Β· 5 versions
, in opensuse-leap 16.0

okay bestie, welcome to Prima::Widget::ScrollWidget β€” aka the Prima::...llWidget(3) page from the User Contributed Perl Documentation. it’s giving scrollable-document realness and we’re obsessed πŸ’…


πŸ’– NAME πŸ’–

Prima::Widget::ScrollWidget β€” scrollable generic document widget. no cap, that’s the name 🫢

🌸 DESCRIPTION 🌸

okay so Prima::Widget::ScrollWidget is a simple class that declares two pairs of properties β€” delta and limit β€” for the vertical and horizontal axes, and those define the extensions of a virtual document. limit is the document dimension, and delta is the current offset. that’s the whole lore, fr fr πŸ’…

Prima::Widget::ScrollWidget is a descendant of Prima::Widget::GroupScroller, and as well as its ascendant, it provides the same user navigation by two scrollbars. the scrollbars’ partial and whole properties are automatically updated when the document or widget extensions change β€” not me being obsessed with automatic updates, they’re just iconic ✨

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 β€” main character energy for cramped layouts πŸ¦‹

πŸ‘‘ Prima::Widget::ScrollWidget πŸ‘‘

πŸŽ€ Properties πŸŽ€

  • deltas X, Y β€” selects the horizontal and vertical document offsets. the duo, the moment, the offset pair πŸ’–
  • deltaX INTEGER β€” selects the horizontal document offset.
  • deltaY INTEGER β€” selects the vertical document offset.
  • limits X, Y β€” selects the horizontal and vertical document extensions.
  • limitX INTEGER β€” selects the horizontal document extension.
  • limitY INTEGER β€” selects the vertical document extension.

πŸ’« Events πŸ’«

  • Scroll DX, DY β€” called whenever the client area is to be scrolled. the default action calls Widget::scroll. she’s ready to scroll, periodt πŸ’«

🌈 Prima::Widget::ScrollGroup 🌈

πŸ“ Properties πŸ“

  • client β€” 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.
  • clientClass β€” a clientClass widget is inserted in the slave widget.
  • 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.
  • slaveClass β€” a slaveClass widget is inserted directly in the scroll group widget.

πŸ’œ AUTHOR πŸ’œ

Dmitry Karasik, <dmitry@karasik.eu.org>. β€” the author, the icon, the legend πŸ‘‘

🌟 SEE ALSO 🌟

  • Prima
  • Prima::ImageViewer
  • Prima::ScrollBar
  • examples/e.pl

that’s the whole page, bestie 🫢 β€” this gem is from perl v5.42.0, dated 2024-08-20, and it’s giving User Contributed Perl Documentation realness. now go forth and scroll πŸ’…βœ¨

πŸ“¦ where this page comes from