mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
802 B
33 lines
802 B
3 years ago
|
/*
|
||
|
SPDX-FileCopyrightText: 2019 Harald Sitter <sitter@kde.org>
|
||
|
|
||
|
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<QObject *> doodads MEMBER doodads CONSTANT)
|
||
|
Q_PROPERTY(QList<QObject *> 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<QObject *> doodads;
|
||
|
QList<QObject *> sections;
|
||
|
|
||
|
qreal widthMM = -1;
|
||
|
qreal heightMM = -1;
|
||
|
};
|
||
|
|
||
|
#endif // GEOMETRY_H
|