5#ifndef INCLUDE_FIFECHAN_WIDGETS_ICONPROGRESSBAR_HPP_
6#define INCLUDE_FIFECHAN_WIDGETS_ICONPROGRESSBAR_HPP_
13#include <fifechan/widget.hpp>
73 void draw(
Graphics* graphics)
override;
80 void setOpaque(
bool opaque);
85 bool isOpaque()
const;
95 void setImage(
Image* image);
100 Image const * getImage()
const;
108 void setMaxIcons(
int maxIcons);
113 int getMaxIcons()
const;
120 void setOrientation(Orientation orientation);
125 Orientation getOrientation()
const;
144 void setIconCount(
int icons);
149 int getIconCount()
const;
155 void resizeToContent(
bool recursion =
true)
override;
156 void adjustSize()
override;
168 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.
Used replacement tokens by configure_file():