summaryrefslogtreecommitdiff
path: root/plugingui/painter.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2018-06-10 15:13:53 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-08-12 11:13:52 +0200
commit3f259e92bf1a25a8db521a587b6d612e356b22bc (patch)
tree4c3d312028bcad0b0586003ed9702d4e6c38d1f8 /plugingui/painter.h
parentd5c2ccc687a38e607b3532f4eb3eafa95d3b887a (diff)
Add highlight of single instruments on hits.
Diffstat (limited to 'plugingui/painter.h')
-rw-r--r--plugingui/painter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/painter.h b/plugingui/painter.h
index df26b3e..fc4ce2b 100644
--- a/plugingui/painter.h
+++ b/plugingui/painter.h
@@ -56,6 +56,7 @@ public:
void drawCircle(int x, int y, double r);
void drawFilledCircle(int x, int y, int r);
void drawImage(int x, int y, const Drawable& image);
+ void drawRestrictedImage(int x0, int y0, Colour const& colour, const Drawable& image);
void drawImageStretched(int x, int y, const Drawable& image,
int width, int height);
@@ -82,6 +83,9 @@ public:
void clear();
private:
+ bool has_restriction{false};
+ Colour restriction_colour;
+
PixelBufferAlpha& pixbuf;
Colour colour;
};