50 #ifndef _EDIT_WINDOW_H_INCLUDED_ 51 #define _EDIT_WINDOW_H_INCLUDED_ 73 #define EDIT_WINDOW_TAG (*((const unsigned int * const)"FWEW")) 166 #if defined(HAVE_LONGLONG) || defined(__DOXYGEN__) 168 #else // defined(HAVE_LONGLONG) || defined(__DOXYGEN__) 170 #endif // defined(HAVE_LONGLONG) || defined(__DOXYGEN__) 181 #ifndef _EDIT_WINDOW_C_IMPLEMENTED_ 184 #endif // _EDIT_WINDOW_C_IMPLEMENTED_ 320 #endif // __cplusplus 322 #endif // _EDIT_WINDOW_H_INCLUDED_ 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 ref...
WBChildFrame childframe
elements common to a 'child frame' (derived object)
WBEditWindow * WBCreateEditWindow(WBFrameWindow *pOwner, WB_FONT pFont, const char *szFocusMenu, const WBFWMenuHandler *pHandlerArray, int fFlags)
Create an Edit Window.
WBWinEvent pUserCallback
user callback function to receive notifications and unhandled messages
structure for managing menu callbacks
char * szFileName
malloc'd name of file associated with this edit window (NULL if none)
unsigned int ulTag
'Tag' identifying this structure as a WBEditWindow
Atom aEW_EDIT_CHANGE
'Edit Change' notification to user-callback, sent via ClientMessage event
'base class' structure for TEXT_OBJECT
Structure that defines an Edit Window.
void WBEditWindowRegisterCallback(WBEditWindow *pEditWindow, WBWinEvent pUserCallback)
Clear the contents in the Edit Window, and NULL the stored file name.
Child Frame API functions.
#define CHILD_FRAME_TAG
TAG for the WBChildFrame structure.
#define EDIT_WINDOW_TAG
TAG for the WBEditWindow structure.
A 'C++'-like object for managing text, that can be overridden for custom behavior.
unsigned int ulTag
tag indicating I'm a 'Child Frame' window
int(* WBWinEvent)(Window wID, XEvent *pEvent)
event callback function type for window events
main controlling structure for frame windows
Atom aEW_HOVER_NOTIFY
Hover notification to user-callback, sent via ClientMessage event.
WBEditWindow * WBEditWindowFromWindowID(Window wID)
Obtain the associated WBEditWindow structure pointer for a Window ID.
TEXT_OBJECT xTextObject
the 'TEXT_OBJECT' member, that does MOST of the work
struct tagWBEditWindow WBEditWindow
Structure that defines an Edit Window.
unsigned long long llModDateTime
file's mod date/time - see WBGetFileModDateTime()
An allocated structure containing XFontStruct, XFontInfo, and XftFont [as applicable] for a specified...
int WBEditWindowSaveFile(WBEditWindow *pEditWindow, const char *pszFileName)
Save the contents from the Edit Window to a file, overwriting the file if it already exists.
void WBDestroyEditWindow(WBEditWindow *pEditWindow)
Destroy an Edit Window.
Structure that defines a Child Frame within a Frame Window.
void WBEditWindowClear(WBEditWindow *pEditWindow)
Clear the contents in the Edit Window, and NULL the stored file name.
static __inline__ int WBIsValidEditWindow(WBEditWindow *pEditWindow)
Check for valid WBEditWindow pointer.
Frame Window API functions and definitions.