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

#include <qvfbintegration.h>

Inheritance diagram for QVFbIntegration:
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...
 
 QVFbIntegration (const QStringList &paramList)
 
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 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 ()
 

Properties

QPlatformFontDatabasemFontDb
 
QVFbScreenmPrimaryScreen
 
QList< QPlatformScreen * > mScreens
 

Additional Inherited Members

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

Detailed Description

Definition at line 76 of file qvfbintegration.h.

Constructors and Destructors

◆ QVFbIntegration()

QVFbIntegration::QVFbIntegration ( const QStringList paramList)

Definition at line 413 of file qvfbintegration.cpp.

415 {
416  int displayId = 0;
417  if (paramList.length() > 0)
418  displayId = paramList.at(0).toInt();
419 
420  mPrimaryScreen = new QVFbScreen(displayId);
421 
423 }
int toInt(bool *ok=0, int base=10) const
Returns the string converted to an int using base base, which is 10 by default and must be between 2 ...
Definition: qstring.cpp:6090
QBasicUnixFontDatabase QGenericUnixFontDatabase
The QVFbScreen class implements a screen driver for the virtual framebuffer.
QVFbScreen * mPrimaryScreen
QPlatformFontDatabase * mFontDb
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
QList< QPlatformScreen * > mScreens
int length() const
This function is identical to count().
Definition: qlist.h:281

Functions

◆ createPixmapData()

QPixmapData * QVFbIntegration::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 425 of file qvfbintegration.cpp.

426 {
427  return new QRasterPixmapData(type);
428 }
int type
Definition: qmetatype.cpp:239

◆ createPlatformWindow()

QPlatformWindow * QVFbIntegration::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 436 of file qvfbintegration.cpp.

437 {
438  return new QVFbWindow(mPrimaryScreen, widget);
439 }
QVFbScreen * mPrimaryScreen

◆ createWindowSurface()

QWindowSurface * QVFbIntegration::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 430 of file qvfbintegration.cpp.

431 {
432  return new QVFbWindowSurface(mPrimaryScreen, widget);
433 }
QVFbScreen * mPrimaryScreen

◆ fontDatabase()

QPlatformFontDatabase * QVFbIntegration::fontDatabase ( ) const
virtual

Accessor for the platform integrations fontdatabase.

Default implementation returns a default QPlatformFontDatabase.

See also
QPlatformFontDatabase

Reimplemented from QPlatformIntegration.

Definition at line 441 of file qvfbintegration.cpp.

442 {
443  return mFontDb;
444 }
QPlatformFontDatabase * mFontDb

◆ screens()

QList<QPlatformScreen *> QVFbIntegration::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 85 of file qvfbintegration.h.

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

Properties

◆ mFontDb

QPlatformFontDatabase* QVFbIntegration::mFontDb
private

Definition at line 92 of file qvfbintegration.h.

Referenced by fontDatabase().

◆ mPrimaryScreen

QVFbScreen* QVFbIntegration::mPrimaryScreen
private

Definition at line 90 of file qvfbintegration.h.

Referenced by createPlatformWindow(), createWindowSurface(), and QVFbIntegration().

◆ mScreens

QList<QPlatformScreen *> QVFbIntegration::mScreens
private

Definition at line 91 of file qvfbintegration.h.

Referenced by QVFbIntegration().


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