class::draw::BarProgress

class draw::BarProgress
  : public draw::Progress

The Bar Progress Class displays a progress bar on the screen.

The following code snippet will draw a progress bar using the given DrawingAttributes. It will be drawn along the top using 100% of the width (10001000) and 10% of the height (1001000).

DrawingAttributes attributes;

BarProgress()
.set_progress(25, 100) //25% complete
.set_border_thickness(25) //border with 25 of height/2 can be up to 100
.set_background_color(0) //color 0 background
.set_color(1) //color 1 foreground
.draw(attributes + DrawingPoint(0,0) + DrawingArea(1000,100));

Summary

BarProgress()

virtual void draw_to_scale(

const DrawingScaledAttr & attr
)

Members

BarProgress()

virtual void draw_to_scale(

const DrawingScaledAttr & attr
)

This methods draws the drawing on the specified attributes.

Parameters

  • attr Specifies the bitmap, point and area to draw the drawing

X

Thanks for Coming!

Subscribe to news and updates