55 #ifndef _DIALOG_SUPPORT_H_INCLUDED_ 56 #define _DIALOG_SUPPORT_H_INCLUDED_ 126 void *(*pfnAllocator)(
const void *, int);
391 void *(*pfnAllocator)(
const void *,
int),
void (*pfnDestructor)(
void *),
393 int (*pfnSort)(
const void *,
const void *));
428 #ifndef DIALOG_SUPPORT_C 436 #endif // DIALOG_SUPPORT_C 440 #define DEBUG_DUMP_LIST(X) 448 #endif // __cplusplus 450 #endif // _DIALOG_SUPPORT_H_INCLUDED_ int iCurSel
current selection
struct s_WB_PUSHBUTTON_CONTROL WBPushButtonControl
Button 'pushbutton' control structure.
const Atom aDLGC_SCROLLINFO
dialog control SCROLLINFO property - see WB_SCROLLINFO structure
WBDialogControl wbDLGCtrl
Standard dialog control members.
Pixmap pixmap2
background (transparency) pixmap
TEXT_OBJECT xTextObject
A Text Object associated with the editable text.
void DLGCListInfoDestructor(LISTINFO *pListInfo)
Destroy a LISTINFO structure.
Structure containing information about the current selection in a list.
const Atom aDLGC_LISTINFO
dialog control LISTINFO property - see DLGInitControlListInfo() etc.
int nTop
scroll position of the top item currently displayed
WBDialogControl wbDLGCtrl
Standard dialog control members.
Static 'Image' control structure.
int nMaxItems
max size of aItems (must re-alloc to increase nMaxItems)
void(* pfnDestructor)(void *)
destructor to call for each item that's removed
Static 'Image' control structure.
void DLGCDefaultListControlDisplayProc(WBDialogControl *pList, void *pData, int iSelected, WBGC gc, WB_GEOM *pGeom, WB_FONTC pFont)
The default 'display proc' for displaying a list item from a LISTINFO structure.
struct s_WB_LIST_CONTROL WBListControl
List control structure.
WBListCurSel sel
selection state, must follow wbDLGCtrl
int iHeight
calculated height of window in "entries" (see next member)
internal wrapper struct for X11 'geometry' definition
WB_GEOM geomDisplay
the (cached) geometry that defines the "display area" (not scrollbars, border)
int(* pfnSort)(const void *, const void *)
Optional sort comparison function. NULL implies 'strcmp'.
WBDialogControl wbDLGCtrl
Standard dialog control members.
int nPos
current scroll position
int cbBitmap
size of bitmap (in bytes, granular at sizeof(int))
int nFlags
flags (sorted, etc.)
'base class' structure for TEXT_OBJECT
int nItems
current number of valid entries in 'aItems'
struct s_LISTINFO LISTINFO
Structure containing data for list-related dialog controls.
struct s_WBListCurSel WBListCurSel
Structure containing information about the current selection in a list.
WBDialogControl wbDLGCtrl
Standard dialog control members.
const Atom aDLGC_FONT
dialog control FONT property - reserved
WB_FONT pBold
bold font set - assigned on the fly, struct creator must free if not 'None'
TEXT_OBJECT xTextObject
A Text Object associated with the edit text.
const Atom aDLGC_CAPTION
dialog control CAPTION property - see WBDialogControlGetCaption()
const Atom aDLGC_TEXT
dialog control TEXT property - see WBDialogControlGetText()
WB_FONT pBold
bold font set - assigned on the fly, struct creator must free if not 'None'
int nItemHeight
height of a single item (in pixels)
void(* pfnDisplay)(WBDialogControl *pControl, void *pData, int iSelected, WBGC gcPaint, WB_GEOM *pGeom, WB_FONTC pFont)
display callback function to paint the entry on the display surface
A 'C++'-like object for managing text, that can be overridden for custom behavior.
int iTopIndex
index of item at top of window
struct s_WB_IMAGE_CONTROL WBImageControl
Static 'Image' control structure.
struct s_WB_COMBO_CONTROL WBComboControl
List control structure.
void DLGCDestroyProperties(WBDialogPropList *pPropList)
Destroy Properties for a dialog control.
WBListCurSel sel
must follow wbDLGCtrl
struct s_WB_TREE_CONTROL WBTreeControl
Static 'Image' control structure.
WBListCurSel sel
selection state, must follow wbDLGCtrl
Pixmap pixmap
foreground pixmap
void * aItems[1]
The array of item data, integrated into the memory block containing this structure.
Structure containing data for list-related dialog controls.
int nHeight
height (in items) of display area, recalculated on resize/expose
int * pSelBitmap
bitmap of selections (when applicable) (use 'WBAlloc/WBFree')
An allocated structure containing XFontStruct, XFontInfo, and XftFont [as applicable] for a specified...
Dialog Property List, container for WB_DIALOG_PROP.
int iEntryHeight
cached display height of each entry (calculated by Expose handler)
internal wrapper struct for GC with local cache
struct s_WB_EDIT_CONTROL WBEditControl
Edit control structure.
WBDialogControl wbDLGCtrl
Standard dialog control members.
Window wOwner
owning window [to be notified on change]
Structure identifying the properties of a dialog box control.
LISTINFO * DLGCListInfoConstructor(Window wOwner, int nMax, int nFlags, void *(*pfnAllocator)(const void *, int), void(*pfnDestructor)(void *), void(*pfnDisplay)(WBDialogControl *, void *, int, WBGC, WB_GEOM *, WB_FONTC), int(*pfnSort)(const void *, const void *))
Create LISTINFO structure for a list type control.