X11 Work Bench Toolkit  1.0
__WBEditWindow__ Struct Reference

Structure that defines an Edit Window. More...

#include <edit_window.h>

Data Fields

WBChildFrame childframe
 elements common to a 'child frame' (derived object)
 
unsigned int ulTag
 'Tag' identifying this structure as a WBEditWindow
 
char * szFileName
 malloc'd name of file associated with this edit window (NULL if none)
 
WBWinEvent pUserCallback
 user callback function to receive notifications and unhandled messages
 
TEXT_OBJECT xTextObject
 the 'TEXT_OBJECT' member, that does MOST of the work
 

Detailed Description

Structure that defines an Edit Window.

The WBEditWindow structure defines an 'Edit Window' that is a 'superclass' of a Child Frame window. The first element MUST be the 'WBChildFrame'. Elements that follow it are specific to the Edit Window.

This uses a TEXT_OBJECT structure to store the actual text data, and to manage the UI functionality.

typedef struct __WBEditWindow__
{
WBChildFrame childframe; // elements common to a 'child frame' (derived object)
unsigned int ulTag; // 'Tag' identifying this structure as a WBEditWindow
char *szFileName; // malloc'd name of file associated with this edit window (NULL if none)
WBWinEvent pUserCallback; // user callback function to receive notifications and unhandled messages
TEXT_OBJECT xTextObject; // the 'TEXT_OBJECT' member, that does MOST of the work

Additional 'Child Frame' API functions can be called directly by using a type cast from 'WBEditWindow *' to 'WBChildFrame *', or by using the 'WBChildWindowFromWindowID()' function.

See Also
TEXT_OBJECT

Definition at line 156 of file edit_window.h.


The documentation for this struct was generated from the following file: