t_drawheader

User-defined tables (of type TABLE_USERDEF) have no associated sorted data. Instead of data item, drawing functions of user-defined tables receive pointer to the synthetic structure t_drawheader:

typedef struct t_drawheader {          // Draw descriptor for TABLE_USERDEF
  int            line;                 // Line in window
  int            n;                    // Total number of visible lines
  ulong          nextaddr;             // First address on next line, or 0
  ulong          addr;                 // Custom data
  uchar          s[TEXTLEN];           // Custom data
} t_drawheader;


Members:

line
Zero-based index of the line in the window. First visible line has index 0. Note that for tables of type TABLE_DIR this line is placed on the bottom of the window
n
Total number of lines visible in the window, including those that are only partially visible. Drawing function may use this information to estimate size of the cache
nextaddr
Used by dump windows. Plugins may use nextaddr for any purposes. Its contents does not change between the calls during the drawing sequence
addr
Custom variable, may be used as a cache. Its contents does not change between the calls during the drawing sequence
s
Custom variable, may be used as a cache. Its contents does not change between the calls during the drawing sequence


See also:

Tables, DRAWFUNC