Differences From Artifact [de5420f5ab]:
- File
src/QtGui/QtPaintDevice.h
— part of check-in
[baf52ea3b1]
at
2017-04-17 23:25:45
on branch trunk
— Add a proper build system
Also lowers the minimum required Qt version to 5.5. (user: js, size: 1789) [annotate] [blame] [check-ins using]
To Artifact [ac14220fb1]:
- File src/QtGui/QtPaintDevice.h — part of check-in [860515ac5a] at 2017-05-08 00:11:18 on branch trunk — Update to recent ObjFW changes (user: js, size: 1792) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
21 22 23 24 25 26 27 | */ #import <ObjFW/ObjFW.h> #include <QPaintDevice> @protocol QtPaintDevice | | | | | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | */ #import <ObjFW/ObjFW.h> #include <QPaintDevice> @protocol QtPaintDevice - (QPaintDevice *)qPaintDevice; - (int)colorCount; - (int)depth; - (int)devicePixelRatio; #if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) - (double)devicePixelRatioF; #endif - (int)height; - (int)heightMM; - (int)logicalDPIX; - (int)logicalDPIY; - (QPaintEngine *)paintEngine; - (bool)paintingActive; - (int)physicalDPIX; - (int)physicalDPIY; - (int)width; - (int)widthMM; @end @interface QtPaintDevice: OFObject <QtPaintDevice> @property (readonly) QObject *qObject; @end namespace ObjQt { static OF_INLINE QPaintDevice * toQt(QtPaintDevice *paintDevice) { return [paintDevice qPaintDevice]; } } |