Advanced Strategic Command
|
#include <bargraphwidget.h>
Public Types | |
enum | Direction { l2r, r2l, t2b, b2t } |
typedef vector< pair< double, int > > | Colors |
Public Member Functions | |
BarGraphWidget (PG_Widget *parent, const PG_Rect &rect, Direction direction) | |
void | setFraction (float f) |
void | setColor (int c) |
void | setColor (PG_Color c) |
void | setColor (Colors colors) |
void | eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
Definition at line 24 of file bargraphwidget.h.
typedef vector<pair<double,int> > BarGraphWidget::Colors |
Definition at line 28 of file bargraphwidget.h.
Enumerator | |
---|---|
l2r | |
r2l | |
t2b | |
b2t |
Definition at line 29 of file bargraphwidget.h.
BarGraphWidget::BarGraphWidget | ( | PG_Widget * | parent, |
const PG_Rect & | rect, | ||
Direction | direction | ||
) |
Definition at line 15 of file bargraphwidget.cpp.
void BarGraphWidget::eventBlit | ( | SDL_Surface * | surface, |
const PG_Rect & | src, | ||
const PG_Rect & | dst | ||
) |
|
inline |
Definition at line 37 of file bargraphwidget.h.
Referenced by ASCGUI_Window::WidgetParameters::assign(), ASCGUI_Window::parsePanelASCTXT(), and ASCGUI_Window::setBarGraphColor().
|
inline |
Definition at line 38 of file bargraphwidget.h.
|
inline |
Definition at line 39 of file bargraphwidget.h.
void BarGraphWidget::setFraction | ( | float | f | ) |
Definition at line 64 of file bargraphwidget.cpp.
Referenced by StoringPosition::setBargraphValue(), and ASCGUI_Window::setBargraphValue().