class XtProgressBar: public XObject

Progress bar

Inheritance:

XtProgressBar - XObject - XEventBroker


Public Methods

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


Inherited from XObject:

Public Methods

ovirtual void CalculateBounds()
oXRect GetBounds()
ovirtual XEvent* GetEvent()
ounsigned long GetId()
ochar* GetObjClass()
oXPoint GetOrigin()
ovirtual char* GetPalette()
ovirtual unsigned GetPalEntry(unsigned __Index)
oXPoint GetSize()
ounsigned long GetState()
ovirtual bool GetState(unsigned long __Mask)
ovirtual void HandleEvent(XEvent *__Event)
ovirtual void MoveTo(XPoint __p)
ovirtual bool ProcessEvent(XEvent *__Event)
ovirtual void RegisterClient(XObject *__Client)
ovirtual void Resize(XPoint __delta)
ovirtual void SetPalette(char *__Pal, unsigned __PalLen)
ovirtual void SetState(unsigned long __Mask, bool __BoolValue)
ovirtual void UnregisterClient(XObject *__Client)

Protected Fields

ounsigned long Id
ounsigned long State
oXPoint Origin
oXPoint Size
oXPoint Cursor
oXRect Bounds
ochar ObjClass[40]
ochar Pal[80]
ounsigned PalLen
oXObject* Server
oClientList Clients

Protected Methods

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


Inherited from XEventBroker:

Public Methods

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

Protected Fields

oMap __map


Inherited from XObjectEventListener:

Public Methods

ovirtual bool ProcessMouseEvent(XMouseEvent *__Event)
ovirtual bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
ovirtual bool ProcessMessage(XMessage *__Event)
ovirtual bool ProcessCommand(XMessage *__Event)
ovirtual bool ProcessSignal(XEvent *__Event)
ovirtual bool ProcessBroadcast(XEvent *__Event)


Inherited from XEventListener:


Documentation

Progress bar
o XtProgressBar(XRect __r, unsigned 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

ovirtual void Draw()
Draws the object

ovirtual float GetPercent()
Returns the progress percentual value

ovirtual unsigned long GetTotalNo()
Returns the total items number

ovirtual unsigned long GetValue()
Returns the current count value

ovirtual void SetTotalNo(unsigned long __ItemNo)
Change the total items number

ovirtual void SetValue(unsigned long __ItemNo)
Change the current count value


This class has no child classes.

Go to the
hierarchy of classes.


Copyright ©1998-2001 Dragos Acostachioaie
Last update on October 27, 2001

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