Changeset View
Changeset View
Standalone View
Standalone View
renderer.h
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | 127 | { | |||
---|---|---|---|---|---|
134 | case DieAnim: | 134 | case DieAnim: | ||
135 | return m_dieDuration; | 135 | return m_dieDuration; | ||
136 | case MoveAnim: | 136 | case MoveAnim: | ||
137 | return m_moveDuration; | 137 | return m_moveDuration; | ||
138 | default: | 138 | default: | ||
139 | return 0; | 139 | return 0; | ||
140 | } | 140 | } | ||
141 | } | 141 | } | ||
142 | | ||||
143 | static qreal devicePixelRatio() | ||||
144 | { | ||||
145 | return m_devicePixelRatio; | ||||
146 | } | ||||
147 | static void setDevicePixelRatio(qreal dpr) | ||||
148 | { | ||||
149 | m_devicePixelRatio = dpr; | ||||
150 | } | ||||
151 | | ||||
142 | private: | 152 | private: | ||
143 | // disable copy - it's singleton | 153 | // disable copy - it's singleton | ||
144 | KLinesRenderer(); | 154 | KLinesRenderer(); | ||
145 | KLinesRenderer(const KLinesRenderer&); | 155 | KLinesRenderer(const KLinesRenderer&); | ||
146 | KLinesRenderer& operator=(const KLinesRenderer&); | 156 | KLinesRenderer& operator=(const KLinesRenderer&); | ||
147 | ~KLinesRenderer(); | 157 | ~KLinesRenderer(); | ||
148 | 158 | | |||
149 | /** | 159 | /** | ||
Show All 15 Lines | |||||
165 | static int m_numBornFrames; | 175 | static int m_numBornFrames; | ||
166 | static int m_numSelFrames; | 176 | static int m_numSelFrames; | ||
167 | static int m_numDieFrames; | 177 | static int m_numDieFrames; | ||
168 | 178 | | |||
169 | static int m_bornDuration; | 179 | static int m_bornDuration; | ||
170 | static int m_selDuration; | 180 | static int m_selDuration; | ||
171 | static int m_dieDuration; | 181 | static int m_dieDuration; | ||
172 | static int m_moveDuration; // one cell | 182 | static int m_moveDuration; // one cell | ||
183 | | ||||
184 | static qreal m_devicePixelRatio; | ||||
173 | }; | 185 | }; | ||
174 | 186 | | |||
175 | #endif | 187 | #endif |