Advanced Strategic Command
Public Types | Public Member Functions | List of all members
BarGraphWidget Class Reference

#include <bargraphwidget.h>

Inheritance diagram for BarGraphWidget:
Inheritance graph
[legend]

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)
 

Detailed Description

Definition at line 24 of file bargraphwidget.h.

Member Typedef Documentation

typedef vector<pair<double,int> > BarGraphWidget::Colors

Definition at line 28 of file bargraphwidget.h.

Member Enumeration Documentation

Enumerator
l2r 
r2l 
t2b 
b2t 

Definition at line 29 of file bargraphwidget.h.

Constructor & Destructor Documentation

BarGraphWidget::BarGraphWidget ( PG_Widget *  parent,
const PG_Rect &  rect,
Direction  direction 
)

Definition at line 15 of file bargraphwidget.cpp.

Member Function Documentation

void BarGraphWidget::eventBlit ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 
)

Definition at line 19 of file bargraphwidget.cpp.

References b2t, l2r, max(), min(), r2l, and t2b.

void BarGraphWidget::setColor ( int  c)
inline
void BarGraphWidget::setColor ( PG_Color  c)
inline

Definition at line 38 of file bargraphwidget.h.

void BarGraphWidget::setColor ( Colors  colors)
inline

Definition at line 39 of file bargraphwidget.h.

void BarGraphWidget::setFraction ( float  f)

The documentation for this class was generated from the following files: