KWin
|
DataDeviceInterface allows clients to share data by copy-and-paste and drag-and-drop. More...
#include <datadevice.h>
Signals | |
void | aboutToBeDestroyed () |
void | dragStarted (AbstractDataSource *source, SurfaceInterface *originSurface, quint32 serial, DragAndDropIcon *dragIcon) |
void | selectionChanged (KWin::DataSourceInterface *) |
Public Member Functions | |
virtual | ~DataDeviceInterface () |
SeatInterface * | seat () const |
DataSourceInterface * | selection () const |
void | sendSelection (KWin::AbstractDataSource *other) |
void | drop () override |
void | updateDragTarget (SurfaceInterface *surface, quint32 serial) override |
wl_client * | client () |
![]() | |
AbstractDropHandler (QObject *parent=nullptr) | |
Friends | |
class | DataDeviceManagerInterfacePrivate |
class | DataDeviceInterfacePrivate |
DataDeviceInterface allows clients to share data by copy-and-paste and drag-and-drop.
The data device is per seat. Copy-and-paste use the selection functions.
Represents the Resource for the wl_data_device interface.
Definition at line 79 of file datadevice.h.
|
virtualdefault |
|
signal |
wl_client * KWin::DataDeviceInterface::client | ( | ) |
Definition at line 330 of file datadevice.cpp.
|
signal |
|
overridevirtual |
The event is sent when a drag-and-drop operation is ended because the implicit grab is removed.
Implements KWin::AbstractDropHandler.
Definition at line 203 of file datadevice.cpp.
SeatInterface * KWin::DataDeviceInterface::seat | ( | ) | const |
Definition at line 187 of file datadevice.cpp.
DataSourceInterface * KWin::DataDeviceInterface::selection | ( | ) | const |
Definition at line 192 of file datadevice.cpp.
|
signal |
void KWin::DataDeviceInterface::sendSelection | ( | KWin::AbstractDataSource * | other | ) |
Definition at line 197 of file datadevice.cpp.
|
overridevirtual |
Updates the SurfaceInterface to which drag motion events are sent.
If a SurfaceInterface was registered in this DataDeviceInterface for drag motion events, it will be sent a leave event.
If surface
is not null it will be sent a drag enter event.
surface | The SurfaceInterface which gets motion events |
serial | The serial to be used for enter/leave |
Implements KWin::AbstractDropHandler.
Definition at line 240 of file datadevice.cpp.
|
friend |
Definition at line 118 of file datadevice.h.
|
friend |
Definition at line 115 of file datadevice.h.