KWin
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
KWin::Xwl::Dnd Class Reference

#include <dnd.h>

Inheritance diagram for KWin::Xwl::Dnd:
KWin::Xwl::Selection

Public Types

using DnDAction = DataDeviceManagerInterface::DnDAction
 
using DnDActions = DataDeviceManagerInterface::DnDActions
 

Public Member Functions

 Dnd (xcb_atom_t atom, QObject *parent)
 
XwlDropHandlerdropHandler () const
 
void doHandleXfixesNotify (xcb_xfixes_selection_notify_event_t *event) override
 
void x11OfferLost () override
 
void x11OffersChanged (const QStringList &added, const QStringList &removed) override
 
bool handleClientMessage (xcb_client_message_event_t *event) override
 
DragEventReply dragMoveFilter (Window *target)
 
- Public Member Functions inherited from KWin::Xwl::Selection
bool handleXfixesNotify (xcb_xfixes_selection_notify_event_t *event)
 
bool filterEvent (xcb_generic_event_t *event)
 
xcb_atom_t atom () const
 
xcb_window_t window () const
 
void overwriteRequestorWindow (xcb_window_t window)
 

Static Public Member Functions

static uint32_t version ()
 
static DnDAction atomToClientAction (xcb_atom_t atom)
 
static xcb_atom_t clientActionToAtom (DnDAction action)
 
- Static Public Member Functions inherited from KWin::Xwl::Selection
static xcb_atom_t mimeTypeToAtom (const QString &mimeType)
 
static xcb_atom_t mimeTypeToAtomLiteral (const QString &mimeType)
 
static QStringList atomToMimeTypes (xcb_atom_t atom)
 
static QString atomName (xcb_atom_t atom)
 
static void sendSelectionNotify (xcb_selection_request_event_t *event, bool success)
 

Additional Inherited Members

- Signals inherited from KWin::Xwl::Selection
void transferFinished (xcb_timestamp_t eventTime)
 
- Protected Member Functions inherited from KWin::Xwl::Selection
 Selection (xcb_atom_t atom, QObject *parent)
 
void registerXfixes ()
 
void setWlSource (WlSource *source)
 
WlSourcewlSource () const
 
void createX11Source (xcb_xfixes_selection_notify_event_t *event)
 
X11Sourcex11Source () const
 
void ownSelection (bool own)
 
void setWindow (xcb_window_t window)
 

Detailed Description

Represents the drag and drop mechanism, on X side this is the XDND protocol. For more information on XDND see: https://johnlindal.wixsite.com/xdnd

Definition at line 33 of file dnd.h.

Member Typedef Documentation

◆ DnDAction

Definition at line 50 of file dnd.h.

◆ DnDActions

using KWin::Xwl::Dnd::DnDActions = DataDeviceManagerInterface::DnDActions

Definition at line 51 of file dnd.h.

Constructor & Destructor Documentation

◆ Dnd()

KWin::Xwl::Dnd::Dnd ( xcb_atom_t atom,
QObject * parent )
explicit

Definition at line 48 of file dnd.cpp.

Member Function Documentation

◆ atomToClientAction()

DnDAction KWin::Xwl::Dnd::atomToClientAction ( xcb_atom_t atom)
static

Definition at line 185 of file dnd.cpp.

◆ clientActionToAtom()

xcb_atom_t KWin::Xwl::Dnd::clientActionToAtom ( DnDAction action)
static

Definition at line 199 of file dnd.cpp.

◆ doHandleXfixesNotify()

void KWin::Xwl::Dnd::doHandleXfixesNotify ( xcb_xfixes_selection_notify_event_t * event)
overridevirtual

Implements KWin::Xwl::Selection.

Definition at line 80 of file dnd.cpp.

◆ dragMoveFilter()

DragEventReply KWin::Xwl::Dnd::dragMoveFilter ( Window * target)

Definition at line 137 of file dnd.cpp.

◆ dropHandler()

XwlDropHandler * KWin::Xwl::Dnd::dropHandler ( ) const

Definition at line 43 of file dnd.cpp.

◆ handleClientMessage()

bool KWin::Xwl::Dnd::handleClientMessage ( xcb_client_message_event_t * event)
overridevirtual

Reimplemented from KWin::Xwl::Selection.

Definition at line 124 of file dnd.cpp.

◆ version()

uint32_t KWin::Xwl::Dnd::version ( )
static

Definition at line 38 of file dnd.cpp.

◆ x11OfferLost()

void KWin::Xwl::Dnd::x11OfferLost ( )
overridevirtual

Implements KWin::Xwl::Selection.

Definition at line 116 of file dnd.cpp.

◆ x11OffersChanged()

void KWin::Xwl::Dnd::x11OffersChanged ( const QStringList & added,
const QStringList & removed )
overridevirtual

Implements KWin::Xwl::Selection.

Definition at line 120 of file dnd.cpp.


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