Make toOF/toQt more powerful and complete QtWidget
This commit is contained in:
parent
b37c5f6fc5
commit
d8f3aa90ec
24 changed files with 1047 additions and 385 deletions
|
@ -24,6 +24,8 @@
|
|||
|
||||
#include <QObject>
|
||||
|
||||
using ObjQt::toQt;
|
||||
|
||||
@implementation QtPaintDevice
|
||||
@dynamic qObject;
|
||||
|
||||
|
@ -34,71 +36,71 @@
|
|||
|
||||
- (int)colorCount
|
||||
{
|
||||
return [self qPaintDevice]->colorCount();
|
||||
return toQt(self)->colorCount();
|
||||
}
|
||||
|
||||
- (int)depth
|
||||
{
|
||||
return [self qPaintDevice]->depth();
|
||||
return toQt(self)->depth();
|
||||
}
|
||||
|
||||
- (int)devicePixelRatio
|
||||
{
|
||||
return [self qPaintDevice]->devicePixelRatio();
|
||||
return toQt(self)->devicePixelRatio();
|
||||
}
|
||||
|
||||
- (double)devicePixelRatioF
|
||||
{
|
||||
return [self qPaintDevice]->devicePixelRatioF();
|
||||
return toQt(self)->devicePixelRatioF();
|
||||
}
|
||||
|
||||
- (int)height
|
||||
{
|
||||
return [self qPaintDevice]->height();
|
||||
return toQt(self)->height();
|
||||
}
|
||||
|
||||
- (int)heightMM
|
||||
{
|
||||
return [self qPaintDevice]->heightMM();
|
||||
return toQt(self)->heightMM();
|
||||
}
|
||||
|
||||
- (int)logicalDPIX
|
||||
{
|
||||
return [self qPaintDevice]->logicalDpiX();
|
||||
return toQt(self)->logicalDpiX();
|
||||
}
|
||||
|
||||
- (int)logicalDPIY
|
||||
{
|
||||
return [self qPaintDevice]->logicalDpiY();
|
||||
return toQt(self)->logicalDpiY();
|
||||
}
|
||||
|
||||
- (QPaintEngine*)paintEngine
|
||||
{
|
||||
return [self qPaintDevice]->paintEngine();
|
||||
return toQt(self)->paintEngine();
|
||||
}
|
||||
|
||||
- (bool)paintingActive
|
||||
{
|
||||
return [self qPaintDevice]->paintingActive();
|
||||
return toQt(self)->paintingActive();
|
||||
}
|
||||
|
||||
- (int)physicalDPIX
|
||||
{
|
||||
return [self qPaintDevice]->physicalDpiX();
|
||||
return toQt(self)->physicalDpiX();
|
||||
}
|
||||
|
||||
- (int)physicalDPIY
|
||||
{
|
||||
return [self qPaintDevice]->physicalDpiY();
|
||||
return toQt(self)->physicalDpiY();
|
||||
}
|
||||
|
||||
- (int)width
|
||||
{
|
||||
return [self qPaintDevice]->width();
|
||||
return toQt(self)->width();
|
||||
}
|
||||
|
||||
- (int)widthMM
|
||||
{
|
||||
return [self qPaintDevice]->widthMM();
|
||||
return toQt(self)->widthMM();
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue