DTEDITORCLEARSELECTION(3)
π 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
- 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