class XtWindow: public XObject

Window class

Inheritance:

XtWindow - XObject - XEventBroker


Public Methods

[more]XtWindow(XRect __r, char *__Title)
Constructs a new XtWindow with the specified bounds and title
[more]virtual ~XtWindow()
Destructs the XtWindow instance
[more]virtual void Close()
Close the window
[more]virtual void Draw()
Draws the window
[more]virtual void MoveTo(XPoint __p)
Move the upper-left window corner to the specified coordinate
[more]virtual bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events
[more]virtual bool ProcessMessage(XMessage *__Event)
Process message events
[more]virtual bool ProcessMouseEvent(XMouseEvent *__Event)
Process mouse events
[more]virtual void Resize(XPoint __delta)
Adjusts the object's size with the specified coordinates
[more]virtual void SetFrame(char *__Frame)
Set the frame style
[more]virtual void SetState(unsigned long __Mask, bool __BoolValue)
Sets the window state

Protected Fields

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

Protected Methods

[more]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 char* GetPalette()
virtual unsigned GetPalEntry(unsigned __Index)
XPoint GetSize()
unsigned long GetState()
virtual bool GetState(unsigned long __Mask)
virtual void HandleEvent(XEvent *__Event)
virtual bool ProcessEvent(XEvent *__Event)
virtual void RegisterClient(XObject *__Client)
virtual void SetPalette(char *__Pal, unsigned __PalLen)
virtual void UnregisterClient(XObject *__Client)

Protected Fields

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

Protected Methods

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

Inherited from XEventBroker:

Public Methods

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

Protected Fields

Map __map

Inherited from XObjectEventListener:

Public Methods

virtual bool ProcessCommand(XMessage *__Event)
virtual bool ProcessSignal(XEvent *__Event)
virtual bool ProcessBroadcast(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 bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events

virtual bool 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 bool ProcessMouseEvent(XMouseEvent *__Event)
Process mouse events

virtual void Resize(XPoint __delta)
Adjusts the object's size with the specified coordinates
Parameters:
__delta - translation vector

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

virtual void SetState(unsigned long __Mask, bool __BoolValue)
Sets the window state

chtype* Buffer
Buffer to save the old screen area

char* Title
Window title

char Frame[10]
Window frame

void FrameUpdate()
Updates window margins


Direct child classes:
XtTextViewer

Go to the hierarchy of classes.


Copyright ©1998-99 Dragos Acostachioaie
Last update on March 9, 1999

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