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

#include <qeglfsintegration.h>

Inheritance diagram for QEglFSIntegration:
QPlatformIntegration

Public Functions

QPixmapDatacreatePixmapData (QPixmapData::PixelType type) const
 Factory function for QPixmapData. More...
 
QPlatformWindowcreatePlatformWindow (QWidget *widget, WId winId) 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...
 
bool hasCapability (QPlatformIntegration::Capability cap) const
 
 QEglFSIntegration ()
 
QList< QPlatformScreen * > screens () const
 Accessor function to a list of all the screens on the current system. More...
 
- Public Functions inherited from QPlatformIntegration
virtual QPlatformClipboardclipboard () const
 Accessor for the platform integrations clipboard. More...
 
virtual QPlatformEventLoopIntegrationcreateEventLoopIntegration () const
 Factory function for the eventloop integration interface. 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 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 ()
 

Properties

QEglFSScreenm_primaryScreen
 
QPlatformFontDatabasemFontDb
 
QList< QPlatformScreen * > mScreens
 

Additional Inherited Members

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

Detailed Description

Definition at line 54 of file qeglfsintegration.h.

Constructors and Destructors

◆ QEglFSIntegration()

QEglFSIntegration::QEglFSIntegration ( )

Definition at line 57 of file qeglfsintegration.cpp.

59 {
60  m_primaryScreen = new QEglFSScreen(EGL_DEFAULT_DISPLAY);
61 
63 #ifdef QEGL_EXTRA_DEBUG
64  qWarning("QEglIntegration\n");
65 #endif
66 }
QBasicUnixFontDatabase QGenericUnixFontDatabase
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
Q_CORE_EXPORT void qWarning(const char *,...)
QList< QPlatformScreen * > mScreens
QPlatformFontDatabase * mFontDb
QEglFSScreen * m_primaryScreen

Functions

◆ createPixmapData()

QPixmapData * QEglFSIntegration::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 76 of file qeglfsintegration.cpp.

77 {
78 #ifdef QEGL_EXTRA_DEBUG
79  qWarning("QEglIntegration::createPixmapData %d\n", type);
80 #endif
81  return new QGLPixmapData(type);
82 }
int type
Definition: qmetatype.cpp:239
Q_CORE_EXPORT void qWarning(const char *,...)

◆ createPlatformWindow()

QPlatformWindow * QEglFSIntegration::createPlatformWindow ( QWidget widget,
WId  winId 
) 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 84 of file qeglfsintegration.cpp.

85 {
86  Q_UNUSED(winId);
87 #ifdef QEGL_EXTRA_DEBUG
88  qWarning("QEglIntegration::createPlatformWindow %p\n",widget);
89 #endif
90  return new QEglFSWindow(widget, m_primaryScreen);
91 }
Q_CORE_EXPORT void qWarning(const char *,...)
QEglFSScreen * m_primaryScreen
#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 * QEglFSIntegration::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 qeglfsintegration.cpp.

95 {
96  Q_UNUSED(winId);
97 
98 #ifdef QEGL_EXTRA_DEBUG
99  qWarning("QEglIntegration::createWindowSurface %p\n",widget);
100 #endif
101  return new QEglFSWindowSurface(m_primaryScreen,widget);
102 }
Q_CORE_EXPORT void qWarning(const char *,...)
QEglFSScreen * m_primaryScreen
#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 * QEglFSIntegration::fontDatabase ( ) const
virtual

Accessor for the platform integrations fontdatabase.

Default implementation returns a default QPlatformFontDatabase.

See also
QPlatformFontDatabase

Reimplemented from QPlatformIntegration.

Definition at line 104 of file qeglfsintegration.cpp.

Referenced by screens().

105 {
106  return mFontDb;
107 }
QPlatformFontDatabase * mFontDb

◆ hasCapability()

bool QEglFSIntegration::hasCapability ( QPlatformIntegration::Capability  cap) const
virtual

Reimplemented from QPlatformIntegration.

Definition at line 68 of file qeglfsintegration.cpp.

69 {
70  switch (cap) {
71  case ThreadedPixmaps: return true;
72  default: return QPlatformIntegration::hasCapability(cap);
73  }
74 }
virtual bool hasCapability(Capability cap) const

◆ screens()

QList<QPlatformScreen *> QEglFSIntegration::screens ( ) const
inlinevirtual

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 64 of file qeglfsintegration.h.

64 { return mScreens; }
QList< QPlatformScreen * > mScreens

Properties

◆ m_primaryScreen

QEglFSScreen* QEglFSIntegration::m_primaryScreen
private

◆ mFontDb

QPlatformFontDatabase* QEglFSIntegration::mFontDb
private

Definition at line 69 of file qeglfsintegration.h.

Referenced by fontDatabase().

◆ mScreens

QList<QPlatformScreen *> QEglFSIntegration::mScreens
private

Definition at line 70 of file qeglfsintegration.h.

Referenced by QEglFSIntegration(), and screens().


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