aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/libsample/pen.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/libsample/pen.h')
-rw-r--r--sources/shiboken2/tests/libsample/pen.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sources/shiboken2/tests/libsample/pen.h b/sources/shiboken2/tests/libsample/pen.h
index ca079198b..20977fdeb 100644
--- a/sources/shiboken2/tests/libsample/pen.h
+++ b/sources/shiboken2/tests/libsample/pen.h
@@ -49,14 +49,24 @@ class LIBSAMPLE_API Pen
public:
enum { EmptyCtor, EnumCtor, ColorCtor, CopyCtor };
+ enum RenderHints { None = 0, Antialiasing = 0x1, TextAntialiasing = 0x2 };
+
Pen();
Pen(SampleNamespace::Option option);
Pen(const Color& color);
Pen(const Pen& pen);
+ // PYSIDE-1325, default initializer
+ void drawLine(int x1, int y1, int x2, int y2, RenderHints renderHints = {});
+
int ctorType();
+
+ RenderHints getRenderHints() const;
+ void setRenderHints(RenderHints h);
+
private:
int m_ctor;
+ RenderHints m_renderHints = None;
};
#endif