Add QtPaintDevice and initial QtWidget

This commit is contained in:
Jonathan Schleifer 2017-04-03 01:00:47 +02:00
parent f38ff5fbc2
commit 1d907ed62d
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
8 changed files with 764 additions and 7 deletions

25
QtGui/QtPaintDevice.h Normal file
View file

@ -0,0 +1,25 @@
#import <ObjFW/ObjFW.h>
#include <QPaintDevice>
@protocol QtPaintDevice
- (QPaintDevice*)qPaintDevice;
- (int)colorCount;
- (int)depth;
- (int)devicePixelRatio;
- (double)devicePixelRatioF;
- (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