Description |
XWindow is the base class for several window classes.
GetBackgroundColor |
XColor * color buffer to hold data
Query the background-color of the window
GetForegroundColor |
XColor * color buffer to hold data
Query the foreground-color of the window
SetBackgroundColor |
XColor * color the new color
BOOL success
Set the foregrund-color of the window
SetForegroundColor |
XColor * color the new color
BOOL success
Set the foregrund-color of the window
~XWindow |
Destructors of windows are called automaticaly when they are closed. All destructors of child-windows are called too. All handlers registered at the window aredestructed. You can destroy a window by calling the destructor.
GetFontName |
XString * buffer the name of the font in format "10.Helvetica"
Query the font of the window
SetFont |
char * fontName the name of the font in format "10.Helvetica"
char * fontName the name of the font
USHORT fontSize the size of the font
BOOL success
BOOL success
Set the font of the window
Set the font of the window
Activate |
Activate the window
Enable |
BOOL enabe TRUE=enable, FALSE=disable
Enable/disable the window
EnableWindowUpdate |
BOOL enabe TRUE=enable, FALSE=disable window-update
Enable/disable window-update
GetWindow |
ULONG theID ID of the window to find
XWindow * pointer
Find a child-window with the given ID
GetWindowID |
SHORT theID
Query the ID of the window
Invalidate |
BOOL childs TRUE=childs of the window are invalidated too FALSE=childs are not invalidated
Invalidates the window content, it will be redrawn
IsVisible |
BOOL result
Query if the window is visible or not
QueryWindow |
ULONG relation | relationship:
|
XWindow * pointer
Find a window with the given relationship
SetFocus |
BOOL result
Set the focus to this window
GetPointerHandle |
OOL_POINTERHANDLE handle
Returns the handle of the actual pointer.
GetPointerPos |
XPoint * point buffer to hold the datas
Returns the position of the pointer
GetSystemPointerHandle |
LONG theID | ID of the needed pointer. Valid values are:
| ||||||||||
BOOL copy | If you need a copy of the pointer (to modify
it) set copy TRUE, otherwise FALSE. Default is FALSE. |
OOL_POINTERHANDLE handle
Returns the handle of the pointer identified by theID.
SetPointer |
OOL_POINTERHANDLE handle the pointer
Set the actual pointer. You can receive a pointer-handle by calling GetSystemPointer() or load a pointer from a resource with XResourceLibrary::LoadIcon.
GetUpdateRect |
XRect * rect buffer
Get the rectangle which should be redrawn
SetSize |
XRect * rect new size and position
Set the size and position of the window
DoMove |
DoMove informs the application if the window is moved. Override this function if you need this information.
DoSize |
XSize * size
DoSize informs the application if the window is resized. Override this function if you need this information.
GetSize |
XRect * rect buffer to hold the datas
Query the size and position of the window
SetBottom |
The window is set to the bottom in z-order
SetTop |
The window is set to the top in z-order
Show |
BOOL show TRUE=show, FALSE=hide
Show/hide the window
GetStyle |
ULONG style
Query the current style of the window.
SetStyle |
ULONG style the new syle (depending on the type of window)
Set the style of a window
GetText |
XString * buffer buffer to hold the text
Query the text of the window
GetTextLength |
LONG length
Query the length of the windows text
SetText |
char * text text to display
Set the text of the window
DoCommand |
LONG theCommandID the ID of the menuitem/toolbar-button
BOOL handled
If the user selected a XPopupMenu or if the user pressed a button which is attached to a window, this function is called. To get the ID of the command the user requested, override this function. Return TRUE if you have handled the command, otherwise return FALSE. if you return FALSE the command is posted to the owner of this window.
DoControl |
XControlEvent * pointerOfEvent a pointer to an instance of XControlEvent
If the user has done some interaction with a window this function is called. To get information about the event, override this function, the parameter holds information of your interest.