Vuo 2.4.4
Loading...
Searching...
No Matches
VuoEditorGraphicsView.hh
Go to the documentation of this file.
1
10#pragma once
11
12#include "VuoHeap.h"
13
18class VuoEditorGraphicsView : public QGraphicsView
19{
20 Q_OBJECT;
21
22public:
23 VuoEditorGraphicsView(QWidget *parent);
24
26
27signals:
28 void viewResized();
29
30private slots:
31 void updateColor(bool isDark);
32
33private:
34 bool event(QEvent * event) VuoWarnUnusedResult;
35
36 void paintEvent(QPaintEvent *event);
37 int framesRenderedSinceProfileLogged;
38 double renderDurationSinceProfileLogged;
39 double lastProfileLoggedTime;
40
41 bool viewportEvent(QEvent *event) VuoWarnUnusedResult;
42 double ignorePinchesSmallerThanX;
43 double ignorePinchesStartedLessThanXSecondsAfterDrag;
44 double ignorePinchesStartedMoreThanXSecondsAfterTouch;
45
46 qreal accumulatedScale;
47 bool gestureDetected;
48 qreal offset;
49};