class XtStaticText: public XObject

Static text class

Inheritance:

XtStaticText - XObject - XEventBroker


Public Methods

[more]XtStaticText(XRect __r, unsigned __Alignment, const char *__Text)
Constructs a new XtStaticText
[more]virtual ~XtStaticText()
Destructs the object instance
[more]virtual void Draw()
Draws the text
[more]virtual const char* GetValue()
Returns the current text
[more]virtual void SetValue(const char *__Text)
Sets the text

Protected Fields

[more]string* Text
Text
[more]unsigned Alignment
Alignment style

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 void MoveTo(XPoint __p)
virtual bool ProcessEvent(XEvent *__Event)
virtual void RegisterClient(XObject *__Client)
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 ProcessKeyboardEvent(XKeyboardEvent *__Event)
virtual bool ProcessMessage(XMessage *__Event)
virtual bool ProcessCommand(XMessage *__Event)
virtual bool ProcessSignal(XEvent *__Event)
virtual bool ProcessBroadcast(XEvent *__Event)

Inherited from XEventListener:


Documentation

Instantiations of this class are "passive" objects.
XtStaticText(XRect __r, unsigned __Alignment, const char *__Text)
Constructs a new XtStaticText
Parameters:
__r - object's bounds
__Alignment - align style, which can be:

AS_NO_ALIGN - no align is made

AS_LEFT - aligns to the left

AS_CENTER - centers the text horizontally

AS_RIGHT - aligns to the right

AS_TOP - aligns to the top

AS_BOTTOM - aligns to the bottom

AS_MIDDLE - centers the text vertically
__Text - a default text

virtual ~XtStaticText()
Destructs the object instance

virtual void Draw()
Draws the text

virtual const char* GetValue()
Returns the current text

virtual void SetValue(const char *__Text)
Sets the text

string* Text
Text

unsigned Alignment
Alignment style


Direct child classes:
XtContextualHelp

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