X11workbench Toolkit  1.0
tagDT_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 tagDT_WORDSpPrev
 pointer to previous structure in linked list (reserved)
 
struct tagDT_WORDSpNext
 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 tagDT_WORDS
{
struct tagDT_WORDS *pPrev; // pointer to previous structure in linked list (reserved)
struct tagDT_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 206 of file draw_text.h.


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