aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/pen.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/pen.h')
-rw-r--r--sources/shiboken6/tests/libsample/pen.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/pen.h b/sources/shiboken6/tests/libsample/pen.h
index 20977fdeb..4feb9f540 100644
--- a/sources/shiboken6/tests/libsample/pen.h
+++ b/sources/shiboken6/tests/libsample/pen.h
@@ -44,6 +44,26 @@ private:
bool m_null;
};
+class LIBSAMPLE_API Brush
+{
+public:
+ enum Style { Solid, Cross };
+
+ explicit Brush(const Color &c = {});
+
+ operator bool() const;
+
+ Style style() const;
+ void setStyle(Style newStyle);
+
+ const Color &color() const;
+ void setColor(const Color &newColor);
+
+private:
+ Style m_style = Solid;
+ Color m_color;
+};
+
class LIBSAMPLE_API Pen
{
public: