5#ifndef INCLUDE_FIFECHAN_WIDGETS_IMAGEPROGRESSBAR_HPP_
6#define INCLUDE_FIFECHAN_WIDGETS_IMAGEPROGRESSBAR_HPP_
8#include <fifechan/widget.hpp>
23 class FIFEGUI_API ImageProgressBar :
public Widget
62 void draw(
Graphics* graphics)
override;
69 void setOpaque(
bool opaque);
74 bool isOpaque()
const;
82 void setBarImage(
Image* image);
87 Image const * getBarImage()
const;
95 void setForegroundImage(
Image* image);
100 Image const * getForegroundImage()
const;
107 void setOrientation(Orientation orientation);
112 Orientation getOrientation()
const;
119 int getMaxValue()
const;
126 void setMaxValue(
int value);
133 int getValue()
const;
140 void setValue(
int value);
146 void resizeToContent(
bool recursion)
override;
147 void adjustSize()
override;
159 void adjustSizeImpl();
Abstract interface providing primitive drawing functions (lines, rectangles, etc.).
Displays progress using images.
int mValue
Holds the current progress bar value.
int mMaxValue
Value when progress bar is full.
Orientation
Orientation of the progress bar (horizontal or vertical).
bool mInternalImage
True if the image has been loaded internally, false otherwise.
Orientation mOrientation
ImageProgressBar's orientation.
Image const * mForegroundImage
Foreground image.
Image const * mBarImage
Bar image.
bool mOpaque
True if the widget is opaque, false otherwise.
Abstract holder for image data.