Mercurial > hg > svgui
diff layer/PaintAssistant.h @ 1078:ee01a4062747 spectrogram-minor-refactor
Move drawVisibleText to PaintAssistant
author | Chris Cannam |
---|---|
date | Thu, 30 Jun 2016 12:40:22 +0100 |
parents | b66fb15de477 |
children | dc6457ac4d07 |
line wrap: on
line diff
--- a/layer/PaintAssistant.h Thu Jun 30 10:59:11 2016 +0100 +++ b/layer/PaintAssistant.h Thu Jun 30 12:40:22 2016 +0100 @@ -13,13 +13,15 @@ COPYING included with this distribution for more information. */ -#ifndef _PAINT_ASSISTANT_H_ -#define _PAINT_ASSISTANT_H_ +#ifndef PAINT_ASSISTANT_H +#define PAINT_ASSISTANT_H #include <QRect> #include <vector> class QPainter; +class Layer; +class LayerGeometryProvider; class PaintAssistant { @@ -34,6 +36,16 @@ static int getYForValue(Scale scale, double value, double minVal, double maxVal, int minY, int height); + + enum TextStyle { + BoxedText, + OutlinedText, + OutlinedItalicText + }; + + static void drawVisibleText(const LayerGeometryProvider *, + QPainter &p, int x, int y, + QString text, TextStyle style); }; #endif