DTEDITORCUTTOCLIPBOARD(3)
okay so this is the DtEditorCutToClipboard(library call) page, and it's giving βcut that selection to the clipboardβ energy π
β¨
πΈ NAME πΈ
DtEditorCutToClipboard β copy the primary selection in a DtEditor widget to the clipboard and delete the selected text π«Ά
β¨ SYNOPSIS β¨
#include &<Dt/Editor.h>
Boolean DtEditorCutToClipboard(
Widget widget);
π DESCRIPTION π
So basically, DtEditorCutToClipboard takes the primary selected text in the DtEditor widget β the one you pass as widget, bestie β and copies it to the clipboard. Then it deletes the primary selected text. Boom. Cut. Slay. βοΈβ¨
Text can be selected and deselected programmatically with DtEditorSelectAll(3) and DtEditorDeselect(3) β handy for when you're doing it from code instead of vibes π§
The widget argument specifies the DtEditor widget ID. That's the main character here π
For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3). iykyk π
π₯ RETURN VALUE π₯
If everything goes off without a hitch, DtEditorCutToClipboard returns True π.
Otherwise it returns False β specifically if the primary selection is NULL, or if the widget doesn't own the primary selection, or if the function is unable to gain ownership of the clipboard selection. No cap, those are the fail conditions π
π¦ SEE ALSO π¦
Dt/Editor.h-DtEditor(5)DtEditor(3)DtEditorClearSelection(3)DtEditorCopyToClipboard(3)DtEditorDeleteSelection(3)DtEditorDeselect(3)DtEditorPasteFromClipboard(3)DtEditorSelectAll(3)DtEditorUndoEdit(3)
okay bye bestie π«Ά that was the DtEditorCutToClipboard(library call) page from the library call manual β the footer only showed DtEditorCutToClipboard(library call), with no source/version or date printed, so I'm not inventing one, periodt π
π¦ 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