X11 Work Bench Toolkit  1.0
__DT_WORDS__ Struct Reference

A collection of DT_WORD structures along with a pointer to the original text. More...

#include <draw_text.h>

Data Fields

struct __DT_WORDS__pPrev
 pointer to previous structure in linked list (reserved)
 
struct __DT_WORDS__pNext
 pointer to next structure in linked list (reserved)
 
int nCount
 number of items in aWords
 
int nMax
 max number of items in aWords (for memory allocation purposes)
 
int iMaxWidth
 maximum width of contained text, or -1 if not known
 
int iMaxHeight
 maximum height of contained text, or -1 if not known
 
const char * szText
 original text pointer
 
DT_WORD aWords [1]
 The actual data (self-contained within the memory block)
 

Detailed Description

A collection of DT_WORD structures along with a pointer to the original text.

A collection of DT_WORD structures, along with a pointer to the original text. This structure is typically used to render text and calculate bounding rectangles for the purpose of window sizing and viewport scrolling.

typedef struct __DT_WORDS__
{
struct __DT_WORDS__ *pPrev; // pointer to previous structure in linked list (reserved)
struct __DT_WORDS__ *pNext; // pointer to next structure in linked list (reserved)
int nCount; // number of items in aWords
int nMax; // max number of items in aWords (for memory allocation purposes)
int iMaxWidth; // maximum width of contained text, or -1 if not known
int iMaxHeight; // maximum height of contained text, or -1 if not known
const char *szText; // original text pointer
DT_WORD aWords[1]; // The actual data (self-contained within the memory block)

Definition at line 205 of file draw_text.h.


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