X11workbench Toolkit
1.0
|
Edit Window API functions. More...
Go to the source code of this file.
Data Structures | |
struct | tagWBEditWindow |
Structure that defines an Edit Window. More... | |
Macros | |
#define | EDIT_WINDOW_TAG (*((const unsigned int * const)"FWEW")) |
TAG for the WBEditWindow structure. | |
Typedefs | |
typedef struct tagWBEditWindow | WBEditWindow |
Structure that defines an Edit Window. More... | |
Functions | |
WBEditWindow * | WBCreateEditWindow (WBFrameWindow *pOwner, WB_FONT pFont, const char *szFocusMenu, const WBFWMenuHandler *pHandlerArray, int fFlags) |
Create an Edit Window. More... | |
void | WBDestroyEditWindow (WBEditWindow *pEditWindow) |
Destroy an Edit Window. More... | |
WBEditWindow * | WBEditWindowFromWindowID (Window wID) |
Obtain the associated WBEditWindow structure pointer for a Window ID. More... | |
int | WBEditWindowLoadFile (WBEditWindow *pEditWindow, const char *pszFileName) |
Open an existing file and read its contents into the Edit Window, storing the file name for later reference. More... | |
int | WBEditWindowSaveFile (WBEditWindow *pEditWindow, const char *pszFileName) |
Save the contents from the Edit Window to a file, overwriting the file if it already exists. More... | |
void | WBEditWindowClear (WBEditWindow *pEditWindow) |
Clear the contents in the Edit Window, and NULL the stored file name. More... | |
static __inline__ int | WBIsValidEditWindow (WBEditWindow *pEditWindow) |
Check for valid WBEditWindow pointer. More... | |
void | WBEditWindowRegisterCallback (WBEditWindow *pEditWindow, WBWinEvent pUserCallback) |
Clear the contents in the Edit Window, and NULL the stored file name. More... | |
Variables | |
Atom | aEW_HOVER_NOTIFY |
Hover notification to user-callback, sent via ClientMessage event. More... | |
Atom | aEW_EDIT_CHANGE |
'Edit Change' notification to user-callback, sent via ClientMessage event More... | |
Edit Window API functions.
Edit Windows are child windows in which the contained text may be edited, optionally supporting multiple tabs. 'View Only' windows cannot be edited, but support all of the other features of an edit window.
Each edited text object uses the TEXT_OBJECT structure to manage the data and the user interface. The currently active text object will receive all of the appropriate events. The Edit Window also provides for horizontal and vertical scrolling, as needed.
Definition in file edit_window.h.