| 1 | /* |
| 2 | * Copyright (C) 2016, Mike Walters <[email protected]> |
| 3 | * |
| 4 | * This file is part of inspectrum. |
| 5 | * |
| 6 | * This program is free software: you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation, either version 3 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #pragma once |
| 21 | |
| 22 | #include <QMouseEvent> |
| 23 | #include <QObject> |
| 24 | #include <QPoint> |
| 25 | #include "util.h"cxx . . $ `<file>/src/util.h`/ |
| 26 | |
| 27 | class Cursorcxx . . $ Cursor# : public QObjectcxx . . $ QObject# |
| 28 | { |
| 29 | Q_OBJECTcxx . . $ Cursor#QPrivateSignal# |
| 30 | |
| 31 | public: |
| 32 | Cursorcxx . . $ Cursor#Cursor(ae0eefa7fd332390).(Qtcxx . . $ Qt/::Orientationcxx . . $ Qt/Orientation# orientation, Qtcxx . . $ Qt/::CursorShapecxx . . $ Qt/CursorShape# mouseCursorShape, QObjectcxx . . $ QObject# * parent); |
| 33 | int poscxx . . $ Cursor#pos(b126dc7c1de90089).(); |
| 34 | void setPoscxx . . $ Cursor#setPos(d4f767463ce0a6b3).(int newPos); |
| 35 | bool mouseEventcxx . . $ Cursor#mouseEvent(bf65bbe40893342c).(QEventcxx . . $ QEvent#::Typecxx . . $ QEvent#Type# type, QMouseEventcxx . . $ QMouseEvent# *event); |
| 36 | void leaveEventcxx . . $ Cursor#leaveEvent(49f6e7a06ebc5aa8).(); |
| 37 | |
| 38 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 39 | void posChangedcxx . . $ Cursor#posChanged(49f6e7a06ebc5aa8).(); |
| 40 | |
| 41 | private: |
| 42 | int fromPointcxx . . $ Cursor#fromPoint(70366837c528ef32).(QPointcxx . . $ QPoint# point); |
| 43 | bool pointOverCursorcxx . . $ Cursor#pointOverCursor(578814ae554e72f6).(QPointcxx . . $ QPoint# point); |
| 44 | |
| 45 | Qtcxx . . $ Qt/::Orientationcxx . . $ Qt/Orientation# orientationcxx . . $ Cursor#orientation.; |
| 46 | Qtcxx . . $ Qt/::CursorShapecxx . . $ Qt/CursorShape# cursorShapecxx . . $ Cursor#cursorShape.; |
| 47 | bool draggingcxx . . $ Cursor#dragging. = false; |
| 48 | bool cursorOverridencxx . . $ Cursor#cursorOverriden. = false; |
| 49 | int cursorPositioncxx . . $ Cursor#cursorPosition. = 0; |
| 50 | }; |