![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qxcbscreen.h>
Friends | |
class | QXcbConnection |
Definition at line 32 of file qxcbscreen.h.
QT_BEGIN_NAMESPACE QXcbVirtualDesktop::QXcbVirtualDesktop | ( | QXcbConnection * | connection, |
xcb_screen_t * | screen, | ||
int | number ) |
Definition at line 23 of file qxcbscreen.cpp.
QXcbVirtualDesktop::~QXcbVirtualDesktop | ( | ) |
Definition at line 93 of file qxcbscreen.cpp.
void QXcbVirtualDesktop::addScreen | ( | QPlatformScreen * | s | ) |
Definition at line 120 of file qxcbscreen.cpp.
|
inline |
Definition at line 67 of file qxcbscreen.h.
Definition at line 277 of file qxcbscreen.cpp.
xcb_colormap_t QXcbVirtualDesktop::colormapForVisual | ( | xcb_visualid_t | visualid | ) | const |
Definition at line 475 of file qxcbscreen.cpp.
References screen(), and QXcbObject::xcb_connection().
bool QXcbVirtualDesktop::compositingActive | ( | ) | const |
Definition at line 137 of file qxcbscreen.cpp.
References QXcbObject::connection().
Referenced by QXcbDrag::move().
quint8 QXcbVirtualDesktop::depthOfVisual | ( | xcb_visualid_t | visualid | ) | const |
Definition at line 467 of file qxcbscreen.cpp.
QDpi QXcbVirtualDesktop::dpi | ( | ) | const |
Definition at line 101 of file qxcbscreen.cpp.
|
inline |
Definition at line 64 of file qxcbscreen.h.
void QXcbVirtualDesktop::handleScreenChange | ( | xcb_randr_screen_change_notify_event_t * | change_event | ) |
handle the XCB screen change event and update properties
On a mobile device, the ideal use case is that the accelerometer would drive the orientation. This could be achieved by using QSensors to read the accelerometer and adjusting the rotation in QML, or by reading the orientation from the QScreen object and doing the same, or in many other ways. However, on X we have the XRandR extension, which makes it possible to have the whole screen rotated, so that individual apps DO NOT have to rotate themselves. Apps could optionally use the QScreen::primaryOrientation property to optimize layout though. Furthermore, there is no support in X for accelerometer events anyway. So it makes more sense on a Linux system running X to just run a daemon which monitors the accelerometer and runs xrandr automatically to do the rotation, then apps do not have to be aware of it (but probably the window manager would resize them accordingly). updateGeometry() is written with this design in mind. Therefore the physical geometry, available geometry, virtual geometry, orientation and primaryOrientation should all change at the same time. On a system which cannot rotate the whole screen, it would be correct for only the orientation (not the primary orientation) to change.
Definition at line 183 of file qxcbscreen.cpp.
void QXcbVirtualDesktop::handleXFixesSelectionNotify | ( | xcb_xfixes_selection_notify_event_t * | notify_event | ) |
Definition at line 145 of file qxcbscreen.cpp.
|
inline |
Definition at line 65 of file qxcbscreen.h.
|
inline |
Definition at line 39 of file qxcbscreen.h.
|
inline |
Definition at line 41 of file qxcbscreen.h.
|
inline |
Definition at line 48 of file qxcbscreen.h.
|
inline |
Definition at line 43 of file qxcbscreen.h.
Referenced by QXcbCursor::setPos().
|
inline |
Definition at line 38 of file qxcbscreen.h.
Referenced by colormapForVisual(), and surfaceFormatFor().
QXcbScreen * QXcbVirtualDesktop::screenAt | ( | const QPoint & | pos | ) | const |
Definition at line 110 of file qxcbscreen.cpp.
References QXcbObject::connection().
|
inline |
Definition at line 46 of file qxcbscreen.h.
void QXcbVirtualDesktop::setPrimaryScreen | ( | QPlatformScreen * | s | ) |
Definition at line 125 of file qxcbscreen.cpp.
|
inline |
Definition at line 47 of file qxcbscreen.h.
|
inline |
Definition at line 40 of file qxcbscreen.h.
|
inline |
Definition at line 66 of file qxcbscreen.h.
void QXcbVirtualDesktop::subscribeToXFixesSelectionNotify | ( | ) |
Definition at line 151 of file qxcbscreen.cpp.
References QXcbObject::connection(), and QXcbObject::xcb_connection().
QSurfaceFormat QXcbVirtualDesktop::surfaceFormatFor | ( | const QSurfaceFormat & | format | ) | const |
Definition at line 399 of file qxcbscreen.cpp.
References QXcbObject::connection(), screen(), and visualForId().
void QXcbVirtualDesktop::updateWorkArea | ( | ) |
Definition at line 267 of file qxcbscreen.cpp.
const xcb_visualtype_t * QXcbVirtualDesktop::visualForFormat | ( | const QSurfaceFormat & | format | ) | const |
Definition at line 423 of file qxcbscreen.cpp.
const xcb_visualtype_t * QXcbVirtualDesktop::visualForId | ( | xcb_visualid_t | visualid | ) | const |
Definition at line 459 of file qxcbscreen.cpp.
Referenced by surfaceFormatFor().
|
inline |
Definition at line 69 of file qxcbscreen.h.
QXcbXSettings * QXcbVirtualDesktop::xSettings | ( | ) | const |
Definition at line 132 of file qxcbscreen.cpp.
|
friend |
Definition at line 108 of file qxcbscreen.h.