#include <qpointfjs.h>
|
Q_INVOKABLE | QPointFJs (QObject *parent=nullptr) |
|
Q_INVOKABLE | QPointFJs (double x, double y, QObject *parent=nullptr) |
|
Q_INVOKABLE | 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) |
|
Definition at line 24 of file qpointfjs.h.
◆ QPointFJs() [1/3]
pappso::QPointFJs::QPointFJs |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ QPointFJs() [2/3]
pappso::QPointFJs::QPointFJs |
( |
double | x, |
|
|
double | y, |
|
|
QObject * | parent = nullptr ) |
|
explicit |
◆ QPointFJs() [3/3]
pappso::QPointFJs::QPointFJs |
( |
const QPointF & | pointf, |
|
|
QObject * | parent = nullptr ) |
|
explicit |
◆ point()
const QPointF & pappso::QPointFJs::point |
( |
| ) |
const |
◆ registerJsConstructor()
void pappso::QPointFJs::registerJsConstructor |
( |
QJSEngine * | engine | ) |
|
|
static |
Definition at line 69 of file qpointfjs.cpp.
70{
71 if(!engine)
72 {
73 qWarning() << "Cannot register class: engine is null";
74 return;
75 }
76
77
78 QJSValue jsMetaObject = engine->newQMetaObject(&QPointFJs::staticMetaObject);
79 engine->globalObject().setProperty("QPointF", jsMetaObject);
80}
◆ setPointF()
void pappso::QPointFJs::setPointF |
( |
const QPointF & | pointf | ) |
|
◆ setX()
void pappso::QPointFJs::setX |
( |
double | x | ) |
|
◆ setY()
void pappso::QPointFJs::setY |
( |
double | y | ) |
|
◆ x()
double pappso::QPointFJs::x |
( |
| ) |
const |
◆ xChanged
void pappso::QPointFJs::xChanged |
( |
| ) |
|
|
signal |
◆ y()
double pappso::QPointFJs::y |
( |
| ) |
const |
◆ yChanged
void pappso::QPointFJs::yChanged |
( |
| ) |
|
|
signal |
◆ m_pointf
QPointF pappso::QPointFJs::m_pointf |
|
private |
double pappso::QPointFJs::x |
|
readwrite |
double pappso::QPointFJs::y |
|
readwrite |
The documentation for this class was generated from the following files: