![]() |
Louvre
v2.9.0-1
C++ library for Wayland compositors
|
Clipboard manager. More...
Classes | |
struct | MimeTypeFile |
Structure representing a Clipboard MIME type. More... | |
Public Member Functions | |
LClipboard (const void *params) noexcept | |
Constructor. More... | |
~LClipboard () | |
Desructor. More... | |
virtual bool | setClipboardRequest (LClient *client, const LEvent &triggeringEvent) |
Client request to set the clipboard. More... | |
virtual bool | persistentMimeTypeFilter (const std::string &mimeType) const |
Filter of persistent clipboard MIME types. More... | |
const std::vector< MimeTypeFile > & | mimeTypes () const noexcept |
Access to the current clipboard MIME types. More... | |
![]() | |
Type | factoryObjectType () const noexcept |
Gets the base factory object type. More... | |
![]() | |
LObject (const LObject &) noexcept | |
Copy constructor. More... | |
LObject & | operator= (const LObject &) noexcept |
Assignment operator (each object has its own individual LWeak reference count). More... | |
void | setUserData (UIntPtr data) const noexcept |
Store an unsigned integer value/pointer. More... | |
UIntPtr | userData () const noexcept |
Retrieves the stored unsigned integer value/pointer. More... | |
Additional Inherited Members | |
![]() | |
enum class | Type : Int32 |
Base factory object types. More... | |
![]() | |
LObject () noexcept=default | |
Constructor of the LObject class. More... | |
virtual | ~LObject () noexcept |
Destructor of the LObject class. More... | |
void | notifyDestruction () noexcept |
Notifies the object destruction. More... | |
Clipboard manager.
LClipboard lets you manage which clients can set the clipboard and also specify which MIME types to make persistent.
Clients can access the clipboard when one of their surfaces acquires keyboard focus.
struct Louvre::LClipboard::MimeTypeFile |
|
noexcept |
Constructor.
|
inline |
Desructor.
Client request to set the clipboard.
Returning true
grants the client permission to set the clipboard and false
prohibits it.
Only a single client can set the clipboard at a time.
|
virtual |
Filter of persistent clipboard MIME types.
Keep the clipboard data for specific MIME types even after the client owning the clipboard data is disconnected.
true
to make the MIME type persistent, false
otherwise.
|
noexcept |
Access to the current clipboard MIME types.