![]() |
Qt 6.x
The Qt SDK
|
#include <qxcbconnection.h>
Public Member Functions | |
QXcbConnection (QXcbNativeInterface *nativeInterface, bool canGrabServer, xcb_visualid_t defaultVisualId, const char *displayName=nullptr) | |
~QXcbConnection () | |
QXcbConnection * | connection () const |
QXcbEventQueue * | eventQueue () const |
const QList< QXcbVirtualDesktop * > & | virtualDesktops () const |
const QList< QXcbScreen * > & | screens () const |
QXcbVirtualDesktop * | primaryVirtualDesktop () const |
QXcbScreen * | primaryScreen () const |
const xcb_format_t * | formatForDepth (uint8_t depth) const |
bool | imageNeedsEndianSwap () const |
QXcbKeyboard * | keyboard () const |
QXcbClipboard * | clipboard () const |
QXcbWMSupport * | wmSupport () const |
xcb_window_t | rootWindow () |
xcb_window_t | clientLeader () |
bool | hasDefaultVisualId () const |
xcb_visualid_t | defaultVisualId () const |
void | sync () |
void | handleXcbError (xcb_generic_error_t *error) |
void | printXcbError (const char *message, xcb_generic_error_t *error) |
void | handleXcbEvent (xcb_generic_event_t *event) |
void | printXcbEvent (const QLoggingCategory &log, const char *message, xcb_generic_event_t *event) const |
void | addWindowEventListener (xcb_window_t id, QXcbWindowEventListener *eventListener) |
void | removeWindowEventListener (xcb_window_t id) |
QXcbWindowEventListener * | windowEventListenerFromId (xcb_window_t id) |
QXcbWindow * | platformWindowFromId (xcb_window_t id) |
xcb_timestamp_t | time () const |
void | setTime (xcb_timestamp_t t) |
xcb_timestamp_t | netWmUserTime () const |
void | setNetWmUserTime (xcb_timestamp_t t) |
xcb_timestamp_t | getTimestamp () |
xcb_window_t | selectionOwner (xcb_atom_t atom) const |
xcb_window_t | qtSelectionOwner () |
void | setButtonState (Qt::MouseButton button, bool down) |
Qt::MouseButtons | buttonState () const |
Qt::MouseButton | button () const |
Qt::MouseButton | translateMouseButton (xcb_button_t s) |
QXcbWindow * | focusWindow () const |
void | setFocusWindow (QWindow *) |
QXcbWindow * | mouseGrabber () const |
void | setMouseGrabber (QXcbWindow *) |
QXcbWindow * | mousePressWindow () const |
void | setMousePressWindow (QXcbWindow *) |
QByteArray | startupId () const |
void | setStartupId (const QByteArray &nextId) |
void | grabServer () |
void | ungrabServer () |
QString | windowManagerName () const |
QXcbNativeInterface * | nativeInterface () const |
QXcbSystemTrayTracker * | systemTrayTracker () const |
Qt::MouseButtons | queryMouseButtons () const |
Qt::KeyboardModifiers | queryKeyboardModifiers () const |
bool | isUserInputEvent (xcb_generic_event_t *event) const |
void | xi2SelectStateEvents () |
void | xi2SelectDeviceEvents (xcb_window_t window) |
bool | xi2SetMouseGrabEnabled (xcb_window_t w, bool grab) |
Qt::MouseButton | xiToQtMouseButton (uint32_t b) |
void | xi2UpdateScrollingDevices () |
bool | isTouchScreen (int id) |
bool | startSystemMoveResizeForTouch (xcb_window_t window, int edges) |
void | abortSystemMoveResize (xcb_window_t window) |
bool | isDuringSystemMoveResize () const |
void | setDuringSystemMoveResize (bool during) |
bool | canGrab () const |
QXcbGlIntegration * | glIntegration () const |
void | flush () |
void | processXcbEvents (QEventLoop::ProcessEventsFlags flags) |
QTimer & | focusInTimer () |
![]() | |
QXcbBasicConnection (const char *displayName) | |
~QXcbBasicConnection () | |
const char * | displayName () const |
int | primaryScreenNumber () const |
xcb_connection_t * | xcb_connection () const |
bool | isConnected () const |
const xcb_setup_t * | setup () const |
size_t | maxRequestDataBytes (size_t requestSize) const |
xcb_atom_t | atom (QXcbAtom::Atom qatom) const |
QXcbAtom::Atom | qatom (xcb_atom_t atom) const |
xcb_atom_t | internAtom (const char *name) |
QByteArray | atomName (xcb_atom_t atom) |
bool | hasXFixes () const |
bool | hasXShape () const |
bool | hasXRandr () const |
bool | hasInputShape () const |
bool | hasXKB () const |
bool | hasXRender (int major=-1, int minor=-1) const |
bool | hasXInput2 () const |
bool | hasShm () const |
bool | hasShmFd () const |
bool | hasXSync () const |
bool | hasBigRequest () const |
bool | isAtLeastXRandR12 () const |
bool | isAtLeastXRandR15 () const |
bool | isAtLeastXI21 () const |
bool | isAtLeastXI22 () const |
bool | isAtLeastXI24 () const |
bool | isXIEvent (xcb_generic_event_t *event) const |
bool | isXIType (xcb_generic_event_t *event, uint16_t type) const |
bool | isXFixesType (uint responseType, int eventType) const |
bool | isXRandrType (uint responseType, int eventType) const |
bool | isXkbType (uint responseType) const |
![]() | |
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
Constructs an object with parent object parent. | |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. | |
virtual bool | event (QEvent *event) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Filters events if this object has been installed as an event filter for the watched object. | |
QString | objectName () const |
Q_WEAK_OVERLOAD void | setObjectName (const QString &name) |
Sets the object's name to name. | |
void | setObjectName (QAnyStringView name) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
QBindable< QString > | bindableObjectName () |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false . | |
bool | isWindowType () const |
Returns true if the object is a window; otherwise returns false . | |
bool | isQuickItemType () const |
Returns true if the object is a QQuickItem; otherwise returns false . | |
bool | signalsBlocked () const noexcept |
Returns true if signals are blocked; otherwise returns false . | |
bool | blockSignals (bool b) noexcept |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). | |
QThread * | thread () const |
Returns the thread in which the object lives. | |
void | moveToThread (QThread *thread) |
Changes the thread affinity for this object and its children. | |
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds. | |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
template<typename T > | |
T | findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object. | |
template<typename T > | |
QList< T > | findChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. | |
template<typename T > | |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const QObjectList & | children () const |
Returns a list of child objects. | |
void | setParent (QObject *parent) |
Makes the object a child of parent. | |
void | installEventFilter (QObject *filterObj) |
Installs an event filter filterObj on this object. | |
void | removeEventFilter (QObject *obj) |
Removes an event filter object obj from this object. | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
void | dumpObjectTree () const |
Dumps a tree of children to the debug output. | |
void | dumpObjectInfo () const |
Dumps information about signal connections, etc. | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. | |
bool | setProperty (const char *name, QVariant &&value) |
QVariant | property (const char *name) const |
Returns the value of the object's name property. | |
QList< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () const |
Returns a pointer to the parent object. | |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false . | |
Protected Member Functions | |
bool | event (QEvent *e) override |
This virtual function receives events to an object and should return true if the event e was recognized and processed. | |
![]() | |
void | initializeShm () |
void | initializeXFixes () |
void | initializeXRender () |
void | initializeXRandr () |
void | initializeXShape () |
void | initializeXKB () |
void | initializeXSync () |
void | initializeXInput2 () |
![]() | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr. | |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. | |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
virtual void | childEvent (QChildEvent *event) |
This event handler can be reimplemented in a subclass to receive child events. | |
virtual void | customEvent (QEvent *event) |
This event handler can be reimplemented in a subclass to receive custom events. | |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
Friends | |
class | QXcbEventQueue |
Additional Inherited Members | |
![]() | |
void | deleteLater () |
\threadsafe | |
![]() | |
void | destroyed (QObject *=nullptr) |
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked. | |
void | objectNameChanged (const QString &objectName, QPrivateSignal) |
This signal is emitted after the object's name has been changed. | |
![]() | |
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
\threadsafe | |
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
\threadsafe | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static bool | disconnect (const QMetaObject::Connection &) |
Disconnect a connection. | |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
template<typename Func1 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
![]() | |
QScopedPointer< QObjectData > | d_ptr |
![]() | |
QString | objectName |
the name of this object | |
![]() | |
template< class T > T | qobject_cast (const QObject *object) |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr. | |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
\macro Q_CLASSINFO(Name, Value) | |
Definition at line 92 of file qxcbconnection.h.
QXcbConnection::QXcbConnection | ( | QXcbNativeInterface * | nativeInterface, |
bool | canGrabServer, | ||
xcb_visualid_t | defaultVisualId, | ||
const char * | displayName = nullptr |
||
) |
Definition at line 57 of file qxcbconnection.cpp.
References Qt::ActiveWindowFocusReason, QWindowSystemInterface::handleWindowActivated(), qgetenv(), and qunsetenv().
QXcbConnection::~QXcbConnection | ( | ) |
Definition at line 103 of file qxcbconnection.cpp.
References QWindowSystemInterface::handleScreenRemoved(), QList< T >::isEmpty(), and QList< T >::takeLast().
void QXcbConnection::abortSystemMoveResize | ( | xcb_window_t | window | ) |
Definition at line 1002 of file qxcbconnection_xi2.cpp.
References QXcbBasicConnection::atom(), QXcbAtom::Atom_NET_WM_MOVERESIZE, connection(), primaryScreen(), qCDebug, window(), and QXcbBasicConnection::xcb_connection().
Referenced by handleXcbEvent(), and QXcbWindow::startSystemMoveResize().
void QXcbConnection::addWindowEventListener | ( | xcb_window_t | id, |
QXcbWindowEventListener * | eventListener | ||
) |
Definition at line 136 of file qxcbconnection.cpp.
References QHash< Key, T >::insert().
Referenced by QXcbWindow::create(), and QXcbSystemTrayTracker::trayWindow().
|
inline |
Definition at line 163 of file qxcbconnection.h.
Referenced by QXcbWindow::handleMouseEvent(), and setButtonState().
|
inline |
Definition at line 162 of file qxcbconnection.h.
Referenced by doCheckUnGrabAncestor(), and QXcbWindow::handleMotionNotifyEvent().
|
inline |
Definition at line 203 of file qxcbconnection.h.
xcb_window_t QXcbConnection::clientLeader | ( | ) |
Definition at line 902 of file qxcbconnection.cpp.
References QGuiApplication::applicationDisplayName, QXcbBasicConnection::atom(), QXcbAtom::AtomSM_CLIENT_ID, QXcbAtom::AtomWM_CLIENT_LEADER, connection(), QByteArray::constData(), QByteArray::isEmpty(), primaryScreen(), qGuiApp, screen, setStartupId(), QXcbWindow::setWindowTitle(), QByteArray::size(), startupId(), and QXcbBasicConnection::xcb_connection().
Referenced by QXcbWindow::create(), setStartupId(), and QXcbWindow::show().
|
inline |
Definition at line 125 of file qxcbconnection.h.
Referenced by QXcbIntegration::clipboard().
|
inline |
Definition at line 99 of file qxcbconnection.h.
Referenced by abortSystemMoveResize(), clientLeader(), getTimestamp(), isUserInputEvent(), qtSelectionOwner(), queryKeyboardModifiers(), and queryMouseButtons().
|
inline |
Definition at line 136 of file qxcbconnection.h.
Referenced by QXcbWindow::create(), and QXcbVirtualDesktop::surfaceFormatFor().
|
overrideprotectedvirtual |
This virtual function receives events to an object and should return true if the event e was recognized and processed.
The event() function can be reimplemented to customize the behavior of an object.
Make sure you call the parent event class implementation for all the events you did not handle.
Example:
Reimplemented from QObject.
Definition at line 1187 of file qxcbconnection.cpp.
References e, QObject::event(), QXcbSyncWindowRequest::invalidate(), QXcbWindow::updateSyncRequestCounter(), QEvent::User, and QXcbSyncWindowRequest::window().
|
inline |
Definition at line 100 of file qxcbconnection.h.
Referenced by QXcbNativeInterface::generatePeekerId(), getTimestamp(), QXcbWindow::handleExposeEvent(), QXcbKeyboard::handleKeyEvent(), QXcbWindow::handleLeaveNotifyEvent(), QXcbNativeInterface::peekEventQueue(), and QXcbNativeInterface::removePeekerId().
|
inline |
Definition at line 207 of file qxcbconnection.h.
References QXcbBasicConnection::xcb_connection().
Referenced by QXcbClipboard::clipboardReadIncrementalProperty(), QXcbClipboard::clipboardReadProperty(), getTimestamp(), and QXcbWindow::relayFocusToModalWindow().
|
inline |
Definition at line 210 of file qxcbconnection.h.
Referenced by QXcbWindow::doFocusOut(), QXcbWindow::handleFocusInEvent(), and QXcbWindow::handleXEmbedMessage().
|
inline |
Definition at line 166 of file qxcbconnection.h.
Referenced by QXcbKeyboard::handleKeyEvent().
const xcb_format_t * QXcbConnection::formatForDepth | ( | uint8_t | depth | ) | const |
Definition at line 1102 of file qxcbconnection.cpp.
References qWarning, and QXcbBasicConnection::setup().
xcb_timestamp_t QXcbConnection::getTimestamp | ( | ) |
Definition at line 821 of file qxcbconnection.cpp.
References QXcbBasicConnection::atom(), QXcbAtom::Atom_QT_GET_TIMESTAMP, connection(), eventQueue(), flush(), QXcbBasicConnection::isConnected(), QXcbEventQueue::peek(), rootWindow(), sync(), window(), and QXcbBasicConnection::xcb_connection().
Referenced by QXcbClipboard::clipboardReadProperty().
QXcbGlIntegration * QXcbConnection::glIntegration | ( | ) | const |
Definition at line 1151 of file qxcbconnection.cpp.
References QXcbGlIntegrationFactory::create(), QString::fromLocal8Bit(), i, QXcbGlIntegration::initialize(), QString::isEmpty(), qCDebug, qgetenv(), and QStringLiteral.
Referenced by QXcbIntegration::createPlatformOpenGLContext(), QXcbIntegration::createPlatformWindow(), and QXcbIntegration::hasCapability().
void QXcbConnection::grabServer | ( | ) |
Definition at line 800 of file qxcbconnection.cpp.
References QXcbBasicConnection::xcb_connection().
void QXcbConnection::handleXcbError | ( | xcb_generic_error_t * | error | ) |
Definition at line 441 of file qxcbconnection.cpp.
References error, QAbstractEventDispatcher::filterNativeEvent(), QAbstractEventDispatcher::instance(), QXcbNativeInterface::nativeEventType(), and printXcbError().
Referenced by processXcbEvents().
void QXcbConnection::handleXcbEvent | ( | xcb_generic_event_t * | event | ) |
Definition at line 533 of file qxcbconnection.cpp.
References abortSystemMoveResize(), QXcbBasicConnection::atom(), QXcbAtom::Atom_NET_SUPPORTED, QXcbAtom::Atom_NET_WORKAREA, QXcbAtom::AtomMANAGER, QXcbAtom::AtomXdndFinished, QXcbAtom::AtomXdndSelection, QXcbAtom::AtomXdndStatus, QXcbKeyboard::coreDeviceId(), HANDLE_KEYBOARD_EVENT, HANDLE_PLATFORM_WINDOW_EVENT, QXcbClipboard::handlePropertyNotify(), QXcbClipboard::handleSelectionClearRequest(), QXcbClipboard::handleSelectionRequest(), QXcbGlIntegration::handleXcbEvent(), QXcbClipboard::handleXFixesSelectionRequest(), QXcbBasicConnection::hasXInput2(), QAbstractEventDispatcher::instance(), QXcbBasicConnection::isAtLeastXRandR15(), QXcbBasicConnection::isXFixesType(), QXcbBasicConnection::isXIEvent(), QXcbBasicConnection::isXkbType(), QXcbBasicConnection::isXRandrType(), QXcbNativeInterface::nativeEventType(), QXcbSystemTrayTracker::notifyManagerClientMessageEvent(), printXcbEvent(), Q_UNLIKELY, qCDebug, rootWindow(), setButtonState(), setTime(), time(), translateMouseButton(), translateMouseButtons(), QXcbKeyboard::updateKeymap(), QXcbVirtualDesktop::updateWorkArea(), QXcbKeyboard::updateXKBState(), QXcbKeyboard::updateXKBStateFromCore(), and window().
Referenced by processXcbEvents().
|
inline |
Definition at line 135 of file qxcbconnection.h.
Referenced by QXcbVirtualDesktop::surfaceFormatFor().
|
inline |
Definition at line 111 of file qxcbconnection.h.
References QXcbBasicConnection::hasShm(), and QXcbBasicConnection::setup().
bool QXcbConnection::isDuringSystemMoveResize | ( | ) | const |
Definition at line 1026 of file qxcbconnection_xi2.cpp.
bool QXcbConnection::isTouchScreen | ( | int | id | ) |
Definition at line 806 of file qxcbconnection_xi2.cpp.
References device, and QInputDevice::TouchScreen.
Referenced by QXcbWindow::handleXIMouseEvent().
bool QXcbConnection::isUserInputEvent | ( | xcb_generic_event_t * | event | ) | const |
Definition at line 1028 of file qxcbconnection.cpp.
References QXcbBasicConnection::atom(), QXcbAtom::AtomWM_DELETE_WINDOW, QXcbAtom::AtomWM_PROTOCOLS, connection(), QXcbBasicConnection::hasXInput2(), and QXcbBasicConnection::isXIType().
Referenced by QXcbEventQueue::takeFirst().
|
inline |
Definition at line 122 of file qxcbconnection.h.
Referenced by QXcbWindow::handleButtonPressEvent(), QXcbWindow::handleButtonReleaseEvent(), QXcbWindow::handleMotionNotifyEvent(), QXcbWindow::handleXIEnterLeave(), QXcbWindow::handleXIMouseEvent(), QXcbIntegration::initialize(), QXcbIntegration::possibleKeys(), and queryKeyboardModifiers().
|
inline |
Definition at line 168 of file qxcbconnection.h.
Referenced by QXcbWindow::handleXIEnterLeave().
|
inline |
Definition at line 170 of file qxcbconnection.h.
Referenced by QXcbWindow::handleMotionNotifyEvent().
|
inline |
Definition at line 181 of file qxcbconnection.h.
Referenced by QXcbWindow::handleNativeEvent(), and QXcbGlxIntegration::handleXcbEvent().
|
inline |
Definition at line 154 of file qxcbconnection.h.
QXcbWindow * QXcbConnection::platformWindowFromId | ( | xcb_window_t | id | ) |
Definition at line 151 of file qxcbconnection.cpp.
References QXcbWindowEventListener::toWindow(), and QHash< Key, T >::value().
Referenced by QXcbDrag::drop(), QXcbKeyboard::handleKeyEvent(), QXcbWindow::handleLeaveNotifyEvent(), QXcbDrag::move(), and QXcbScreen::topLevelAt().
QXcbScreen * QXcbConnection::primaryScreen | ( | ) | const |
Definition at line 126 of file qxcbconnection.cpp.
References QList< T >::first(), QList< T >::isEmpty(), QXcbBasicConnection::primaryScreenNumber(), Q_ASSERT, and QXcbScreen::screenNumber().
Referenced by QXcbSystemTrayBackingStore::QXcbSystemTrayBackingStore(), abortSystemMoveResize(), clientLeader(), QXcbIntegration::initialize(), rootWindow(), QXcbClipboard::screen(), and QXcbSystemTrayTracker::visualId().
|
inline |
Definition at line 104 of file qxcbconnection.h.
References QXcbBasicConnection::primaryScreenNumber().
Referenced by qtSelectionOwner(), and windowManagerName().
void QXcbConnection::printXcbError | ( | const char * | message, |
xcb_generic_error_t * | error | ||
) |
Definition at line 451 of file qxcbconnection.cpp.
References error, qCDebug, xcb_errors, and xcb_protocol_request_codes.
Referenced by handleXcbError().
void QXcbConnection::printXcbEvent | ( | const QLoggingCategory & | log, |
const char * | message, | ||
xcb_generic_event_t * | event | ||
) | const |
Definition at line 181 of file qxcbconnection.cpp.
References CASE_PRINT_AND_RETURN, QXcbBasicConnection::hasXInput2(), QXcbBasicConnection::isXFixesType(), QXcbBasicConnection::isXIEvent(), QXcbBasicConnection::isXkbType(), QXcbBasicConnection::isXRandrType(), PRINT_AND_RETURN, qCDebug, and XI_CASE_PRINT_AND_RETURN.
Referenced by handleXcbEvent().
void QXcbConnection::processXcbEvents | ( | QEventLoop::ProcessEventsFlags | flags | ) |
Definition at line 1066 of file qxcbconnection.cpp.
References QXcbEventQueue::flushBufferedEvents(), handleXcbError(), handleXcbEvent(), qt_XFlush(), qWarning, QXcbEventQueue::takeFirst(), and QXcbBasicConnection::xcb_connection().
Referenced by QXcbUnixEventDispatcher::processEvents().
xcb_window_t QXcbConnection::qtSelectionOwner | ( | ) |
Definition at line 872 of file qxcbconnection.cpp.
References QCoreApplication::applicationName, connection(), primaryVirtualDesktop(), QXcbVirtualDesktop::screen(), QXcbWindow::setWindowTitle(), and QXcbBasicConnection::xcb_connection().
Referenced by QXcbDrag::drop(), QXcbDrag::move(), QXcbClipboard::setMimeData(), and QXcbDrag::startDrag().
Qt::KeyboardModifiers QXcbConnection::queryKeyboardModifiers | ( | ) | const |
Definition at line 1144 of file qxcbconnection.cpp.
References connection(), keyboard(), QXcbCursor::queryPointer(), and QXcbKeyboard::translateModifiers().
Referenced by QXcbDrag::handleDrop(), and QXcbIntegration::queryKeyboardModifiers().
Qt::MouseButtons QXcbConnection::queryMouseButtons | ( | ) | const |
Definition at line 1137 of file qxcbconnection.cpp.
References connection(), QXcbCursor::queryPointer(), and translateMouseButtons().
Referenced by QXcbDrag::handleDrop().
void QXcbConnection::removeWindowEventListener | ( | xcb_window_t | id | ) |
Definition at line 141 of file qxcbconnection.cpp.
References QHash< Key, T >::remove().
Referenced by QXcbWindow::destroy(), and QXcbSystemTrayTracker::handleDestroyNotifyEvent().
xcb_window_t QXcbConnection::rootWindow | ( | ) |
Definition at line 896 of file qxcbconnection.cpp.
References primaryScreen().
Referenced by getTimestamp(), handleXcbEvent(), xi2SelectDeviceEvents(), and xi2SelectStateEvents().
|
inline |
Definition at line 103 of file qxcbconnection.h.
Referenced by QXcbVirtualDesktop::QXcbVirtualDesktop(), and QXcbVirtualDesktop::screenAt().
xcb_window_t QXcbConnection::selectionOwner | ( | xcb_atom_t | atom | ) | const |
Definition at line 861 of file qxcbconnection.cpp.
References QXcbBasicConnection::atom(), Q_XCB_REPLY, qCDebug, reply, and QXcbBasicConnection::xcb_connection().
Referenced by QXcbVirtualDesktop::QXcbVirtualDesktop(), QXcbVirtualDesktop::compositingActive(), QXcbClipboard::handleSelectionClearRequest(), QXcbClipboardMime::isEmpty(), QXcbClipboard::mimeData(), and QXcbSystemTrayTracker::trayWindow().
void QXcbConnection::setButtonState | ( | Qt::MouseButton | button, |
bool | down | ||
) |
Definition at line 476 of file qxcbconnection.cpp.
References button().
Referenced by handleXcbEvent(), and QXcbWindow::handleXIMouseEvent().
void QXcbConnection::setDuringSystemMoveResize | ( | bool | during | ) |
Definition at line 1031 of file qxcbconnection_xi2.cpp.
Referenced by QXcbWindow::doStartSystemMoveResize(), and startSystemMoveResizeForTouch().
Definition at line 764 of file qxcbconnection.cpp.
Referenced by QXcbWindow::doFocusIn(), QXcbWindow::doFocusOut(), and QXcbWindow::handleXEmbedMessage().
void QXcbConnection::setMouseGrabber | ( | QXcbWindow * | w | ) |
Definition at line 768 of file qxcbconnection.cpp.
Referenced by QXcbForeignWindow::~QXcbForeignWindow(), QXcbWindow::destroy(), QXcbWindow::handlePropertyNotifyEvent(), QXcbWindow::hide(), and QXcbWindow::setMouseGrabEnabled().
void QXcbConnection::setMousePressWindow | ( | QXcbWindow * | w | ) |
Definition at line 773 of file qxcbconnection.cpp.
Referenced by QXcbForeignWindow::~QXcbForeignWindow(), QXcbWindow::handleButtonPressEvent(), QXcbWindow::handleButtonReleaseEvent(), QXcbWindow::handleMotionNotifyEvent(), and QXcbWindow::hide().
|
inline |
Definition at line 155 of file qxcbconnection.h.
Referenced by QXcbWindow::updateNetWmUserTime().
void QXcbConnection::setStartupId | ( | const QByteArray & | nextId | ) |
Definition at line 782 of file qxcbconnection.cpp.
References QXcbBasicConnection::atom(), QXcbAtom::Atom_NET_STARTUP_ID, QXcbAtom::AtomUTF8_STRING, clientLeader(), nextId, and QXcbBasicConnection::xcb_connection().
Referenced by clientLeader(), and QXcbScreen::windowShown().
|
inline |
Definition at line 152 of file qxcbconnection.h.
Referenced by QXcbWindow::handleClientMessageEvent(), QXcbWindow::handleEnterNotifyEvent(), QXcbWindow::handleLeaveNotifyEvent(), QXcbWindow::handleMouseEvent(), QXcbWindow::handlePropertyNotifyEvent(), handleXcbEvent(), QXcbWindow::handleXEmbedMessage(), and QXcbClipboard::setMimeData().
bool QXcbConnection::startSystemMoveResizeForTouch | ( | xcb_window_t | window, |
int | edges | ||
) |
Definition at line 978 of file qxcbconnection_xi2.cpp.
References QHash< Key, T >::constBegin(), QHash< Key, T >::constEnd(), QHash< Key, T >::const_iterator::key(), QEventPoint::Pressed, qCDebug, setDuringSystemMoveResize(), state, QEventPoint::Stationary, QInputDevice::TouchScreen, QEventPoint::Updated, QHash< Key, T >::const_iterator::value(), and window().
Referenced by QXcbWindow::startSystemMoveResize().
QByteArray QXcbConnection::startupId | ( | ) | const |
Definition at line 778 of file qxcbconnection.cpp.
Referenced by clientLeader().
void QXcbConnection::sync | ( | ) |
Definition at line 1118 of file qxcbconnection.cpp.
References QXcbBasicConnection::xcb_connection().
Referenced by QXcbClipboard::~QXcbClipboard(), QXcbWindow::create(), QXcbWindow::destroy(), QXcbBackingStoreImage::flushScrolledRegion(), QXcbClipboard::getSelection(), getTimestamp(), QXcbBackingStoreImage::preparePaint(), QXcbWindow::requestActivateWindow(), QXcbWindow::setGeometry(), QXcbWindow::setWindowState(), QXcbWindow::show(), and QXcbIntegration::sync().
QXcbSystemTrayTracker * QXcbConnection::systemTrayTracker | ( | ) | const |
Definition at line 1125 of file qxcbconnection.cpp.
References QObject::connect(), QXcbSystemTrayTracker::create(), QGuiApplication::platformNativeInterface(), and SIGNAL.
Referenced by QXcbWindow::requestSystemTrayWindowDock().
|
inline |
Definition at line 151 of file qxcbconnection.h.
Referenced by QXcbDrag::drop(), QXcbClipboard::getSelection(), handleXcbEvent(), QXcbDrag::move(), QXcbWindow::requestActivateWindow(), QXcbWindow::sendXEmbedMessage(), and QXcbClipboard::setMimeData().
Qt::MouseButton QXcbConnection::translateMouseButton | ( | xcb_button_t | s | ) |
Definition at line 482 of file qxcbconnection.cpp.
References Qt::BackButton, Qt::ExtraButton10, Qt::ExtraButton11, Qt::ExtraButton12, Qt::ExtraButton13, Qt::ExtraButton14, Qt::ExtraButton15, Qt::ExtraButton16, Qt::ExtraButton17, Qt::ExtraButton18, Qt::ExtraButton19, Qt::ExtraButton20, Qt::ExtraButton21, Qt::ExtraButton22, Qt::ExtraButton23, Qt::ExtraButton24, Qt::ExtraButton3, Qt::ExtraButton4, Qt::ExtraButton5, Qt::ExtraButton6, Qt::ExtraButton7, Qt::ExtraButton8, Qt::ExtraButton9, Qt::ForwardButton, Qt::LeftButton, Qt::MiddleButton, Qt::NoButton, and Qt::RightButton.
Referenced by handleXcbEvent(), and QXcbWindow::handleXIMouseEvent().
void QXcbConnection::ungrabServer | ( | ) |
Definition at line 806 of file qxcbconnection.cpp.
References QXcbBasicConnection::xcb_connection().
Referenced by QXcbConnectionGrabber::~QXcbConnectionGrabber(), and QXcbConnectionGrabber::release().
|
inline |
Definition at line 102 of file qxcbconnection.h.
QXcbWindowEventListener * QXcbConnection::windowEventListenerFromId | ( | xcb_window_t | id | ) |
Definition at line 146 of file qxcbconnection.cpp.
References QHash< Key, T >::value().
QString QXcbConnection::windowManagerName | ( | ) | const |
Definition at line 812 of file qxcbconnection.cpp.
References primaryVirtualDesktop(), QString::toLower(), and QXcbVirtualDesktop::windowManagerName().
Referenced by QXcbWindow::startSystemMoveResize().
|
inline |
Definition at line 131 of file qxcbconnection.h.
Referenced by QXcbWindow::frameMargins(), and QXcbWindow::updateNetWmUserTime().
void QXcbConnection::xi2SelectDeviceEvents | ( | xcb_window_t | window | ) |
Definition at line 54 of file qxcbconnection_xi2.cpp.
References error, QXcbBasicConnection::isAtLeastXI22(), QXcbBasicConnection::isAtLeastXI24(), qCDebug, rootWindow(), QWindowSystemInterfacePrivate::TabletEvent::setPlatformSynthesizesMouse(), setXcbMask(), window(), and QXcbBasicConnection::xcb_connection().
Referenced by QXcbWindow::create().
void QXcbConnection::xi2SelectStateEvents | ( | ) |
Definition at line 41 of file qxcbconnection_xi2.cpp.
References qt_xcb_input_event_mask_t::header, qt_xcb_input_event_mask_t::mask, rootWindow(), setXcbMask(), and QXcbBasicConnection::xcb_connection().
bool QXcbConnection::xi2SetMouseGrabEnabled | ( | xcb_window_t | w, |
bool | grab | ||
) |
Definition at line 1036 of file qxcbconnection_xi2.cpp.
References error, QXcbBasicConnection::isAtLeastXI22(), QXcbBasicConnection::isAtLeastXI24(), ok, qCDebug, reply, setXcbMask(), and QXcbBasicConnection::xcb_connection().
Referenced by QXcbWindow::setMouseGrabEnabled().
void QXcbConnection::xi2UpdateScrollingDevices | ( | ) |
Definition at line 1335 of file qxcbconnection_xi2.cpp.
References QInputDevice::capabilities, QInputDevice::devices(), and QInputDevice::Scroll.
Referenced by QXcbWindow::handleEnterNotifyEvent().
Qt::MouseButton QXcbConnection::xiToQtMouseButton | ( | uint32_t | b | ) |
Definition at line 1470 of file qxcbconnection_xi2.cpp.
References Qt::BackButton, Qt::LeftButton, Qt::MaxMouseButton, Qt::MiddleButton, Qt::NoButton, and Qt::RightButton.
Referenced by QXcbWindow::handleXIMouseEvent().
|
friend |
Definition at line 357 of file qxcbconnection.h.