5#ifndef INCLUDE_FIFECHAN_WIDGETS_IMAGEPROGRESSBAR_HPP_
6#define INCLUDE_FIFECHAN_WIDGETS_IMAGEPROGRESSBAR_HPP_
13#include <fifechan/widget.hpp>
25 class FIFEGUI_API ImageProgressBar :
public Widget
64 void draw(
Graphics* graphics)
override;
71 void setOpaque(
bool opaque);
76 bool isOpaque()
const;
85 void setBarImage(
Image* image);
90 Image const * getBarImage()
const;
99 void setForegroundImage(
Image* image);
104 Image const * getForegroundImage()
const;
111 void setOrientation(Orientation orientation);
116 Orientation getOrientation()
const;
123 int getMaxValue()
const;
130 void setMaxValue(
int value);
137 int getValue()
const;
144 void setValue(
int value);
150 void resizeToContent(
bool recursion =
true)
override;
151 void adjustSize()
override;
163 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.
Used replacement tokens by configure_file():