DTEDITORDELETESELECTION(3)
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 π₯
Dt/Editor.h - DtEditor(5)DtEditorClearSelection(3)DtEditorCopyToClipboard(3)DtEditorCutToClipboard(3)DtEditorDeselect(3)DtEditorPasteFromClipboard(3)DtEditorSelectAll(3)DtEditorUndoEdit(3)
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
- 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