DTEDITORDELETESELECTION(3)

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

DtEditorDeleteSelection(library call) β€” okay bestie, this is the manual page for DtEditorDeleteSelection, and yes, it's a library call. πŸ’… We're deleting the primary selection in the DtEditor widget, respectfully.

πŸ’– NAME πŸ’–

DtEditorDeleteSelection β€” delete the primary selection in the DtEditor widget. It's giving "highlighted text? not anymore." ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include &<Dt/Editor.h>
Boolean DtEditorDeleteSelection(
Widget widget);

🌸 DESCRIPTION 🌸

The DtEditorDeleteSelection function removes the currently highlighted data in a DtEditor widget. Any data following the deleted data is moved up. No cap, it just closes the gap. 🫢

Text can be selected and deselect programmatically with DtEditorSelectAll(3) and DtEditorDeselect(3). (Yes, the original says "deselect" like that β€” iykyk.)

The widget argument specifies the DtEditor widget ID. Literally just hand it the widget, bestie. πŸŽ€

For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3). Go read the main character page. πŸ‘‘

⭐ RETURN VALUE ⭐

Upon successful completion, the DtEditorDeleteSelection function returns True; otherwise, if the primary selection is NULL, or if the widget does not own the primary selection, it returns False. That's the whole vibe check. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


Footer tea β˜•: the only footer text on this one is DtEditorDeleteSelection(library call) β€” no extra source, version, or date line is printed here, so consider this your cute sign-off. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from