aboutsummaryrefslogtreecommitdiff
path: root/include/IOSOperator.h
diff options
context:
space:
mode:
authorDesour <vorunbekannt75@web.de>2022-08-23 17:19:23 +0200
committersfan5 <sfan5@live.de>2023-03-24 17:59:06 +0100
commit53b9eaa83172478f9ddffb88d946801a1c57c8f0 (patch)
treeb5df510a1ce4bbcbb17869b23fb79457966f2da2 /include/IOSOperator.h
parent1967d71cfba23fb54ac88cea64673f73af13bfda (diff)
downloadirrlicht-53b9eaa83172478f9ddffb88d946801a1c57c8f0.tar.xz
Implement X11 primary selection
Diffstat (limited to 'include/IOSOperator.h')
-rw-r--r--include/IOSOperator.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/IOSOperator.h b/include/IOSOperator.h
index b195aed..6e5768a 100644
--- a/include/IOSOperator.h
+++ b/include/IOSOperator.h
@@ -26,12 +26,23 @@ public:
}
//! Copies text to the clipboard
+ //! \param text: text in utf-8
virtual void copyToClipboard(const c8* text) const = 0;
+ //! Copies text to the primary selection
+ //! This is a no-op on some platforms.
+ //! \param text: text in utf-8
+ virtual void copyToPrimarySelection(const c8* text) const = 0;
+
//! Get text from the clipboard
- /** \return Returns 0 if no string is in there. */
+ //! \return Returns 0 if no string is in there, otherwise an utf-8 string.
virtual const c8* getTextFromClipboard() const = 0;
+ //! Get text from the primary selection
+ //! This is a no-op on some platforms.
+ //! \return Returns 0 if no string is in there, otherwise an utf-8 string.
+ virtual const c8* getTextFromPrimarySelection() const = 0;
+
//! Get the total and available system RAM
/** \param totalBytes: will contain the total system memory in Kilobytes (1024 B)
\param availableBytes: will contain the available memory in Kilobytes (1024 B)