mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
BFU doc: Comment on what widget_data.cdata means for WIDGET_TEXT.
Inspired by bug 935.
This commit is contained in:
parent
014ab5e1ba
commit
cf32aba65f
@ -51,11 +51,18 @@ struct widget {
|
||||
|
||||
struct widget_data {
|
||||
struct widget *widget;
|
||||
|
||||
/* For WIDGET_FIELD: If CONFIG_UTF8 is defined and UTF-8 I/O
|
||||
* is enabled for the terminal, then @cdata is in UTF-8;
|
||||
* otherwise, @cdata is in the charset of the terminal, and
|
||||
* the charset is assumed to be unibyte. (Thus, if you choose
|
||||
* UTF-8 as the charset but disable UTF-8 I/O, you lose.) */
|
||||
* UTF-8 as the charset but disable UTF-8 I/O, you lose.)
|
||||
*
|
||||
* For WIDGET_TEXT: @cdata is cast from/to an unsigned char **
|
||||
* that points to the first element of an array. Each element
|
||||
* in this array corresponds to one line of text, and is an
|
||||
* unsigned char * that points to the first character of that
|
||||
* line. The array has @widget_data.info.text.lines elements. */
|
||||
unsigned char *cdata;
|
||||
|
||||
struct box box;
|
||||
|
Loading…
Reference in New Issue
Block a user