diff options
author | numzero <numzer0@yandex.ru> | 2023-03-25 10:42:11 +0300 |
---|---|---|
committer | numzero <numzer0@yandex.ru> | 2023-03-25 10:42:47 +0300 |
commit | d97d1708d68a98c039db8a06c4110bfc961d3fb1 (patch) | |
tree | 1a90cd7a34793982aa9376468feb41e67d2b7cdc /source/Irrlicht/CIrrDeviceLinux.h | |
parent | ba77d01c91a363ad932ecd26c3eaba82ddf7a6f0 (diff) | |
parent | 799c8b936f9a2cc4f3a8bc56237fb9a8dedf853e (diff) | |
download | irrlicht-d97d1708d68a98c039db8a06c4110bfc961d3fb1.tar.xz |
Resolve conflicts with master
Diffstat (limited to 'source/Irrlicht/CIrrDeviceLinux.h')
-rw-r--r-- | source/Irrlicht/CIrrDeviceLinux.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source/Irrlicht/CIrrDeviceLinux.h b/source/Irrlicht/CIrrDeviceLinux.h index 2d8945c..544a736 100644 --- a/source/Irrlicht/CIrrDeviceLinux.h +++ b/source/Irrlicht/CIrrDeviceLinux.h @@ -97,11 +97,20 @@ namespace irr //! \return Returns 0 if no string is in there, otherwise utf-8 text.
virtual const c8 *getTextFromClipboard() const;
+ //! gets text from the primary selection
+ //! \return Returns 0 if no string is in there, otherwise utf-8 text.
+ virtual const c8 *getTextFromPrimarySelection() const;
+
//! copies text to the clipboard
- //! This sets the clipboard selection and _not_ the primary selection which you have on X on the middle mouse button.
+ //! This sets the clipboard selection and _not_ the primary selection.
//! @param text The text in utf-8
virtual void copyToClipboard(const c8 *text) const;
+ //! copies text to the primary selection
+ //! This sets the primary selection which you have on X on the middle mouse button.
+ //! @param text The text in utf-8
+ virtual void copyToPrimarySelection(const c8 *text) const;
+
//! Remove all messages pending in the system message loop
void clearSystemMessages() override;
@@ -141,6 +150,9 @@ namespace irr bool createInputContext();
void destroyInputContext();
EKEY_CODE getKeyCode(XEvent &event);
+
+ const c8 *getTextFromSelection(Atom selection, core::stringc &text_buffer) const;
+ bool becomeSelectionOwner(Atom selection) const;
#endif
//! Implementation of the linux cursor control
@@ -413,6 +425,7 @@ namespace irr bool HasNetWM;
// text is utf-8
mutable core::stringc Clipboard;
+ mutable core::stringc PrimarySelection;
#endif
#if defined(_IRR_LINUX_X11_XINPUT2_)
int currentTouchedCount;
|