Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CUI_ProgressBar Class Reference

a general purpose progress bar More...

#include <CUI_ProgressBar.h>

Inheritance diagram for CUI_ProgressBar:

CUI_Widget CUI_Frame CUI_SliderBar List of all members.

Public Member Functions

 CUI_ProgressBar (CUI_UI *ui=NULL, float x=0, float y=0, float x2=1, float y2=1, CUI_Frame *parent=NULL, IUI_Shader *shader=NULL, IUI_Shader *cursor=NULL, CUI_CoordSys *coordsys=NULL, char *text=NULL, IUI_Font *font=NULL, float textscale=0.8, IUI_Border *border=NULL, float min=0, float max=100, float value=0, IUI_Shader *barshader=NULL, bool displayValue=false)
 constructor

virtual ~CUI_ProgressBar ()
 destructor

virtual bool Render (double dtime, IUI_Renderer *renderer)
 overloaded render

virtual bool SetRange (float min, float max)
 set display range

virtual bool GetRange (v2_f range)
 get the range

virtual bool SetValue (float val)
 set the value this progress bar displays

virtual float GetValue (void)
 get the value

virtual bool SetBarShader (IUI_Shader *shader)
 set the shader to use for the Slider

virtual bool SetDisplayValue (bool disp)
 Set displayvalue - to display "value/max" after m_text.


Protected Attributes

float m_min
 minimum value in the range

float m_max
 maximum value in the range

float m_value
 current value of the progress bar

IUI_Shaderm_barshader
 shader to use for the progress bar.

bool m_displayValue
 Display current value/max after text.


Detailed Description

a general purpose progress bar

used to show:
loading media
calculating something

Recognized flags:
[system]
UI_CLICKED
UI_HOVER
UI_SELECTED

UI_DISABLED
UI_INACTIVE
UI_SQUEEZE
UI_INVERT
UI_VERTICAL


The documentation for this class was generated from the following files:
Generated on Mon Sep 29 23:07:04 2003 for glGUI by doxygen 1.3.4