|
static void | cancelled (void *data, struct wl_selection *selection) |
|
static uint32_t | getTime () |
|
static void | send (void *data, struct wl_selection *selection, const char *mime_type, int fd) |
|
Definition at line 93 of file qwaylandclipboard.cpp.
◆ QWaylandSelection()
Definition at line 120 of file qwaylandclipboard.cpp.
123 struct wl_shell *shell = display->
wl_shell();
124 mSelection = wl_shell_create_selection(shell);
virtual QStringList formats() const
Returns a list of formats supported by the object.
The QString class provides a Unicode character string.
static uint32_t getTime()
const T & at(int i) const
Returns the item at index position i in the list.
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
const char * constData() const
Returns a pointer to the data stored in the byte array.
static const struct wl_selection_listener selectionListener
struct wl_shell * wl_shell() const
struct wl_selection * mSelection
QList< QWaylandInputDevice * > inputDevices() const
◆ ~QWaylandSelection()
QWaylandSelection::~QWaylandSelection |
( |
| ) |
|
Definition at line 133 of file qwaylandclipboard.cpp.
static QWaylandClipboard * clipboard
void unregisterSelection(QWaylandSelection *selection)
struct wl_selection * mSelection
◆ cancelled()
void QWaylandSelection::cancelled |
( |
void * |
data, |
|
|
struct wl_selection * |
selection |
|
) |
| |
|
static |
Definition at line 159 of file qwaylandclipboard.cpp.
static const char * data(const QByteArray &arr)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ getTime()
uint32_t QWaylandSelection::getTime |
( |
| ) |
|
|
static |
◆ send()
void QWaylandSelection::send |
( |
void * |
data, |
|
|
struct wl_selection * |
selection, |
|
|
const char * |
mime_type, |
|
|
int |
fd |
|
) |
| |
|
static |
Definition at line 142 of file qwaylandclipboard.cpp.
char * data()
Returns a pointer to the data stored in the byte array.
bool open(OpenMode flags)
Opens the file using OpenMode mode, returning true if successful; otherwise false.
The QByteArray class provides an array of bytes.
The QString class provides a Unicode character string.
static const char * data(const QByteArray &arr)
The QFile class provides an interface for reading from and writing to files.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ mMimeData
◆ mSelection
struct wl_selection* QWaylandSelection::mSelection |
◆ selectionListener
const struct wl_selection_listener QWaylandSelection::selectionListener |
|
static |
The documentation for this struct was generated from the following file: