12.07.2015 Views

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Text <strong>Widget</strong>sText FunctionsLeft: backward-character() \\n\\Down: next-line() \\n\\Up: previous-line() \\n\\Delete: delete-previous-character() \\n\\BackSpace: delete-previous-character() \\n\\Linefeed: newline-and-indent() \\n\\Return: newline() \\n\\:insert-char() \\n\\Kanji: reconnect-im() \\n\\: focus-in() \\n\\: focus-out() \\n\\: select-start() \\n\\: extend-adjust() \\n\\: extend-end(PRIMARY, CUT_BUFFER0) \\n\\: insert-selection(PRIMARY, CUT_BUFFER0) \\n\\: extend-start() \\n\\: extend-adjust() \\n\\: extend-end(PRIMARY, CUT_BUFFER0) \\nThe following functions are provided as convenience routines for use with the Textwidget. Although many of these actions can be performed by modifying resources,these interfaces are frequently more efficient.These data structures are defined in the Text widget's public header file, .typedef long XawTextPosition;Character positions in the Text widget begin at 0 and end at n, where n is the numberof characters in the Text source widget.typedef struct {int firstPos;int length;char *ptr;unsigned long format;} XawTextBlock, *XawTextBlockPtr;firstPoslengthptrformatThe first position, or index, to use within the ptr field. Thevalue is commonly zero.The number of characters to be used from the ptr field.The number of characters used is commonly the numberof characters in ptr, and must not be greater than thelength of the string in ptr.Contains the string to be referenced by the Text widget.This flag indicates whether the data pointed to byptr is char or wchar_t. When the associated widget76

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!