50 #include <QtGui/QApplication> 52 #include <private/qpixmap_raster_p.h> 59 m_screen = [[NSScreen screens] objectAtIndex:screenIndex];
61 m_geometry =
QRect(rect.origin.x,rect.origin.y,rect.size.width,rect.size.height);
68 const qreal inch = 25.4;
82 [NSApplication sharedApplication];
86 for (
uint i = 0; i < [screens count]; i++) {
int depth() const
Reimplement in subclass to return current depth of the screen.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
QCocoaScreen(int screenIndex)
int width() const
Returns the width of the rectangle.
QList< QPlatformScreen * > mScreens
int height() const
Returns the height of the rectangle.
bool hasCapability(QPlatformIntegration::Capability cap) const
QPlatformFontDatabase * mFontDb
QCocoaAutoReleasePool * mPool
void append(const T &t)
Inserts value at the end of the list.
QPixmapData * createPixmapData(QPixmapData::PixelType type) const
Factory function for QPixmapData.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QWindowSurface class provides the drawing area for top-level windows.
The QRect class defines a rectangle in the plane using integer precision.
QPlatformWindow * createPlatformWindow(QWidget *widget, WId winId=0) const
Factory function for QPlatformWindow.
The QSize class defines the size of a two-dimensional object using integer point precision.
QList< QPlatformScreen * > screens() const
Accessor function to a list of all the screens on the current system.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Q_DECL_CONSTEXPR int qRound(qreal d)
QPlatformEventLoopIntegration * createEventLoopIntegration() const
Factory function for the eventloop integration interface.
QWindowSurface * createWindowSurface(QWidget *widget, WId winId) const
Factory function for QWindowSurface.
QPlatformFontDatabase * fontDatabase() const
Accessor for the platform integrations fontdatabase.