Prima::Spinner(3)
π NAME π
okay bestie, this is Prima::Spinner β spinner animation widget energy, and the manual page is Prima::Spinner(3) πβ¨
β¨ SYNOPSIS β¨
here's the whole setup, fr fr β copy-paste it exactly:
use Prima qw(Application Buttons Spinner);
my $mw = Prima::MainWindow->new(
size => [200, 400],
text => 'Button Example'
);
my $spinner = $mw->insert('Spinner',
style => 'drops',
size => [200,400],
growMode => gm::Center
);
my $button = $mw->insert(
'Button',
text => 'Start/Stop',
checkable => 1,
checked => 1,
origin => [0,0],
onClick => sub { $spinner->toggle },
growMode => gm::XCenter
);
run Prima;
π DESCRIPTION π
Prima::Spinner provides a simple spinning animation in three different designs, plus the opportunity to specify the colors of the spinning animation. This is useful to show the progress of a running process β literally the "bestie, something is happening" of widgets π
π₯
πΈ USAGE πΈ
π Properties π
active[BOOLEAN]β manages whether the spinning animation is active or not. on/off energy πcolorCOLORβ inherited fromPrima::Widget.colormanages the basic foreground color. For the spinner widget, this means the background color of the circle or the color of the drops π§hiliteColorCOLORβ inherited fromPrima::Widget. The color is used to draw alternate foreground areas with high contrast. For the spinner widget, this defines the color of the arc. Only for thecirclestyle β¨showPercentBOOLEANβ if set, displays completion percent as text. Only for thecirclestyle π’startβ same asactive(1)βstopβ same asactive(0)πstyleSTRINGβstylecan be'drops','circle'or'spiral'.'drops'shows drops with fading colors. The'circle'style features an arc moving around a circle.'spiral'shows a spinning spiral. The default is'drops'πvalueINTβ an integer value between 0 and 100, shows completion percentage. Only for thecirclestyle π―toggleβ same asactive(!active)π
π SEE ALSO π
Go check out Prima, Prima::Widget, and examples/spinner.pl β iykyk πβ¨
π AUTHOR π
Maximilian Lika β iconic author behavior, no cap ππ
xoxo, this page is running on perl v5.42.0, dated 2024-08-20 β and that's the tea π
π
π¦ 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