DTEDITORCLEARSELECTION(3)

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

πŸ’– DtEditorClearSelection πŸ’–

okay so bestie, this is the <pink>library call</pink> manual page for DtEditorClearSelection β€” and yes, she's iconic. πŸŽ€

✨ NAME ✨

DtEditorClearSelection β€” clear the primary selection in a DtEditor widget. slay. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ¦‹ DESCRIPTION πŸ¦‹

The way that DtEditorClearSelection works is: it takes the primary selection in a DtEditor widget, specified by widget, and replaces it with blanks (ASCII character 0x20) and newlines. no cap, that's literally the whole move. ✨

Text can be selected and deselected programmatically with DtEditorSelectAll(3) and DtEditorDeselect(3) β€” iykyk if you're scripting the selection vibes. 🫢

The widget argument specifies the DtEditor widget ID. main character parameter fr fr. πŸ‘‘

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

πŸ’… RETURN VALUE πŸ’…

Upon successful completion, the DtEditorClearSelection function returns True; otherwise, if the primary selection is NULL, or if the widget does not own the primary selection, it returns False. so it's giving binary, bestie: success is True, and those two cases are False. 😭

🌈 SEE ALSO 🌈

Dt/Editor.h - DtEditor(5), DtEditor(3), DtEditorCopyToClipboard(3), DtEditorCutToClipboard(3), DtEditorDeselect(3), DtEditorDeleteSelection(3), DtEditorPasteFromClipboard(3), DtEditorSelectAll(3), DtEditorUndoEdit(3). go read these next, bestie πŸ‘‘


okay that's the whole page 🫢 source/version: DtEditorClearSelection(library call) ✨ and the original footer didn't have a separate date, so no fake date here β€” mwah πŸ’‹

πŸ“¦ where this page comes from