X11workbench Toolkit  1.0
s_internal_window_entry Struct Reference

More...

Data Fields

Window wID
 window to which the structure is mapped
 
const char * szClassName
 window 'class name', mostly for debug and tracing, points to NULL or persistent name string
 
Display * pDisplay
 display associated with this window
 
WB_UINT64 iFlags
 'iFlags' specified when window was created (for reference)
 
XImage * pImage
 locally cached XImage for the window
 
Window wParent
 cached window parent ID
 
WBGC hGC
 default graphics context
 
unsigned long clrFG
 default foreground color (also assigned to GC)
 
unsigned long clrBG
 default background color (also assigned to GC)
 
WB_FONT pFont
 default font for window, NULL to use pDefaultFont
 
XWMHints * pWMHints
 XWMHints structure (cached)
 
Pixmap pxIcon
 icon pixmap (may be None)
 
Pixmap pxMask
 icon mask pixmap (may be None)
 
int(* pCallback )(Window wIDEvent, XEvent *pEvent)
 Pointer to the window's event callback function. More...
 
WB_GEOM geomAbsolute
 absolute window geometry (from notification)
 
Region rgnClip
 complex clip (aka 'invalid') region (0 implies 'none')
 
Region rgnPaint
 rectangular paint region (0 implies 'none')
 
Window wIDMenu
 window ID for attached menu window
 
int(* pMenuCallback )(Window wIDEvent, XEvent *pEvent)
 Pointer to the window's MENU callback function - may be NULL, valid only for windows with menus.
 
Cursor curRecent
 most recent cursor resource (must be freed via XFreeCursor)
 
int idCursor
 last cursor ID used by 'WBSetCursor()'
 
int idDefaultCursor
 default cursor
 
int iWaitCursorCount
 current 'count' for wait cursor
 
int width
 cached width value from latest 'Expose' event
 
int height
 cached height value from latest 'Expose' event (TODO: ConfigureNotify?)
 
int border
 cached border value from latest 'Expose' event (TODO: ConfigureNotify?)
 
int iModalFlag
 current modal state (0 for modeless) (see WBShowModal)
 
int iModalReturn
 return value for a modal window (see WBShowModal)
 
int iWindowState
 indicates if window mapped
 
enum WMPropertiesWindowType eWindowType
 a combination of WMPropertiesWindowType values (default None)
 
enum WMPropertiesWMProtocols eWMProtocols
 a combination of WMPropertiesWMProtocols values, indicating supported protocols (default None)
 
struct timeval tvLastActivity
 time of last activity (TODO: find a better way than 'gettimeofday')
 
void * aWindowData [WINDOW_DATA_SIZE]
 4 void pointers, to be uased as needed for 'window data'
 

Detailed Description

Definition at line 760 of file window_helper.c.

Field Documentation

◆ pCallback

int(* pCallback) (Window wIDEvent, XEvent *pEvent)

Pointer to the window's event callback function.

The callback function defines the behavior of the window. Each event that is dispatched for the matching Window ID will be passed once to the callback function. The callback function must return an appropriate non-zero value if it processes the message.

This will never be NULL unless the window entry is being destroyed.

Definition at line 783 of file window_helper.c.


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