From a8eea6e9c1f32d5562594656c68dc4b9f985b790 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 14 Nov 2020 09:46:34 +0100 Subject: Add x_offset to drawable::line to be able to have drawImage render images outside the parent area. --- plugingui/image.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugingui/image.h') diff --git a/plugingui/image.h b/plugingui/image.h index 4d140ab..d162a75 100644 --- a/plugingui/image.h +++ b/plugingui/image.h @@ -50,13 +50,14 @@ public: size_t height() const override; const Colour& getPixel(size_t x, size_t y) const override; - const std::uint8_t* line(std::size_t y) const override; + const std::uint8_t* line(std::size_t y, + std::size_t x_offset = 0) const override; bool hasAlpha() const override; bool isValid() const; -private: +protected: void setError(); bool valid{false}; -- cgit v1.2.3