Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

BarGraphWidget Class Reference

#include <bargraphwidget.h>

Inheritance diagram for BarGraphWidget:

Inheritance graph
[legend]
List of all members.

Public Types

typedef vector< pair< double,
int > > 
Colors
enum  Direction { l2r, r2l, t2b, b2t }

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)
 overridable eventhandler to blit the widget contents to the screen

Member Typedef Documentation

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

Definition at line 28 of file bargraphwidget.h.


Member Enumeration Documentation

enum BarGraphWidget::Direction
 

Enumeration values:
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
[virtual]
 

overridable eventhandler to blit the widget contents to the screen

Parameters:
surface pointer to SDL_Surface to be blitted
src source rectangle (client coordinates)
dst destination rectangle (screen coordinates) Override this eventhandler to perform custom blitting behaviour (without drawing onto the widget surface).

Reimplemented from PG_ThemeWidget.

Definition at line 19 of file bargraphwidget.cpp.

References b2t, PG_Application::GetScreen(), PG_Widget::GetTransparency(), l2r, PG_Color::MapRGBA(), max(), min(), r2l, and t2b.

void BarGraphWidget::setColor Colors  colors  )  [inline]
 

Definition at line 39 of file bargraphwidget.h.

void BarGraphWidget::setColor PG_Color  c  )  [inline]
 

Definition at line 38 of file bargraphwidget.h.

void BarGraphWidget::setColor int  c  )  [inline]
 

Definition at line 37 of file bargraphwidget.h.

Referenced by ASCGUI_Window::parsePanelASCTXT().

void BarGraphWidget::setFraction float  f  ) 
 

Definition at line 65 of file bargraphwidget.cpp.

Referenced by StoringPosition::setBargraphValue().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:16:20 2008 for Advanced Strategic Command by  doxygen 1.4.2