5#ifndef INCLUDE_FIFECHAN_WIDGETS_ICONPROGRESSBAR_HPP_
6#define INCLUDE_FIFECHAN_WIDGETS_ICONPROGRESSBAR_HPP_
8#include <fifechan/widget.hpp>
65 void draw(
Graphics* graphics)
override;
72 void setOpaque(
bool opaque);
77 bool isOpaque()
const;
86 void setImage(
Image* image);
91 Image const * getImage()
const;
99 void setMaxIcons(
int maxIcons);
104 int getMaxIcons()
const;
111 void setOrientation(Orientation orientation);
116 Orientation getOrientation()
const;
134 void setIconCount(
int icons);
139 int getIconCount()
const;
145 void resizeToContent(
bool recursion)
override;
146 void adjustSize()
override;
158 void adjustSizeImpl();
Abstract interface providing primitive drawing functions (lines, rectangles, etc.).
Displays progress using a sequence of icons.
IconProgressBar()
Default constructor.
Orientation mOrientation
IconProgressBar's orientation.
Image const * mImage
Image used by the progress bar.
int mMaxIcons
Count of icons when progress bar is full.
int mIconCounter
Holds how many icons are currently displayed.
bool mOpaque
True if the widget is opaque, false otherwise.
Orientation
Orientation of the IconProgressBar (horizontal or vertical).
bool mInternalImage
True if the image has been loaded internally, false otherwise.
Abstract holder for image data.