Qt 4.8
Public Functions | Static Public Functions | Properties | List of all members
QUIKitIntegration Class Reference

#include <quikitintegration.h>

Inheritance diagram for QUIKitIntegration:
QPlatformIntegration

Public Functions

QPlatformEventLoopIntegrationcreateEventLoopIntegration () const
 Factory function for the eventloop integration interface. More...
 
QPixmapDatacreatePixmapData (QPixmapData::PixelType type) const
 Factory function for QPixmapData. More...
 
QPlatformWindowcreatePlatformWindow (QWidget *widget, WId winId=0) const
 Factory function for QPlatformWindow. More...
 
QWindowSurfacecreateWindowSurface (QWidget *widget, WId winId) const
 Factory function for QWindowSurface. More...
 
QPlatformFontDatabasefontDatabase () const
 Accessor for the platform integrations fontdatabase. More...
 
 QUIKitIntegration ()
 
QList< QPlatformScreen * > screens () const
 Accessor function to a list of all the screens on the current system. More...
 
 ~QUIKitIntegration ()
 
- Public Functions inherited from QPlatformIntegration
virtual QPlatformClipboardclipboard () const
 Accessor for the platform integrations clipboard. More...
 
virtual QPixmap grabWindow (WId window, int x, int y, int width, int height) const
 This function is called when Qt needs to be able to grab the content of a window. More...
 
virtual bool hasCapability (Capability cap) const
 
virtual bool isVirtualDesktop ()
 Returns if the current windowing system configuration defines all the screens to be one desktop(virtual desktop), or if each screen is a desktop of its own. More...
 
virtual void moveToScreen (QWidget *window, int screen)
 This function is called when a QWidget is displayed on screen, or the QWidget is to be displayed on a new screen. More...
 
virtual QPlatformNativeInterfacenativeInterface () const
 
virtual ~QPlatformIntegration ()
 

Static Public Functions

static QUIKitIntegrationinstance ()
 

Properties

QPlatformFontDatabasemFontDb
 
QList< QPlatformScreen * > mScreens
 

Additional Inherited Members

- Public Types inherited from QPlatformIntegration
enum  Capability { ThreadedPixmaps = 1, OpenGL = 2 }
 

Detailed Description

Definition at line 49 of file quikitintegration.h.

Constructors and Destructors

◆ QUIKitIntegration()

QUIKitIntegration::QUIKitIntegration ( )

Definition at line 66 of file quikitintegration.mm.

68 {
69  if (!m_instance)
70  m_instance = this;
71  mScreens << new QUIKitScreen(0);
72 }
QPlatformFontDatabase * mFontDb
static QUIKitIntegration * m_instance
QList< QPlatformScreen * > mScreens

◆ ~QUIKitIntegration()

QUIKitIntegration::~QUIKitIntegration ( )

Definition at line 74 of file quikitintegration.mm.

75 {
76 }

Functions

◆ createEventLoopIntegration()

QPlatformEventLoopIntegration * QUIKitIntegration::createEventLoopIntegration ( ) const
virtual

Factory function for the eventloop integration interface.

Default implementation returns 0, which causes the eventloop to run in a single thread mode.

See also
QPlatformEventLoopIntegration

Reimplemented from QPlatformIntegration.

Definition at line 100 of file quikitintegration.mm.

101 {
102  return new QUIKitEventLoop();
103 }

◆ createPixmapData()

QPixmapData * QUIKitIntegration::createPixmapData ( QPixmapData::PixelType  type) const
virtual

Factory function for QPixmapData.

PixelType can be either PixmapType or BitmapType.

See also
QPixmapData

Implements QPlatformIntegration.

Definition at line 78 of file quikitintegration.mm.

79 {
80  return new QRasterPixmapData(type);
81 }
int type
Definition: qmetatype.cpp:239

◆ createPlatformWindow()

QPlatformWindow * QUIKitIntegration::createPlatformWindow ( QWidget widget,
WId  winId = 0 
) const
virtual

Factory function for QPlatformWindow.

The widget parameter is a pointer to the top level widget(tlw) which the QPlatformWindow is suppose to be created for. The WId handle is actually never used, but there for future reference. Its purpose is if it is going to be possible to create QPlatformWindows on existing WId.

All tlw has to have a QPlatformWindow, and it will be created when the QPlatformWindow is set to be visible for the first time. If the tlw's window flags are changed, or if the tlw's QPlatformWindowFormat is changed, then the tlw's QPlatformWindow is deleted and a new one is created.

See also
QPlatformWindow, QPlatformWindowFormat
createWindowSurface(QWidget *widget, WId winId) const

Implements QPlatformIntegration.

Definition at line 83 of file quikitintegration.mm.

84 {
85  Q_UNUSED(winId);
86  return new QUIKitWindow(widget);
87 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ createWindowSurface()

QWindowSurface * QUIKitIntegration::createWindowSurface ( QWidget widget,
WId  winId 
) const
virtual

Factory function for QWindowSurface.

The QWidget parameter is a pointer to the top level widget(tlw) the window surface is created for. A QPlatformWindow is always created before the QWindowSurface for tlw where the widget also requires a WindowSurface. It is possible to create top level QWidgets without a QWindowSurface by specifying QPlatformWindowFormat::setWindowSurface(false) for the tlw QPlatformWindowFormat.

See also
QWindowSurface
createPlatformWindow(QWidget *widget, WId winId = 0) const

Implements QPlatformIntegration.

Definition at line 94 of file quikitintegration.mm.

95 {
96  Q_UNUSED(winId);
97  return new QUIKitWindowSurface(widget);
98 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ fontDatabase()

QPlatformFontDatabase * QUIKitIntegration::fontDatabase ( ) const
virtual

Accessor for the platform integrations fontdatabase.

Default implementation returns a default QPlatformFontDatabase.

See also
QPlatformFontDatabase

Reimplemented from QPlatformIntegration.

Definition at line 105 of file quikitintegration.mm.

106 {
107  return mFontDb;
108 }
QPlatformFontDatabase * mFontDb

◆ instance()

QUIKitIntegration * QUIKitIntegration::instance ( )
static

Definition at line 61 of file quikitintegration.mm.

62 {
63  return m_instance;
64 }
static QUIKitIntegration * m_instance

◆ screens()

QList< QPlatformScreen * > QUIKitIntegration::screens ( ) const
virtual

Accessor function to a list of all the screens on the current system.

The screen with the index == 0 is the default/main screen.

Implements QPlatformIntegration.

Definition at line 89 of file quikitintegration.mm.

90 {
91  return mScreens;
92 }
QList< QPlatformScreen * > mScreens

Properties

◆ mFontDb

QPlatformFontDatabase* QUIKitIntegration::mFontDb
private

Definition at line 69 of file quikitintegration.h.

Referenced by fontDatabase().

◆ mScreens

QList<QPlatformScreen *> QUIKitIntegration::mScreens
private

Definition at line 68 of file quikitintegration.h.

Referenced by QUIKitIntegration(), and screens().


The documentation for this class was generated from the following files: