Xterminal Home Page Main page

class XtWindow : public XObject

Window class

Inheritance:

XtWindow - XObject - XEventBroker


Public Methods

virtual void Close()
Close the window
virtual void Draw()
Draws the window
virtual void MoveTo(XPoint __p)
Move the upper-left window corner to the specified coordinate
virtual int ProcessMessage(XMessage *__Event)
Process message events
virtual void SetFrame(char *__Frame)
Set the frame style
virtual void SetState(int __Mask, int __BoolValue)
Sets the window state
XtWindow(XRect __r, char *__Title)
Constructs a new XtWindow with the specified bounds and title
virtual ~XtWindow()
Destructs the XtWindow instance

Protected Fields

chtype* Buffer
Buffer to save the old screen area
char Frame[10]
Window frame
char Title[40]
Window title

Protected Methods

void FrameUpdate()
Updates window margins

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 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 ProcessKeyboardEvent(XKeyboardEvent *__Event)
virtual int ProcessMouseEvent(XMouseEvent *__Event)
virtual int ProcessSignal(XEvent *__Event)

Inherited from XEventListener:


Documentation

Window class
XtWindow(XRect __r, char *__Title)
Constructs a new XtWindow with the specified bounds and title

virtual ~XtWindow()
Destructs the XtWindow instance

virtual void Close()
Close the window

virtual void Draw()
Draws the window

virtual void MoveTo(XPoint __p)
Move the upper-left window corner to the specified coordinate

virtual int ProcessMessage(XMessage *__Event)
Process message events. __Event->Message can be:

WM_CLOSE - request to close the window

WM_OPEN - request to open the window (e.g. to draw it)

WM_MOVE - request to move the window

virtual void SetFrame(char *__Frame)
Set the frame style

virtual void SetState(int __Mask, int __BoolValue)
Sets the window state

chtype* Buffer
Buffer to save the old screen area

char Title[40]
Window title

char Frame[10]
Window frame

void FrameUpdate()
Updates window margins


Direct child classes:
XtTextViewer

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++.