class XtApplication: public XtDesktop

Full-featured application

Inheritance:

XtApplication - XtDesktop - XtBackground - XObject - XEventBroker


Public Methods

[more]XtApplication()
Constructs a new XtApplication, using the entire screen
[more]~XtApplication()
Destructs the object's instance
[more]virtual void Draw()
Draws the object
[more]virtual void HandleEvent(XEvent *__Event)
Handles the object passed as argument, by calling ProcessEvent() of all the registered clients
[more]virtual void Idle()
Function that gets called when no events ocurrs
[more]virtual void InitMenuBar()
Initializes the application's menu bar
[more]virtual void InitStatusLine()
Initializes the application's status line
[more]virtual bool ProcessCommand(XMessage *__Event)
Process commands
[more]virtual bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events
[more]virtual void RegisterClient(XObject *__Client)
Registers the specified XObject as client
[more]virtual void Run()
Waits for events, process them, until the CM_QUIT command is received
[more]virtual void RunClient(XObject *__Client)
Puts the specified client on top of the desktop; waits for events, provides them to the client, until the CM_CLOSE command is received

Protected Fields

[more]XtMenu* Menu
Application's associated pull-down menu
[more]XtStatusLine* StatusLine
Application's associated status line
[more]XObject* CurrentFocusedClient
The client that currently own the focus

Inherited from XtDesktop:


Inherited from XtBackground:

Public Methods

chtype GetPattern()
virtual void SetPattern(chtype __Pattern)

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 MoveTo(XPoint __p)
virtual bool ProcessEvent(XEvent *__Event)
virtual void Resize(XPoint __delta)
virtual void SetPalette(char *__Pal, unsigned __PalLen)
virtual void SetState(unsigned long __Mask, bool __BoolValue)
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 ProcessMouseEvent(XMouseEvent *__Event)
virtual bool ProcessMessage(XMessage *__Event)
virtual bool ProcessSignal(XEvent *__Event)
virtual bool ProcessBroadcast(XEvent *__Event)

Inherited from XEventListener:


Documentation

Full-featured application
XtApplication()
Constructs a new XtApplication, using the entire screen

~XtApplication()
Destructs the object's instance

virtual void Draw()
Draws the object

virtual void HandleEvent(XEvent *__Event)
Handles the object passed as argument, by calling ProcessEvent() of all the registered clients

virtual void Idle()
Function that gets called when no events ocurrs

virtual void InitMenuBar()
Initializes the application's menu bar

virtual void InitStatusLine()
Initializes the application's status line

virtual bool ProcessCommand(XMessage *__Event)
Process commands

virtual bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events

virtual void RegisterClient(XObject *__Client)
Registers the specified XObject as client

virtual void Run()
Waits for events, process them, until the CM_QUIT command is received

virtual void RunClient(XObject *__Client)
Puts the specified client on top of the desktop; waits for events, provides them to the client, until the CM_CLOSE command is received

XtMenu* Menu
Application's associated pull-down menu

XtStatusLine* StatusLine
Application's associated status line

XObject* CurrentFocusedClient
The client that currently own the focus


This class has no child classes.

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