23 #ifndef CARDHOSTWINDOW_H
24 #define CARDHOSTWINDOW_H
52 virtual bool isHost()
const {
return true; }
55 bool paused()
const {
return m_paused; }
59 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget);
60 virtual void paintBase(QPainter* painter,
bool maximized);
61 virtual void paintOverlay(QPainter* painter,
bool maximized);
65 #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
80 virtual void displayOff();
81 virtual void displayDimmed();
86 bool rotateTimerTicked();
88 bool isOrientationPortrait(Event::Orientation orient);
91 bool m_pausedDueToDisplayOff;
92 bool m_penDownInPlayButton;
93 bool m_penInPlayButton;
96 int m_rotateAngleStart;
97 int m_rotateAngleTarget;
99 PValue m_rotateScaleTarget;
100 uint32_t m_rotateTimerStart;
102 Timer<CardHostWindow> m_rotateAnimTimer;