|
XmTextGetSelectionWcs(3) -- A Text function that retrieves the value of a wide character encoded primary selection
|
XmTextGetSelectionWcs retrieves the value of the primary selection that is encoded in a wide character format. It returns a NULL pointer if no text is selected in the widget. The application is responsible for freeing the storage associated with the wide character buffer by calling XtFree. widget Specifies the Text widget ID For a complete definition of Text and its associated resources, see XmTex... |
XmTextGetSource(3) -- A Text function that accesses the source of the widget
|
XmTextGetSource accesses the source of the Text widget. Text widgets can share sources of text so that editing in one widget is reflected in another. This function accesses the source of one widget so that it can be made the source of another widget, using the function XmTextSetSource(3). Setting a new text source destroys the old text source if no other Text widgets are using that source. To repl... |
|
XmTextGetString(3) -- A Text function that accesses the string value
|
XmTextGetString accesses the string value of the Text widget. The application is responsible for freeing the storage associated with the string by calling XtFree. widget Specifies the Text widget ID For a complete definition of Text and its associated resources, see XmText(3). |
XmTextGetStringWcs(3) -- A Text function that retrieves a copy of the wide character string value of a Text widget
|
XmTextGetStringWcs retrieves a copy of the wide character string value of the Text widget. The application is responsible for freeing the storage associated with the string by calling XtFree. widget Specifies the Text widget ID For a complete definition of Text and its associated resources, see XmText(3). |
XmTextGetSubstring(3) -- A Text function that retrieves a copy of a portion of the internal text buffer
|
XmTextGetSubstring retrieves a copy of a portion of the internal text buffer of a Text widget. The function copies a specified number of characters from a given start position in the internal text buffer into a buffer provided by the application. A NULL terminator is placed at the end of the copied data. The size of the required buffer depends on the maximum number of bytes per character (MB_CUR_M... |
XmTextGetSubstringWcs(3) -- A Text function that retrieves a portion of a wide character internal text buffer
|
XmTextGetSubstringWcs retrieves a copy of a portion of the internal text buffer of a Text widget that is stored in a wide character format. The function copies a specified number of characters from a given start position in the internal text buffer into a buffer provided by the application. A NULL terminator is placed at the end of the copied data. widget Specifies the Text widget ID. start Specif... |
XmTextGetTopCharacter(3) -- A Text function that accesses the position of the first character displayed
|
XmTextGetTopCharacter accesses the position of the text at the top of the Text widget. If there is no text in the Text widget (in other words, XmNvalue contains an empty string), then XmTextGetTopCharacter returns 0. Suppose that the XmNtopCharacter resource has been set to a value greater than the number of characters in the text widget. In this case, XmTextGetTopCharacter returns an XmTextPositi... |
XmTextInsert(3) -- A Text function that inserts a character string into a text string
|
XmTextInsert inserts a character string into the text string in the Text widget. The character positions begin at 0 (zero) and are numbered sequentially from the beginning of the text. For example, to insert a string after the fourth character, the parameter position must be 4. This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or Xm... |
XmTextInsertWcs(3) -- A Text function that inserts a wide character string into a Text widget
|
XmTextInsertWcs inserts a wide character string into the Text widget at a specified location. The character positions begin at 0 (zero) and are numbered sequentially from the beginning of the text. For example, to insert a string after the fourth character, the position parameter must be 4. This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyC... |
XmTextPaste(3) -- A Text function that inserts the clipboard selection
|
XmTextPaste inserts the clipboard selection at the insertion cursor of the destination widget. If XmNpendingDelete is True and the insertion cursor is inside the current selection, the clipboard selection replaces the selected text. This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. If both ver... |
XmTextPasteLink(3) -- A Text function that inserts a link to the clipboard selection
|
XmTextPasteLink inserts a link to the clipboard selection at the insertion cursor. This routine calls the widget's XmNdestinationCallback procedures with the selection member of the XmDestinationCallbackStruct set to CLIPBOARD and with the operation member set to XmLINK. The Text widget itself performs no transfers; the XmNdestinationCallback procedures are responsible for inserting the link to t... |
XmTextPosition(3) -- Data type for a character position within a text string
|
XmTextPosition is an integer data type that holds a character's position within a text string for Text and TextField. An XmTextPosition value conceptually points to the gap between two characters. For example, consider a text string consisting of N characters. A value of 0 refers to the position immediately prior to the first character. A value of 1 refers to the position in between the first and... |
XmTextPosToXY(3) -- A Text function that accesses the x and y position of a character position
|
XmTextPosToXY accesses the x and y position, relative to the upper left corner of the Text widget, of a given character position in the text buffer. In the case of horizontal writing, the position is the origin of the character. In the case of vertical writing, the position is the vertical origin of the character. widget Specifies the Text widget ID position Specifies the character position in the... |
XmTextRemove(3) -- A Text function that deletes the primary selection
|
XmTextRemove deletes the primary selected text. If there is a selection, this routine also calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first and the resulting data is passed to the XmNm... |
XmTextReplace(3) -- A Text function that replaces part of a text string
|
XmTextReplace replaces part of the text string in the Text widget. The character positions begin at 0 (zero) and are numbered sequentially from the beginning of the text. An example text replacement would be to replace the second and third characters in the text string. To accomplish this, the parameter from_pos must be 1 and to_pos must be 3. To insert a string after the fourth character, both pa... |