Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 5 files). Show all
Unified · Split
| @@ -27,12 +27,14 @@ class WindowScriptingInterface : public QObject { · 26 unmodified lines | |||
| 27 | Q_PROPERTY(int innerHeight READ getInnerHeight) | 27 | Q_PROPERTY(int innerHeight READ getInnerHeight) |
| 28 | Q_PROPERTY(int x READ getX) | 28 | Q_PROPERTY(int x READ getX) |
| 29 | Q_PROPERTY(int y READ getY) | 29 | Q_PROPERTY(int y READ getY) |
| 30 | Q_PROPERTY(bool cursorVisible READ isCursorVisible) | ||
| 30 | public: | 31 | public: |
| 31 | static WindowScriptingInterface* getInstance(); | 32 | static WindowScriptingInterface* getInstance(); |
| 32 | int getInnerWidth(); | 33 | int getInnerWidth(); |
| 33 | int getInnerHeight(); | 34 | int getInnerHeight(); |
| 34 | int getX(); | 35 | int getX(); |
| 35 | int getY(); | 36 | int getY(); |
| 37 | bool isCursorVisible() const; | ||
| 36 | 38 | ||
| 37 | public slots: | 39 | public slots: |
| 38 | QScriptValue getCursorPositionX(); | 40 | QScriptValue getCursorPositionX(); |