diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-11-01 10:41:51 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-11-01 10:41:51 +0100 |
| commit | 994f5d058b721005bba3c2b5baae7aa0486c7f44 (patch) | |
| tree | 5edb854e580c0a3d001858f1851d8212728c6eb2 /FL/Fl.H | |
| parent | 8bd1bd71622df37f097b04746a98389ddb890558 (diff) | |
Fix: Fl::clipboard_contains() cannot query selection buffer (#690)
Diffstat (limited to 'FL/Fl.H')
| -rw-r--r-- | FL/Fl.H | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1032,7 +1032,12 @@ public: */ static void remove_clipboard_notify(Fl_Clipboard_Notify_Handler h); /** Returns non 0 if the clipboard contains data matching \p type. - \p type can be Fl::clipboard_plain_text or Fl::clipboard_image. + The clipboard can contain both text and image data; in that situation this function + returns non 0 to both requests. + This function is \e not meant to check whether the clipboard is empty. + This function does not allow to query the selection buffer because FLTK + allows to copy/paste non-textual data only from/to the clipboard. + \param type can be Fl::clipboard_plain_text or Fl::clipboard_image. */ static int clipboard_contains(const char *type); /** Denotes plain textual data |
