BarGraphWidget Class Reference

#include <bargraphwidget.h>

List of all members.

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

enum BarGraphWidget::Direction

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::setFraction ( float  f  ) 

Definition at line 65 of file bargraphwidget.cpp.

Referenced by StoringPosition::setBargraphValue().

void BarGraphWidget::setColor ( int  c  )  [inline]

Definition at line 37 of file bargraphwidget.h.

Referenced by ASCGUI_Window::WidgetParameters::assign(), and ASCGUI_Window::parsePanelASCTXT().

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::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.


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:46:22 2012 for Advanced Strategic Command by  doxygen 1.5.1