KWin
Loading...
Searching...
No Matches
Signals | Public Member Functions | Friends | List of all members
KWin::DataDeviceInterface Class Reference

DataDeviceInterface allows clients to share data by copy-and-paste and drag-and-drop. More...

#include <datadevice.h>

Inheritance diagram for KWin::DataDeviceInterface:
KWin::AbstractDropHandler

Signals

void aboutToBeDestroyed ()
 
void dragStarted (AbstractDataSource *source, SurfaceInterface *originSurface, quint32 serial, DragAndDropIcon *dragIcon)
 
void selectionChanged (KWin::DataSourceInterface *)
 

Public Member Functions

virtual ~DataDeviceInterface ()
 
SeatInterfaceseat () const
 
DataSourceInterfaceselection () const
 
void sendSelection (KWin::AbstractDataSource *other)
 
void drop () override
 
void updateDragTarget (SurfaceInterface *surface, quint32 serial) override
 
wl_client * client ()
 
- Public Member Functions inherited from KWin::AbstractDropHandler
 AbstractDropHandler (QObject *parent=nullptr)
 

Friends

class DataDeviceManagerInterfacePrivate
 
class DataDeviceInterfacePrivate
 

Detailed Description

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.

See also
SeatInterface
DataSourceInterface

Definition at line 79 of file datadevice.h.

Constructor & Destructor Documentation

◆ ~DataDeviceInterface()

KWin::DataDeviceInterface::~DataDeviceInterface ( )
virtualdefault

Member Function Documentation

◆ aboutToBeDestroyed

void KWin::DataDeviceInterface::aboutToBeDestroyed ( )
signal

◆ client()

wl_client * KWin::DataDeviceInterface::client ( )

Definition at line 330 of file datadevice.cpp.

◆ dragStarted

void KWin::DataDeviceInterface::dragStarted ( AbstractDataSource * source,
SurfaceInterface * originSurface,
quint32 serial,
DragAndDropIcon * dragIcon )
signal

◆ drop()

void KWin::DataDeviceInterface::drop ( )
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.

◆ seat()

SeatInterface * KWin::DataDeviceInterface::seat ( ) const

Definition at line 187 of file datadevice.cpp.

◆ selection()

DataSourceInterface * KWin::DataDeviceInterface::selection ( ) const

Definition at line 192 of file datadevice.cpp.

◆ selectionChanged

void KWin::DataDeviceInterface::selectionChanged ( KWin::DataSourceInterface * )
signal

◆ sendSelection()

void KWin::DataDeviceInterface::sendSelection ( KWin::AbstractDataSource * other)

Definition at line 197 of file datadevice.cpp.

◆ updateDragTarget()

void KWin::DataDeviceInterface::updateDragTarget ( SurfaceInterface * surface,
quint32 serial )
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.

Parameters
surfaceThe SurfaceInterface which gets motion events
serialThe serial to be used for enter/leave

Implements KWin::AbstractDropHandler.

Definition at line 240 of file datadevice.cpp.

Friends And Related Symbol Documentation

◆ DataDeviceInterfacePrivate

friend class DataDeviceInterfacePrivate
friend

Definition at line 118 of file datadevice.h.

◆ DataDeviceManagerInterfacePrivate

friend class DataDeviceManagerInterfacePrivate
friend

Definition at line 115 of file datadevice.h.


The documentation for this class was generated from the following files: