diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-03-19 15:58:31 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-03-20 12:56:47 +0000 |
commit | 9b604a151a6ee603506001434d16b063df3f48b1 (patch) | |
tree | ba273d32aacdfa9e334a1083e15eaef2caf3b62a /src/plugins/platforms/cocoa/qnsview.h | |
parent | bbdc1b5ccbb19405f997cd67ec53b2c4860105f7 (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.h | 10 |
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) |