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
qxcbconnection.cpp File Reference

(8723daf6969c682043a7080a2eaa9106463bb492)

#include <QtGui/private/qguiapplication_p.h>
#include <QtCore/QDebug>
#include <QtCore/QCoreApplication>
#include "qxcbconnection.h"
#include "qxcbkeyboard.h"
#include "qxcbwindow.h"
#include "qxcbclipboard.h"
#include "qxcbwmsupport.h"
#include "qxcbnativeinterface.h"
#include "qxcbintegration.h"
#include "qxcbsystemtraytracker.h"
#include "qxcbglintegrationfactory.h"
#include "qxcbglintegration.h"
#include "qxcbcursor.h"
#include "qxcbbackingstore.h"
#include "qxcbeventqueue.h"
#include <QAbstractEventDispatcher>
#include <QByteArray>
#include <QScopedPointer>
#include <stdio.h>
#include <errno.h>
#include <xcb/xfixes.h>
#include <xcb/xkb.h>
#include <xcb/xinput.h>
#include "moc_qxcbconnection.cpp"
+ Include dependency graph for qxcbconnection.cpp:

Go to the source code of this file.

Macros

#define explicit   dont_use_cxx_explicit
 
#define HANDLE_PLATFORM_WINDOW_EVENT(event_t, windowMember, handler)
 
#define HANDLE_KEYBOARD_EVENT(event_t, handler)
 
#define PRINT_AND_RETURN(name)
 
#define CASE_PRINT_AND_RETURN(name)   case name : PRINT_AND_RETURN(#name);
 
#define XI_PRINT_AND_RETURN(name)
 
#define XI_CASE_PRINT_AND_RETURN(name)   case name : XI_PRINT_AND_RETURN(#name);
 

Functions

static Qt::MouseButtons translateMouseButtons (int s)
 

Variables

const char * xcb_errors []
 
const char * xcb_protocol_request_codes []
 

Macro Definition Documentation

◆ CASE_PRINT_AND_RETURN

#define CASE_PRINT_AND_RETURN ( name)    case name : PRINT_AND_RETURN(#name);

◆ explicit

#define explicit   dont_use_cxx_explicit

Definition at line 33 of file qxcbconnection.cpp.

◆ HANDLE_KEYBOARD_EVENT

#define HANDLE_KEYBOARD_EVENT ( event_t,
handler )
Value:
{ \
auto e = reinterpret_cast<event_t *>(event); \
if (QXcbWindowEventListener *eventListener = windowEventListenerFromId(e->event)) { \
if (eventListener->handleNativeEvent(event)) \
return; \
m_keyboard->handler(e); \
} \
} \
break;
struct _cl_event * event

Definition at line 170 of file qxcbconnection.cpp.

Referenced by QXcbConnection::handleXcbEvent().

◆ HANDLE_PLATFORM_WINDOW_EVENT

#define HANDLE_PLATFORM_WINDOW_EVENT ( event_t,
windowMember,
handler )
Value:
{ \
auto e = reinterpret_cast<event_t *>(event); \
if (QXcbWindowEventListener *eventListener = windowEventListenerFromId(e->windowMember)) { \
if (eventListener->handleNativeEvent(event)) \
return; \
eventListener->handler(e); \
} \
} \
break;

Definition at line 159 of file qxcbconnection.cpp.

Referenced by QXcbConnection::handleXcbEvent().

◆ PRINT_AND_RETURN

#define PRINT_AND_RETURN ( name)
Value:
{ \
qCDebug(log, "%s | %s(%d) | sequence: %d", message, name, response_type, sequence); \
return; \
}
GLuint GLsizei const GLchar * message
GLuint name

◆ XI_CASE_PRINT_AND_RETURN

#define XI_CASE_PRINT_AND_RETURN ( name)    case name : XI_PRINT_AND_RETURN(#name);

◆ XI_PRINT_AND_RETURN

#define XI_PRINT_AND_RETURN ( name)
Value:
{ \
qCDebug(log, "%s | XInput Event(%s) | sequence: %d", message, name, sequence); \
return; \
}

Function Documentation

◆ translateMouseButtons()

static Qt::MouseButtons translateMouseButtons ( int s)
static

Definition at line 464 of file qxcbconnection.cpp.

References Qt::LeftButton, Qt::MiddleButton, ret, and Qt::RightButton.

Referenced by QXcbConnection::handleXcbEvent(), and QXcbConnection::queryMouseButtons().

+ Here is the caller graph for this function:

Variable Documentation

◆ xcb_errors

const char* xcb_errors[]
Initial value:
=
{
"Success",
"BadRequest",
"BadValue",
"BadWindow",
"BadPixmap",
"BadAtom",
"BadCursor",
"BadFont",
"BadMatch",
"BadDrawable",
"BadAccess",
"BadAlloc",
"BadColor",
"BadGC",
"BadIDChoice",
"BadName",
"BadLength",
"BadImplementation",
"Unknown"
}

Definition at line 293 of file qxcbconnection.cpp.

Referenced by QXcbConnection::printXcbError().

◆ xcb_protocol_request_codes

const char* xcb_protocol_request_codes[]

Definition at line 316 of file qxcbconnection.cpp.

Referenced by QXcbConnection::printXcbError().