7#include <qpa/qplatformscreen.h>
8#include <qpa/qplatformscreen_p.h>
9#include <QtCore/QString>
13#include <xcb/xfixes.h>
17#include <private/qfontengine_p.h>
19#include <QtGui/private/qedidparser_p.h>
28#ifndef QT_NO_DEBUG_STREAM
38 xcb_screen_t *
screen()
const {
return m_screen; }
39 int number()
const {
return m_number; }
40 QSize size()
const {
return QSize(m_screen->width_in_pixels, m_screen->height_in_pixels); }
43 xcb_window_t
root()
const {
return m_screen->root; }
74 const xcb_visualtype_t *
visualForId(xcb_visualid_t)
const;
79 QRect getWorkArea()
const;
81 static bool xResource(
const QByteArray &identifier,
84 void readXResources();
88 xcb_screen_t *m_screen;
93 xcb_atom_t m_net_wm_cm_atom = 0;
94 bool m_compositingActive =
false;
101 int m_antialiasingEnabled = -1;
106 uint16_t m_rotation = 0;
112 ,
public QNativeInterface::Private::QXcbScreen
116 xcb_randr_output_t outputId, xcb_randr_get_output_info_reply_t *outputInfo);
118 xcb_randr_monitor_info_t *monitorInfo, xcb_timestamp_t timestamp = XCB_NONE);
121 QString getOutputName(xcb_randr_get_output_info_reply_t *outputInfo);
122 QString getName(xcb_randr_monitor_info_t *monitorInfo);
152 xcb_screen_t *
screen()
const {
return m_virtualDesktop->screen(); }
154 xcb_randr_output_t
output()
const {
return m_output; }
155 xcb_randr_crtc_t
crtc()
const {
return m_crtc; }
156 xcb_randr_mode_t
mode()
const {
return m_mode; }
161 void setOutput(xcb_randr_output_t outputId,
162 xcb_randr_get_output_info_reply_t *outputInfo);
163 void setCrtc(xcb_randr_crtc_t crtc) { m_crtc = crtc; }
164 void setMonitor(xcb_randr_monitor_info_t *monitorInfo, xcb_timestamp_t timestamp = XCB_NONE);
166 bool isPrimaryInXScreen();
174 const xcb_visualtype_t *visualForId(xcb_visualid_t visualid)
const;
175 xcb_colormap_t
colormapForVisual(xcb_visualid_t visualid)
const {
return m_virtualDesktop->colormapForVisual(visualid); }
180 void updateGeometry(
const QRect &geometry, uint8_t rotation);
181 void updateGeometry(xcb_timestamp_t timestamp = XCB_TIME_CURRENT_TIME);
182 void updateAvailableGeometry();
183 void updateRefreshRate(xcb_randr_mode_t
mode);
193 int forcedDpi()
const;
195 void updateColorSpaceAndEdid();
196 QByteArray getOutputProperty(xcb_atom_t atom)
const;
200 xcb_randr_monitor_info_t *m_monitor;
201 xcb_randr_output_t m_output;
202 xcb_randr_crtc_t m_crtc;
203 xcb_randr_mode_t m_mode = XCB_NONE;
204 bool m_primary =
false;
206 bool m_singlescreen =
false;
212 QSizeF m_outputSizeMillimeters;
215 QRect m_availableGeometry;
218 std::unique_ptr<QXcbCursor> m_cursor;
219 qreal m_refreshRate = 60.0;
226#ifndef QT_NO_DEBUG_STREAM
The QColorSpace class provides a color space abstraction.
Format
The following image formats are available in Qt.
bool removeOne(const AT &t)
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
QXcbConnection * connection() const
const xcb_visualtype_t * visualForFormat(const QSurfaceFormat &format) const
xcb_randr_crtc_t crtc() const
QList< xcb_randr_crtc_t > crtcs() const
QString windowManagerName() const
QColorSpace colorSpace() const override
QDpi logicalBaseDpi() const override
Reimplement to return the base logical DPI for the platform.
int depth() const override
Reimplement in subclass to return current depth of the screen.
void setCrtc(xcb_randr_crtc_t crtc)
QSizeF physicalSize() const override
Reimplement this function in subclass to return the physical size of the screen, in millimeters.
xcb_screen_t * screen() const
QFontEngine::SubpixelAntialiasingType subpixelType() const
xcb_window_t root() const
int virtualDesktopNumber() const override
QString name() const override
QList< xcb_randr_output_t > outputs() const
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
quint8 depthOfVisual(xcb_visualid_t visualid) const
Qt::ScreenOrientation orientation() const override
Reimplement this function in subclass to return the current orientation of the screen,...
int antialiasingEnabled() const
xcb_randr_mode_t mode() const
qreal refreshRate() const override
Reimplement this function in subclass to return the vertical refresh rate of the screen,...
QXcbVirtualDesktop * virtualDesktop() const
QList< QPlatformScreen * > virtualSiblings() const override
Returns a list of all the platform screens that are part of the same virtual desktop.
QFontEngine::HintStyle hintStyle() const
xcb_randr_output_t output() const
void setPrimary(bool primary)
xcb_colormap_t colormapForVisual(xcb_visualid_t visualid) const
int antialiasingEnabled() const
xcb_colormap_t colormapForVisual(xcb_visualid_t) const
QFontEngine::SubpixelAntialiasingType subpixelType() const
QFontEngine::HintStyle hintStyle() const
bool compositingActive() const
void addScreen(QPlatformScreen *s)
const xcb_visualtype_t * visualForId(xcb_visualid_t) const
xcb_window_t root() const
void handleScreenChange(xcb_randr_screen_change_notify_event_t *change_event)
handle the XCB screen change event and update properties
const xcb_visualtype_t * visualForFormat(const QSurfaceFormat &format) const
QSize physicalSize() const
quint8 depthOfVisual(xcb_visualid_t) const
QXcbXSettings * xSettings() const
QList< QPlatformScreen * > screens() const
void setScreens(QList< QPlatformScreen * > &&sl)
void subscribeToXFixesSelectionNotify()
void setPrimaryScreen(QPlatformScreen *s)
void removeScreen(QPlatformScreen *s)
QRect availableGeometry(const QRect &screenGeometry) const
void handleXFixesSelectionNotify(xcb_xfixes_selection_notify_event_t *notify_event)
QXcbScreen * screenAt(const QPoint &pos) const
QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &format) const
QString windowManagerName() const
xcb_screen_t * screen() const
Combined button and popup list for selecting options.
DBusConnection * connection
QPair< qreal, qreal > QDpi
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLuint GLsizei const GLchar * message
GLint GLsizei GLsizei GLenum format
static QT_BEGIN_NAMESPACE QWindow * topLevelAt(const QPoint &pos)
Q_GUI_EXPORT QDebug operator<<(QDebug, const QXcbScreen *)
QSqlQueryModel * model
[16]