/* SPDX-FileCopyrightText: 2019 Harald Sitter SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef GEOMETRY_H #define GEOMETRY_H #include "xkbobject.h" class Geometry : public XkbObject { Q_OBJECT Q_PROPERTY(QList doodads MEMBER doodads CONSTANT) Q_PROPERTY(QList sections MEMBER sections CONSTANT) Q_PROPERTY(qreal widthMM MEMBER widthMM CONSTANT) Q_PROPERTY(qreal heightMM MEMBER heightMM CONSTANT) public: Geometry(XkbGeometryPtr geom_, XkbDescPtr xkb_, QObject *parent = nullptr); ~Geometry() override; XkbGeometryPtr geom = nullptr; QList doodads; QList sections; qreal widthMM = -1; qreal heightMM = -1; }; #endif // GEOMETRY_H