Skip to content

Commit

Permalink
document Gauge's .indeterminate and .sliderLength
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Sep 17, 2024
1 parent b68fb8f commit 0645d61
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions Prima/Sliders.pm
Original file line number Diff line number Diff line change
Expand Up @@ -893,21 +893,17 @@ sub indeterminate {

# Create the timer for the motion in indeterminate mode
# if it is not still created
unless ( $self->{timer} ) {
$self->{timer} = $self->insert( Timer =>
$self->{timer} //= $self->insert( Timer =>
name => 'Timer',
timeout => 25,
delegations => ['Tick'],
);
}
);

# When the style property is changed, reset the timer frequency
# and the start_angle and for style circle the end_angle, too
if ( $indeterminate) {
$self->{timer}->start;
}

else {
} else {
$self->{timer}->stop;
}
$self->{indeterminate} = $indeterminate;
Expand Down Expand Up @@ -2988,6 +2984,11 @@ Selects the width of the border around the widget.
Default value: 1
=item indeterminate BOOLEAN
If set, the gauge doesn't show the percentage, but shows a moving color strip,
to hint that there's no know percentage. The strip width is C<sliderLength> percents.
=item max INTEGER
Sets the upper limit for C<value>.
Expand All @@ -3000,6 +3001,10 @@ Sets the lower limit for C<value>.
Default value: 0
=item sliderLength INTEGER
See L<indeterminate>.
=item relief INTEGER
Selects the style of the border around the widget. Can be one of the
Expand Down Expand Up @@ -3027,6 +3032,8 @@ eventual text.
Default value: 0.
See also: L<indeterminate>
=item vertical BOOLEAN
If 1, the widget is drawn vertically and the progress bar moves from bottom to top.
Expand Down

0 comments on commit 0645d61

Please sign in to comment.