DTEDITORPASTEFROMCLIPBOARD(3)

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

okay so this is the library call page for DtEditorPasteFromClipboard, bestie β€” literally the β€œinsert the clipboard selection into a DtEditor widget” function. it’s giving paste-button energy but make it a C API ✨

πŸ’– NAME πŸ’–

DtEditorPasteFromClipboard β€” insert the clipboard selection into a DtEditor widget 🫢

✨ SYNOPSIS ✨

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

πŸ¦‹ DESCRIPTION πŸ¦‹

The DtEditorPasteFromClipboard function inserts the clipboard selection before the insertion cursor of the DtEditor widget. no cap. if the insertion cursor is inside the current selection, the clipboard selection replaces the selected text β€” like it slides in and takes over πŸ’…

Text can be cut or copied to the clipboard with DtEditorCutToClipboard(3) and DtEditorCopyToClipboard(3). Text can be selected and deselected programmatically with DtEditorSelectAll(3) and DtEditorDeselect(3). iykyk, all the selection besties are linked up πŸŽ€

The widget argument specifies the DtEditor widget ID. yes bestie, that’s the widget handshake 🀝

For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3). go read the main character’s page for the full lore πŸ‘‘

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, the DtEditorPasteFromClipboard function returns True; otherwise, if the widget does not own the primary selection, the function returns False. so if it doesn’t own the primary selection, it’s a False era, periodt πŸ’€

🌈 SEE ALSO 🌈


cute sign-off time, bestie: this is the DtEditorPasteFromClipboard library call page, and the footer has no extra source/version or date info beyond that library-call label. mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from