ProgressBarWidget

Progress bar widget

Constructors

this
this(string ID, int progress)
Undocumented in source.

Members

Functions

measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

Inherited Members

From AbstractProgressBar

_progress
int _progress;
Undocumented in source.
progress
int progress [@property setter]

Set current progress value, 0 .. 1000; -1 == indeterminate, -2 == hidden

progress
int progress [@property getter]

Get current progress value, 0 .. 1000; -1 == indeterminate

indeterminate
bool indeterminate [@property getter]

returns true if progress bar is in indeterminate state

_animationInterval
int _animationInterval;
Undocumented in source.
animationInterval
int animationInterval [@property getter]

get animation interval in milliseconds, if 0 - no animation

animationInterval
int animationInterval [@property setter]

set animation interval in milliseconds, if 0 - no animation

_animationTimerId
ulong _animationTimerId;
Undocumented in source.
scheduleAnimation
void scheduleAnimation()
Undocumented in source. Be warned that the author may not have intended to support it.
stopAnimation
void stopAnimation()
Undocumented in source. Be warned that the author may not have intended to support it.
_animationSpeedPixelsPerSecond
int _animationSpeedPixelsPerSecond;
Undocumented in source.
_animationPhase
long _animationPhase;
Undocumented in source.
_lastAnimationTs
long _lastAnimationTs;
Undocumented in source.
onAnimationTimer
void onAnimationTimer(long millisElapsed)

called on animation timer

onTimer
bool onTimer(ulong id)

handle timer; return true to repeat timer event after next interval, false cancel timer

Meta