|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include <QGuiApplication>#include <QScreen>#include <QSize>#include <QWidget>Go to the source code of this file.
Namespaces | |
| namespace | dpr |
Functions | |
| qreal | dpr::primaryRatio () |
| The primary screen's device pixel ratio. | |
| QSize | dpr::scaleToPhysical (const QSize &logical) |
| Scale a QSize by the primary screen's DPR. Same rationale as above. | |
| int | dpr::scaleToPhysical (const QWidget *w, int logicalPixels) |
| Per-widget version of scaleToPhysical — preferred when the widget is on a non-primary monitor that might have a different DPR (mixed-DPI setups, common on Wayland). | |
| int | dpr::scaleToPhysical (int logicalPixels) |
| Scale a logical pixel count into a physical pixel count using the primary screen's DPR. | |
| qreal | dpr::widgetRatio (const QWidget *w) |
| Device pixel ratio of the screen a given widget is currently on. | |