Xterminal Home Page Main page

class XtList : public XObject

Selectable list of items

Inheritance:

XtList - XObject - XEventBroker


Public Methods

virtual void Draw()
Draws the object
virtual LItem* GetValue()
Returns the list content
virtual void InitScrollBar()
Initialize the associated scroll bar
virtual int ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events
virtual int ProcessMessage(XMessage *__Event)
Process message events
virtual int ProcessMouseEvent(XMouseEvent *__Event)
Process mouse events
virtual void Run()
"Runs" the list: waits for events until an item is choosed
virtual void SetState(int __Mask, int __BoolValue)
Sets the object's state
virtual void SetValue(LItem *__Items)
Sets a new list content
XtList(XRect __r, unsigned long __Flags, LItem *__Items)
Constructs a new XtList
virtual unsigned XtList::GetItemsNumber()
Returns the items number
~XtList()
Destructs the object's instance

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()
unsigned long GetState()
virtual unsigned GetState(unsigned long __Mask)
virtual void HandleEvent(XEvent *__Ev)
virtual void MoveTo(XPoint __p)
virtual void RegisterClient(XObject *__NewClient)
virtual void SetPalette(char *__Pal, unsigned __PalLen)

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 ProcessSignal(XEvent *__Event)

Inherited from XEventListener:


Documentation

Selectable list of items
XtList(XRect __r, unsigned long __Flags, LItem *__Items)
Constructs a new XtList
Parameters:
__r - list bounds
__Flags - options, which can be:

SELECTABLE_ITEMS - to allow selection (enable/disable) of items

CIRCULAR_SELECTION - make the list a circular one

HIDE_DISABLED_LIST_ITEMS - hide the items that are disabled
__Items - linked list of items:

struct LItem {
char *Text;
int Value;
LItem *Next;
};

This list can be constructed using the following 2 functions:

LItem *NewLItem(char *__Text, int __Value, LItem *__ANextItem) which builds the entire list, and:

LItem *NewList(char *__Text, unsigned __Count) which builds from a list of char*, containing __Count items, a linked list of items

~XtList()
Destructs the object's instance

virtual void Draw()
Draws the object

virtual unsigned XtList::GetItemsNumber()
Returns the items number

virtual LItem* GetValue()
Returns the list content

virtual void InitScrollBar()
Initialize the associated scroll bar

virtual int ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events

virtual int ProcessMessage(XMessage *__Event)
Process message events

virtual int ProcessMouseEvent(XMouseEvent *__Event)
Process mouse events

virtual void Run()
"Runs" the list: waits for events until an item is choosed

virtual void SetState(int __Mask, int __BoolValue)
Sets the object's state

virtual void SetValue(LItem *__Items)
Sets a new list content


This class has no child classes.

Go to the
hierarchy of classes.


Copyright ©1998 Dragos Acostachioaie
Last update on June 10, 1998

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