Xterminal Home Page Main page

class XtProgressBar : public XObject

Progress bar

Inheritance:

XtProgressBar - XObject - XEventBroker


Public Methods

virtual void Draw()
Draws the object
float GetPercent()
Returns the progress percentual value
long GetTotalNo()
Returns the total items number
long GetValue()
Returns the current count value
void SetTotalNo(long __ItemNo)
Sets the total items number
void SetValue(long __ItemNo)
Sets the current count value
XtProgressBar(XRect __r, long __TotalNo, unsigned __Direction)
Constructs a new XtProgressBar

Inherited from XObject:

Public Methods

virtual void CalculateBounds()
XRect GetBounds()
virtual XEvent* GetEvent()
unsigned long GetId()
char* GetObjClass()
XPoint GetOrigin()
virtual unsigned GetPalEntry(unsigned __Index)
virtual char* GetPalette()
XPoint GetSize()
virtual unsigned GetState(unsigned long __Mask)
unsigned long GetState()
virtual void HandleEvent(XEvent *__Ev)
virtual void MoveTo(XPoint __p)
virtual void RegisterClient(XObject *__NewClient)
virtual void SetPalette(char *__Pal, unsigned __PalLen)
virtual void SetState(unsigned long __Mask, unsigned __BoolValue)

Protected Fields

XRect Bounds
SLList < XObject * > Clients
XPoint Cursor
unsigned long Id
char ObjClass[40]
XPoint Origin
char Pal[80]
unsigned PalLen
XObject* Server
XPoint Size
unsigned long State

Protected Methods

int SendMessage(unsigned long __Receiver, unsigned long __Class, void *__Body, unsigned long __Size)
int SendMessage(unsigned long __Receiver, unsigned long __Class, long __Message)

Inherited from XEventBroker:

Public Methods

void AddListener(unsigned long __Listener, unsigned __Class)
void DelListener(unsigned long __Listener)
void DelListener(unsigned long __Listener, unsigned __Class)

Protected Fields

Map __map

Inherited from XObjectEventListener:

Public Methods

virtual int ProcessBroadcast(XEvent *__Event)
virtual int ProcessCommand(XMessage *__Event)
virtual int ProcessEvent(XEvent *__Event)
virtual int ProcessKeyboardEvent(XKeyboardEvent *__Event)
virtual int ProcessMessage(XMessage *__Event)
virtual int ProcessMouseEvent(XMouseEvent *__Event)
virtual int ProcessSignal(XEvent *__Event)

Inherited from XEventListener:


Documentation

Progress bar
XtProgressBar(XRect __r, long __TotalNo, unsigned __Direction)
Constructs a new XtProgressBar
Parameters:
__r - bar bounds
__TotalNo - total items number
__Direction - direction the progress is going, which can be:

PB_LEFT_TO_RIGHT left to the right

PB_RIGHT_TO_LEFT right to the left

PB_BOTTOM_TO_TOP bottom to the top

PB_TOP_TO_BOTTOM top to the bottom

virtual void Draw()
Draws the object

float GetPercent()
Returns the progress percentual value

long GetTotalNo()
Returns the total items number

long GetValue()
Returns the current count value

void SetTotalNo(long __ItemNo)
Sets the total items number

void SetValue(long __ItemNo)
Sets the current count value


This class has no child classes.

Go to the
hierarchy of classes.


Copyright ©1998 Dragos Acostachioaie
Last update on May 29, 1998

This page was generated with the help of doc++.