48 initFromJsonObject(screenDescription);
73 return m_physicalSize;
83 return QDpi(100, 100);
93 return m_nativeOrientation;
108 return m_description;
111 void QEglFSEmulatorScreen::initFromJsonObject(
const QJsonObject &description)
117 m_id =
value.toInt();
121 m_description =
value.toString();
124 if (!
value.isUndefined() &&
value.isObject()) {
142 m_depth =
value.toInt();
149 if (!
value.isUndefined() &&
value.isObject()) {
QSizeF physicalSize() const override
QRect geometry() const override
int depth() const override
qreal refreshRate() const override
QDpi logicalBaseDpi() const override
Qt::ScreenOrientation orientation() const override
Qt::ScreenOrientation nativeOrientation() const override
QString name() const override
QDpi logicalDpi() const override
QImage::Format format() const override
QRect rawGeometry() const override
QEglFSEmulatorScreen(const QJsonObject &screenDescription)
The QJsonObject class encapsulates a JSON object.
QJsonValue value(const QString &key) const
The QJsonValue class encapsulates a value in JSON.
double toDouble(double defaultValue=0) const
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
constexpr void setWidth(int w) noexcept
constexpr void setX(int x) noexcept
constexpr QSize size() const noexcept
constexpr void setHeight(int h) noexcept
constexpr void setY(int y) noexcept
The QSizeF class defines the size of a two-dimensional object using floating point precision.
constexpr void setHeight(qreal h) noexcept
constexpr void setWidth(qreal w) noexcept
The QString class provides a Unicode character string.
EGLOutputLayerEXT EGLint EGLAttrib value
QT_END_INCLUDE_NAMESPACE typedef double qreal
QPair< qreal, qreal > QDpi