Okular
utils.cpp
34 ret = QRect(width - source.x() - source.width(), height - source.y() - source.height(), source.width(), source.height());
57 qCDebug(OkularCoreDebug) << "QScreen calculation returned a non square dpi." << res << ". Falling back";
128 NormalizedRect bbox(QRect(left, top, (right - left + 1), (bottom - top + 1)), image->width(), image->height());
qreal height() const const
int height() const const
QTransform & rotate(qreal angle, Qt::Axis axis)
physicalDotsPerInchY
static NormalizedRect imageBoundingBox(const QImage *image)
Compute the smallest rectangle that contains all non-white pixels in image), in normalized [0,...
Definition: utils.cpp:69
int width() const const
int x() const const
int y() const const
static QSizeF realDpi(const QWindow *windowOnScreen)
Return the real DPI of the display containing given window.
Definition: utils.cpp:47
QRgb pixel(int x, int y) const const
QTransform & translate(qreal dx, qreal dy)
A NormalizedRect is a rectangle which can be defined by two NormalizedPoints.
Definition: area.h:188
QScreen * screen() const const
qint64 read(char *data, qint64 maxSize)
int height() const const
void start()
int elapsed() const const
static QRect rotateRect(const QRect source, int width, int height, int orientation)
Rotate the rect source in the area width x height with the specified orientation .
Definition: utils.cpp:24
physicalDotsPerInchX
qint64 write(const char *data, qint64 maxSize)
qreal width() const const
int width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:54:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:54:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.