Prima::...croller(3)
π NAME π
okay so bestie, welcome to the Prima::...croller(3) manual page β the main character here is Prima::Widget::GroupScroller, and she is literally the class for optional automatic scroll bars. periodt. π
β¨
π¦ DESCRIPTION π¦
This class is for widgets that come with optional scroll bars, and it gives you the tools to manage them. It's a descendant of Prima::IntIndents, and it adjusts its indents property whenever scrollbars are shown, hidden, or borderWidth is changed. slay. π
It does not provide range selection for the scrollbars β no cap β descendant classes have to implement that themselves.
The descendant classes must follow these guidelines:
- A class may provide
borderWidth,hScroll,vScroll,autoHScroll, andautoVScrollproperty keys inprofile_default(). - A class'
init()method must call thesetup_indentsmethod.
If a class overrides the autoHScroll and autoVScroll properties, these must be set to 0 before the initialization.
- If a class needs to overload one of the
borderWidth,hScroll,vScroll,autoHScroll, andautoVScrollproperties, it is mandatory to call the inherited properties. iykyk. - A class must implement the scroll bar notification callbacks:
HScroll_ChangeandVScroll_Change. - A class must not use the reserved variable names, which are:
{borderWidth} - internal borderWidth storage
{hScroll} - internal hScroll value storage
{vScroll} - internal vScroll value storage
{hScrollBar} - pointer to the horizontal scroll bar
{vScrollBar} - pointer to the vertical scroll bar
{bone} - rectangular widget between the scrollbars
{autoHScroll} - internal autoHScroll value storage
{autoVScroll} - internal autoVScroll value storage
The reserved method names:
set_h_scroll
set_v_scroll
insert_bone
setup_indents
reset_indents
borderWidth
autoHScroll
autoVScroll
hScroll
vScroll
The reserved widget names:
HScroll
VScroll
Bone
β¨ Properties β¨
autoHScrollBOOLEAN β selects if the horizontal scrollbar is shown and hidden dynamically, depending on the widget layout. πautoVScrollBOOLEAN β selects if the vertical scrollbar is shown and hidden dynamically, depending on the widget layout. πborderWidthINTEGER β width of the border around the widget. It depends on theskinproperty. πhScrollBOOLEAN β selects if the horizontal scrollbar is visible. If it is,{hScrollBar}points to it.vScrollBOOLEAN β selects if the vertical scrollbar is visible. If it is,{vScrollBar}points to it.scrollBarClassSTRING = Prima::ScrollBar β a create-only property that allows to change the scrollbar class. π₯hScrollBarProfile,vScrollBarProfileHASH β create-only properties that allow to adjust the scrollbar parameters when the scrollbars are created.
π«Ά Methods π«Ά
setup_indents
The method is never called directly; it should be called whenever the widget layout is changed so that its indents are affected. The method is a request to recalculate indents, depending on the new widget layout.
The method is not reentrant; to receive this callback and update the widget layout that in turn can result in more setup_indents calls, overload reset_indents.
reset_indents
Called after setup_indents updates the internal widget layout, to give a chance to follow up the layout changes. Does not do anything by default.
π AUTHOR π
Dmitry Karasik, <dmitry@karasik.eu.org>. π«Ά
π SEE ALSO π
Prima, Prima::Lists, Prima::Edit
byeee bestie π this page came from perl v5.42.0 and is dated 2024-08-20 β it's the Prima::...croller(3) manual page, and yes, she ate. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms