Implement wxClipboard::Flush() in wxGTK

Update the documentation and also add a call of Flush() to the sample.

Closes #10515.

Closes https://github.com/wxWidgets/wxWidgets/pull/1316
This commit is contained in:
oneeyeman1
2019-05-04 13:28:59 -05:00
committed by Vadim Zeitlin
parent 02adddfa1a
commit 28a84486bd
4 changed files with 26 additions and 3 deletions

View File

@@ -53,6 +53,11 @@ public:
// fill data with data on the clipboard (if available)
virtual bool GetData( wxDataObject& data ) wxOVERRIDE;
// flushes the clipboard; that means that the data which is currently on
// clipboard will stay available even after the application exits (possibly
// eating memory), otherwise the clipboard will be emptied on exit
virtual bool Flush() wxOVERRIDE;
// clears wxTheClipboard and the system's clipboard if possible
virtual void Clear() wxOVERRIDE;