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

Password:

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

Slider Class Reference

UI base class for creating and handling sliders. More...

#include <OSLIDER.H>

List of all members.

Public Methods

void init (int, int, int, int, int, int *, int, int=0, int=0)
void paint ()
void refresh ()
int detect ()

Public Attributes

short slider_x1
short slider_y1
short slider_x2
short slider_y2
short bar_width
char bar_color
char bar_color2
char enable_flag
int * var_ptr
int max_value
int std_value


Detailed Description

UI base class for creating and handling sliders.

Definition at line 10 of file OSLIDER.H.


Member Function Documentation

int Slider::detect void   
 

Return : 1-pressed on slider, variable updated 0-not pressed on slider

Definition at line 132 of file OSLIDER.CPP.

void Slider::init int    x1,
int    y1,
int    barWidth,
int    sliderHeight,
int    barColor,
int *    varPtr,
int    maxValue,
int    stdValue = 0,
int    barColor2 = 0
 

<int> x1, y1 = location of the slider <int> barWidth = width of the slider bar [int] sliderHeight = if 0, use the default SLIDER_HEIGHT <int> barColor = color of the slider bar <int*> varPtr = pointer to the slider varialbe <int> maxValue = maximum value of the variable

[int] stdValue = the standard value, color is different when it is below or above the stdValue (default : no standard value)

[int] barColor2 = the color when the current bar value > standard value only necessary when stdValue is passed

Definition at line 33 of file OSLIDER.CPP.

References SLIDER_HEIGHT.

void Slider::paint  
 

Definition at line 62 of file OSLIDER.CPP.

void Slider::refresh  
 

Definition at line 72 of file OSLIDER.CPP.

References Vga::active_buf.


Member Data Documentation

char Slider::bar_color
 

Definition at line 15 of file OSLIDER.H.

char Slider::bar_color2
 

Definition at line 15 of file OSLIDER.H.

short Slider::bar_width
 

Definition at line 13 of file OSLIDER.H.

char Slider::enable_flag
 

Definition at line 17 of file OSLIDER.H.

int Slider::max_value
 

Definition at line 19 of file OSLIDER.H.

short Slider::slider_x1
 

Definition at line 12 of file OSLIDER.H.

short Slider::slider_x2
 

Definition at line 12 of file OSLIDER.H.

short Slider::slider_y1
 

Definition at line 12 of file OSLIDER.H.

short Slider::slider_y2
 

Definition at line 12 of file OSLIDER.H.

int Slider::std_value
 

Definition at line 19 of file OSLIDER.H.

int* Slider::var_ptr
 

Definition at line 18 of file OSLIDER.H.


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