Mercurial > hg > svgui
diff layer/LayerGeometryProvider.h @ 1401:28075cc658c9
Scale pen for retina display on macOS as well as for hidpi display elsewhere
author | Chris Cannam |
---|---|
date | Thu, 15 Nov 2018 14:04:32 +0000 |
parents | bc2cb82050a0 |
children | b0eeec95ab5b |
line wrap: on
line diff
--- a/layer/LayerGeometryProvider.h Thu Nov 15 13:06:38 2018 +0000 +++ b/layer/LayerGeometryProvider.h Thu Nov 15 14:04:32 2018 +0000 @@ -178,6 +178,10 @@ QRect rect, bool focus) const = 0; virtual void updatePaintRect(QRect r) = 0; + + virtual double scaleSize(double size) const = 0; + virtual double scalePenWidth(double width) const = 0; + virtual QPen scalePen(QPen pen) const = 0; virtual View *getView() = 0; virtual const View *getView() const = 0;