|
|
@ -284,10 +284,10 @@ enum WindowDefaultPosition {
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct Textbuf {
|
|
|
|
typedef struct Textbuf {
|
|
|
|
char *buf; /* buffer in which text is saved */
|
|
|
|
char *buf; /* buffer in which text is saved */
|
|
|
|
uint16 maxlength, maxwidth; /* the maximum size of the buffer. Maxwidth specifies screensize in pixels */
|
|
|
|
uint16 maxlength, maxwidth; /* the maximum size of the buffer. Maxwidth specifies screensize in pixels, maxlength is in bytes */
|
|
|
|
uint16 length, width; /* the current size of the string. Width specifies screensize in pixels */
|
|
|
|
uint16 length, width; /* the current size of the string. Width specifies screensize in pixels, length is in bytes */
|
|
|
|
bool caret; /* is the caret ("_") visible or not */
|
|
|
|
bool caret; /* is the caret ("_") visible or not */
|
|
|
|
uint16 caretpos; /* the current position of the caret in the buffer */
|
|
|
|
uint16 caretpos; /* the current position of the caret in the buffer, in bytes */
|
|
|
|
uint16 caretxoffs; /* the current position of the caret in pixels */
|
|
|
|
uint16 caretxoffs; /* the current position of the caret in pixels */
|
|
|
|
} Textbuf;
|
|
|
|
} Textbuf;
|
|
|
|
|
|
|
|
|
|
|
|