Mercurial > hg > svgui
comparison layer/PaintAssistant.h @ 1374:631897ba9fca zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 06 Nov 2018 08:59:03 +0000 |
parents | cca66ce390e0 |
children | 28075cc658c9 |
comparison
equal
deleted
inserted
replaced
1360:e848ea0850fe | 1374:631897ba9fca |
---|---|
47 static void drawVisibleText(const LayerGeometryProvider *, | 47 static void drawVisibleText(const LayerGeometryProvider *, |
48 QPainter &p, int x, int y, | 48 QPainter &p, int x, int y, |
49 QString text, TextStyle style); | 49 QString text, TextStyle style); |
50 | 50 |
51 /** | 51 /** |
52 * Scale up a size in pixels for a hi-dpi display without pixel | |
53 * doubling. This is like ViewManager::scalePixelSize, but taking | |
54 * and returning floating-point values rather than integer | |
55 * pixels. It is also a little more conservative - it never | |
56 * shrinks the size, it can only increase or leave it unchanged. | |
57 */ | |
58 static double scaleSize(double size); | |
59 | |
60 /** | |
52 * Scale up pen width for a hi-dpi display without pixel doubling. | 61 * Scale up pen width for a hi-dpi display without pixel doubling. |
53 * Very similar to ViewManager::scalePixelSize, but a bit more | 62 * This is like scaleSize except that it also scales the |
54 * conservative. | 63 * zero-width case. |
55 */ | 64 */ |
56 static double scalePenWidth(double width); | 65 static double scalePenWidth(double width); |
57 | 66 |
58 /** | 67 /** |
59 * Apply scalePenWidth to a pen. | 68 * Apply scalePenWidth to a pen. |