summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qnsview.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-03-19 15:58:31 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-03-20 12:56:47 +0000
commit9b604a151a6ee603506001434d16b063df3f48b1 (patch)
treeba273d32aacdfa9e334a1083e15eaef2caf3b62a /src/plugins/platforms/cocoa/qnsview.h
parentbbdc1b5ccbb19405f997cd67ec53b2c4860105f7 (diff)
macOS: Move QNSView drawing related functionality to its own file
Change-Id: Iaeaa5c57368445a1fd67d110823c919aa7173a7a Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qnsview.h')
-rw-r--r--src/plugins/platforms/cocoa/qnsview.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/platforms/cocoa/qnsview.h b/src/plugins/platforms/cocoa/qnsview.h
index 00bf3627f3..5b92624e81 100644
--- a/src/plugins/platforms/cocoa/qnsview.h
+++ b/src/plugins/platforms/cocoa/qnsview.h
@@ -58,13 +58,15 @@ Q_FORWARD_DECLARE_OBJC_CLASS(QT_MANGLE_NAMESPACE(QNSViewMouseMoveHelper));
- (instancetype)initWithCocoaWindow:(QCocoaWindow *)platformWindow;
+- (void)convertFromScreen:(NSPoint)mouseLocation toWindowPoint:(QPointF *)qtWindowPoint andScreenPoint:(QPointF *)qtScreenPoint;
+
+@end
+
+@interface QT_MANGLE_NAMESPACE(QNSView) (DrawingAPI)
+- (void)requestUpdate;
#ifndef QT_NO_OPENGL
- (void)setQCocoaGLContext:(QCocoaGLContext *)context;
#endif
-
-- (void)convertFromScreen:(NSPoint)mouseLocation toWindowPoint:(QPointF *)qtWindowPoint andScreenPoint:(QPointF *)qtScreenPoint;
-- (void)requestUpdate;
-
@end
@interface QT_MANGLE_NAMESPACE(QNSView) (MouseAPI)