DTEDITORGETINSERTIONPOSITION(3)
π DtEditorGetInsertionPosition (library call) β cursor-position bestie guide π
Okay bestie, this page is a library call β header shorthand is DtEditorGet...ionPosition, and the full name is DtEditorGetInsertionPosition. We're getting the insert-cursor position, and it's gonna be cute and precise. π«Ά
β¨ NAME β¨
DtEditorGetInsertionPosition β retrieve the position of the insert cursor in a DtEditor widget. π
β¨ SYNOPSIS β¨
#include &<Dt/Editor.h>
XmTextPosition DtEditorGetInsertionPosition(
Widget widget);
β¨ DESCRIPTION β¨
So the DtEditorGetInsertionPosition function accesses the current position of the insertion cursor in the DtEditor widget. π
That position is an integer number of characters from the beginning of the widget's text buffer. The first character position is zero β not one, bestie, zero. π«Ά
The position of the insertion cursor can be set with DtEditorSetInsertionPosition(3).
The widget argument specifies the DtEditor widget ID.
For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3). iykyk π
β¨ RETURN VALUE β¨
Upon successful completion, DtEditorGetInsertionPosition returns an XmTextPosition value that indicates the position of the insertion cursor in the text; otherwise, it returns NULL. That's the vibe check: position on success, NULL otherwise. π
β¨ SEE ALSO β¨
Dt/Editor.h-DtEditor(5),DtEditor(3),DtEditorGetLastPosition(3),DtEditorSetInsertionPosition(3).
Source/version + date sign-off π: the footer shorthand is just DtEditorGet...ionPosition(library call) β so the source/version label is the library call manual name, and no separate date is provided. That's the whole footer tea, no cap. π
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms