Mercurial > hg > svgui
comparison view/ViewManager.h @ 894:d4446f267e12 alignment_view
Scale drag thresholds according to actual display resolution
author | Chris Cannam |
---|---|
date | Thu, 15 Jan 2015 10:42:00 +0000 |
parents | d974ed657176 |
children | a1226b3b7925 |
comparison
equal
deleted
inserted
replaced
882:c0549bf12973 | 894:d4446f267e12 |
---|---|
182 */ | 182 */ |
183 int getMainModelSampleRate() const { return m_mainModelSampleRate; } | 183 int getMainModelSampleRate() const { return m_mainModelSampleRate; } |
184 | 184 |
185 void setMainModelSampleRate(int sr) { m_mainModelSampleRate = sr; } | 185 void setMainModelSampleRate(int sr) { m_mainModelSampleRate = sr; } |
186 | 186 |
187 /** | |
188 * Take a "design pixel" size and scale it for the actual | |
189 * display. This is relevant to hi-dpi systems that do not do | |
190 * pixel doubling (i.e. Windows and Linux rather than OS/X). | |
191 */ | |
192 int scalePixelSize(int pixels); | |
193 | |
187 enum OverlayMode { | 194 enum OverlayMode { |
188 NoOverlays, | 195 NoOverlays, |
189 GlobalOverlays, | 196 GlobalOverlays, |
190 StandardOverlays, | 197 StandardOverlays, |
191 AllOverlays | 198 AllOverlays |