DTEDITORGETLASTPOSITION(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’– DtEditorGetLastPosition πŸ’–

okay bestie, welcome to this library call page β€” yes, the manual name is literally library call, and we're about to get the last character position in a DtEditor widget. no cap, it's a short function but the details matter, so let's go ✨

🌸 NAME 🌸

DtEditorGetLastPosition β€” retrieve the position of the last character in a DtEditor widget. periodt. πŸŽ€

✨ SYNOPSIS ✨

#include &<Dt/Editor.h>
XmTextPosition DtEditorGetLastPosition(
Widget widget);

πŸ’… DESCRIPTION πŸ’…

So the DtEditorGetLastPosition function accesses the last text position in the DtEditor widget. That position is an integer number of characters from the beginning of the widget's buffer. Any text added to the end of the buffer is added after this position. The first character position is zero. The last character position is equal to the number of characters contained in the widget. the way that this works is lowkey iconic, fr fr. ✨

The widget argument specifies the DtEditor widget ID.

For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3).

🫢 RETURN VALUE 🫢

Upon successful completion, the DtEditorGetLastPosition function returns an XmTextPosition value that indicates the last position in the text; otherwise, it returns NULL. yes, NULL β€” that's what the page says, bestie πŸ™ˆ

πŸŽ€ APPLICATION USAGE πŸŽ€

The position information is given in terms of characters, which may differ from the byte position when multi-byte code sets are in use. important vibe check for multibyte girlies πŸ’… iykyk

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie 🫢 signing off from the DtEditorGetLastPosition(library call) source/version β€” date not listed here, just pure manual-page main character energy πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from