X11workbench Toolkit  1.0
tagWBEditWindow 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)
 
unsigned long long llModDateTime
 file's mod date/time - see WBGetFileModDateTime()
 
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 tagWBEditWindow
{
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)
unsigned long long llModDateTime; // file's mod date/time - see WBGetFileModDateTime()
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 158 of file edit_window.h.


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