Prima::Spinner(3)

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

πŸ’– 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 πŸ’–
  • color COLOR β€” inherited from Prima::Widget. color manages the basic foreground color. For the spinner widget, this means the background color of the circle or the color of the drops πŸ’§
  • hiliteColor COLOR β€” inherited from Prima::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 the circle style ✨
  • showPercent BOOLEAN β€” if set, displays completion percent as text. Only for the circle style πŸ”’
  • start β€” same as active(1) βœ…
  • stop β€” same as active(0) πŸ›‘
  • style STRING β€” style can 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' πŸŒ€
  • value INT β€” an integer value between 0 and 100, shows completion percentage. Only for the circle style πŸ’―
  • toggle β€” same as active(!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