Loading...
Searching...
No Matches
qpointfjs.h
Go to the documentation of this file.
#pragma once
/////////////////////// stdlib includes
/////////////////////// Qt includes
#include <QObject>
#include <QPointF>
#include <QtQml>
/////////////////////// Local includes
#include "jsclassregistrar.h"
#include "pappsomspp/export-import-config.h"
namespace pappso
{
/* BEGIN CLASS JS REFERENCE
* namespace: pappso
* class name: QPointF
*/
class PMSPP_LIB_DECL QPointFJs : public QObject
{
Q_OBJECT
Q_PROPERTY(double x READ x WRITE setX NOTIFY xChanged)
Q_PROPERTY(double y READ y WRITE setY NOTIFY yChanged)
QML_NAMED_ELEMENT(QPointF)
public:
Q_INVOKABLE explicit QPointFJs(QObject *parent = nullptr);
Q_INVOKABLE explicit QPointFJs(double x, double y, QObject *parent = nullptr);
Q_INVOKABLE explicit QPointFJs(const QPointF &pointf, QObject *parent = nullptr);
Q_INVOKABLE double x() const;
Q_INVOKABLE void setX(double x);
Q_INVOKABLE double y() const;
Q_INVOKABLE void setY(double y);
const QPointF &point() const;
void setPointF(const QPointF &pointf);
static void registerJsConstructor(QJSEngine *engine);
signals:
void xChanged();
void yChanged();
private:
QPointF m_pointf;
};
/* END CLASS JS REFERENCE
* namespace: pappso
* class name: QPointF
*/
PAPPSO_REGISTER_JS_CLASS(pappso, QPointFJs)
} // namespace pappso
pappso::QPointFJs::setPointF
void setPointF(const QPointF &pointf)
Definition qpointfjs.cpp:60
pappso::QPointFJs::x
double x
Definition qpointfjs.h:27
pappso::QPointFJs::setX
Q_INVOKABLE void setX(double x)
Definition qpointfjs.cpp:21
pappso::QPointFJs::setY
Q_INVOKABLE void setY(double y)
Definition qpointfjs.cpp:38
pappso::QPointFJs::y
double y
Definition qpointfjs.h:28
pappso::QPointFJs::xChanged
void xChanged()
pappso::QPointFJs::QPointFJs
Q_INVOKABLE QPointFJs(QObject *parent=nullptr)
Definition qpointfjs.cpp:8
pappso::QPointFJs::yChanged
void yChanged()
pappso::QPointFJs::m_pointf
QPointF m_pointf
Definition qpointfjs.h:52
pappso::QPointFJs::point
const QPointF & point() const
Definition qpointfjs.cpp:54
pappso::QPointFJs::registerJsConstructor
static void registerJsConstructor(QJSEngine *engine)
Definition qpointfjs.cpp:68
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition export-import-config.h:14
jsclassregistrar.h
PAPPSO_REGISTER_JS_CLASS
#define PAPPSO_REGISTER_JS_CLASS(NS_IDENT, CLASS_NAME)
Definition jsclassregistrar.h:35
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39