Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qxcbdrag.cpp File Reference

(5896314ff3e46849b6ff7e1069f2273cc6508cf7)

#include "qxcbdrag.h"
#include <xcb/xcb.h>
#include "qxcbconnection.h"
#include "qxcbclipboard.h"
#include "qxcbkeyboard.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

const int xdnd_version = 5
 

Function Documentation

◆ findXdndAwareParent()

static xcb_window_t findXdndAwareParent ( QXcbConnection * c,
xcb_window_t window )
static

Definition at line 1141 of file qxcbdrag.cpp.

References QXcbAtom::AtomXdndAware, forever, 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 200 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 35 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 40 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 45 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

const int xdnd_version = 5

Definition at line 33 of file qxcbdrag.cpp.

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