Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

Bar class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Bar Class Reference

UI class for drawing bar graphs. More...

#include <OBAR.H>

List of all members.

Public Methods

void init (int, int, int, int, int)
void deinit (void)
void paint (void)
int detect (void)
void refresh (void)
 Bar ()
virtual ~Bar ()

Public Attributes

short bar_x1
short bar_y1
short bar_x2
short bar_y2
short bar_y
short bar_width
short bar_height
int bar_color
char ** option_desc
short * bar_bitmap
Fontfont_ptr
char init_flag


Detailed Description

UI class for drawing bar graphs.

Definition at line 16 of file OBAR.H.


Constructor & Destructor Documentation

Bar::Bar  
 

Definition at line 24 of file OBAR.CPP.

Bar::~Bar   [virtual]
 

Definition at line 30 of file OBAR.CPP.

References deinit().


Member Function Documentation

void Bar::deinit void   
 

Definition at line 61 of file OBAR.CPP.

References bar_bitmap, init_flag, mem_del, and NULL.

Referenced by ~Bar().

int Bar::detect void   
 

Definition at line 103 of file OBAR.CPP.

References bar_x1, bar_x2, bar_y1, bar_y2, and init_flag.

void Bar::init int    x1,
int    y1,
int    x2,
int    y2,
int    barColor
 

<int> x1, y1 = upper left corner of the bar <int> x2, y2 = lower right corner of the bar <int> barColor = color of buttons (default = vga_back.color_border)

Definition at line 43 of file OBAR.CPP.

References bar_bitmap, bar_color, bar_height, bar_width, bar_x1, bar_x2, bar_y1, bar_y2, Font::font_height, font_ptr, init_flag, and NULL.

void Bar::paint void   
 

Definition at line 75 of file OBAR.CPP.

References bar_bitmap, bar_x1, bar_x2, bar_y1, bar_y2, and refresh().

void Bar::refresh void   
 

Definition at line 87 of file OBAR.CPP.

References bar_bitmap, bar_x1, bar_x2, bar_y1, and bar_y2.

Referenced by paint().


Member Data Documentation

short* Bar::bar_bitmap
 

Definition at line 24 of file OBAR.H.

Referenced by deinit(), init(), paint(), and refresh().

int Bar::bar_color
 

Definition at line 22 of file OBAR.H.

Referenced by init().

short Bar::bar_height
 

Definition at line 21 of file OBAR.H.

Referenced by init().

short Bar::bar_width
 

Definition at line 21 of file OBAR.H.

Referenced by init().

short Bar::bar_x1
 

Definition at line 18 of file OBAR.H.

Referenced by detect(), init(), paint(), and refresh().

short Bar::bar_x2
 

Definition at line 18 of file OBAR.H.

Referenced by detect(), init(), paint(), and refresh().

short Bar::bar_y
 

Definition at line 20 of file OBAR.H.

short Bar::bar_y1
 

Definition at line 18 of file OBAR.H.

Referenced by detect(), init(), paint(), and refresh().

short Bar::bar_y2
 

Definition at line 18 of file OBAR.H.

Referenced by detect(), init(), paint(), and refresh().

Font* Bar::font_ptr
 

Definition at line 25 of file OBAR.H.

Referenced by init().

char Bar::init_flag
 

Definition at line 26 of file OBAR.H.

Referenced by deinit(), detect(), and init().

char** Bar::option_desc
 

Definition at line 23 of file OBAR.H.


The documentation for this class was generated from the following files:
Generated on Fri Aug 23 01:39:00 2002 for VirtualU by doxygen1.2.17