Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qxcbdrag.cpp File Reference
#include "qxcbdrag.h"
#include <xcb/xcb.h>
#include "qxcbconnection.h"
#include "qxcbclipboard.h"
#include "qxcbmime.h"
#include "qxcbwindow.h"
#include "qxcbscreen.h"
#include "qwindow.h"
#include "qxcbcursor.h"
#include <private/qdnd_p.h>
#include <qdebug.h>
#include <qevent.h>
#include <qguiapplication.h>
#include <qrect.h>
#include <qpainter.h>
#include <qtimer.h>
#include <qpa/qwindowsysteminterface.h>
#include <private/qguiapplication_p.h>
#include <private/qshapedpixmapdndwindow_p.h>
#include <private/qsimpledrag_p.h>
#include <private/qhighdpiscaling_p.h>
+ Include dependency graph for qxcbdrag.cpp:

Go to the source code of this file.

Classes

class  QXcbDropData
 

Functions

static xcb_window_t xcb_window (QPlatformWindow *w)
 
static xcb_window_t xcb_window (QWindow *w)
 
static xcb_window_t xdndProxy (QXcbConnection *c, xcb_window_t w)
 
static bool windowInteractsWithPosition (xcb_connection_t *connection, const QPoint &pos, xcb_window_t w, xcb_shape_sk_t shapeType)
 
static xcb_window_t findXdndAwareParent (QXcbConnection *c, xcb_window_t window)
 

Variables

QT_BEGIN_NAMESPACE const int xdnd_version = 5
 

Function Documentation

◆ findXdndAwareParent()

static xcb_window_t findXdndAwareParent ( QXcbConnection c,
xcb_window_t  window 
)
static

Definition at line 1138 of file qxcbdrag.cpp.

References QXcbAtom::AtomXdndAware, forever, parent, Q_XCB_REPLY, Q_XCB_REPLY_UNCHECKED, and window().

Referenced by QXcbDrag::handleSelectionRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ windowInteractsWithPosition()

static bool windowInteractsWithPosition ( xcb_connection_t *  connection,
const QPoint pos,
xcb_window_t  w,
xcb_shape_sk_t  shapeType 
)
static

Definition at line 197 of file qxcbdrag.cpp.

References connection, QRect::contains(), i, pos, Q_XCB_REPLY, and reply.

+ Here is the call graph for this function:

◆ xcb_window() [1/2]

static xcb_window_t xcb_window ( QPlatformWindow w)
inlinestatic

Definition at line 32 of file qxcbdrag.cpp.

References xcb_window().

Referenced by QXcbDrag::handleDrop(), QGLXContext::swapBuffers(), xcb_window(), xcb_window(), and QXcbDropData::xdndObtainData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ xcb_window() [2/2]

static xcb_window_t xcb_window ( QWindow w)
inlinestatic

Definition at line 37 of file qxcbdrag.cpp.

References xcb_window().

+ Here is the call graph for this function:

◆ xdndProxy()

static xcb_window_t xdndProxy ( QXcbConnection c,
xcb_window_t  w 
)
static

Definition at line 42 of file qxcbdrag.cpp.

References QXcbAtom::AtomXdndProxy, proxy, Q_XCB_REPLY, and reply.

Referenced by QXcbDrag::dndEnable(), QXcbDrag::handleEnter(), QXcbDrag::handleSelectionRequest(), and QXcbDrag::move().

+ Here is the caller graph for this function:

Variable Documentation

◆ xdnd_version

QT_BEGIN_NAMESPACE const int xdnd_version = 5

Definition at line 30 of file qxcbdrag.cpp.

Referenced by QXcbDrag::dndEnable(), QXcbDrag::handleEnter(), and QXcbDrag::move().