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

(3d72e8829fb9ebcd3b1179b54ad4053de05368ff)

#include "qxcbscreen.h"
#include "qxcbwindow.h"
#include "qxcbcursor.h"
#include "qxcbimage.h"
#include "qnamespace.h"
#include "qxcbxsettings.h"
#include <stdio.h>
#include <QDebug>
#include <QtAlgorithms>
#include <qpa/qwindowsysteminterface.h>
#include <private/qmath_p.h>
#include <QtGui/private/qhighdpiscaling_p.h>
+ Include dependency graph for qxcbscreen.cpp:

Go to the source code of this file.

Functions

static QSizeF sizeInMillimeters (const QSize &size, const QDpi &dpi)
 
static bool parseXftInt (const QByteArray &stringValue, int *value)
 
static bool parseXftDpi (const QByteArray &stringValue, int *value)
 
static QFontEngine::HintStyle parseXftHintStyle (const QByteArray &stringValue)
 
static QFontEngine::SubpixelAntialiasingType parseXftRgba (const QByteArray &stringValue)
 
static bool translate (xcb_connection_t *connection, xcb_window_t child, xcb_window_t parent, int *x, int *y)
 
static void formatRect (QDebug &debug, const QRect r)
 
static void formatSizeF (QDebug &debug, const QSizeF s)
 
QDebug operator<< (QDebug debug, const QXcbScreen *screen)
 

Function Documentation

◆ formatRect()

static void formatRect ( QDebug & debug,
const QRect r )
inlinestatic

Definition at line 1107 of file qxcbscreen.cpp.

References debug, Qt::forcesign(), and Qt::noforcesign().

Referenced by operator<<().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ formatSizeF()

static void formatSizeF ( QDebug & debug,
const QSizeF s )
inlinestatic

Definition at line 1113 of file qxcbscreen.cpp.

References debug.

Referenced by operator<<().

+ Here is the caller graph for this function:

◆ operator<<()

QDebug operator<< ( QDebug debug,
const QXcbScreen * screen )

Definition at line 1118 of file qxcbscreen.cpp.

References QScreen::availableGeometry, debug, QScreen::depth, QScreen::devicePixelRatio, Qt::fixed(), formatRect(), formatSizeF(), QScreen::geometry, QSize::height(), Qt::hex(), QScreen::name, QScreen::orientation, QScreen::physicalSize, qSetRealNumberPrecision(), QScreen::refreshRate, screen, QScreen::size, and QSize::width().

+ Here is the call graph for this function:

◆ parseXftDpi()

static bool parseXftDpi ( const QByteArray & stringValue,
int * value )
static

Definition at line 309 of file qxcbscreen.cpp.

References ok, parseXftInt(), Q_ASSERT, qRound(), and QByteArray::toDouble().

+ Here is the call graph for this function:

◆ parseXftHintStyle()

static QFontEngine::HintStyle parseXftHintStyle ( const QByteArray & stringValue)
static

◆ parseXftInt()

static bool parseXftInt ( const QByteArray & stringValue,
int * value )
static

Definition at line 301 of file qxcbscreen.cpp.

References ok, Q_ASSERT, and QByteArray::toInt().

Referenced by parseXftDpi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseXftRgba()

◆ sizeInMillimeters()

static QSizeF sizeInMillimeters ( const QSize & size,
const QDpi & dpi )
inlinestatic

Definition at line 284 of file qxcbscreen.cpp.

References Q_MM_PER_INCH.

Referenced by QXcbScreen::updateGeometry().

+ Here is the caller graph for this function:

◆ translate()

static bool translate ( xcb_connection_t * connection,
xcb_window_t child,
xcb_window_t parent,
int * x,
int * y )
inlinestatic