Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qxcbconnection.cpp File Reference

(02de77535f2a94cbeb7e0ea01895ba4e556e165c)

#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)
#define XI_PRINT_AND_RETURN(name)
#define XI_CASE_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)
Value:
EGLImageKHR EGLint * name
#define PRINT_AND_RETURN(name)

◆ explicit

#define explicit   dont_use_cxx_explicit

Definition at line 34 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.

◆ 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.

◆ 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

◆ XI_CASE_PRINT_AND_RETURN

#define XI_CASE_PRINT_AND_RETURN ( name)
Value:
#define 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()

Qt::MouseButtons translateMouseButtons ( int s)
static

Definition at line 464 of file qxcbconnection.cpp.

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.

◆ xcb_protocol_request_codes

const char * xcb_protocol_request_codes

Definition at line 316 of file qxcbconnection.cpp.