Qt 4.8
|
#include <qbbintegration.h>
Public Functions | |
virtual QPlatformClipboard * | clipboard () const |
Accessor for the platform integrations clipboard. More... | |
void | createDisplay (screen_display_t display, int screenIndex) |
virtual QPixmapData * | createPixmapData (QPixmapData::PixelType type) const |
Factory function for QPixmapData. More... | |
virtual QPlatformWindow * | createPlatformWindow (QWidget *widget, WId winId) const |
Factory function for QPlatformWindow. More... | |
virtual QWindowSurface * | createWindowSurface (QWidget *widget, WId winId) const |
Factory function for QWindowSurface. More... | |
virtual QPlatformFontDatabase * | fontDatabase () const |
Accessor for the platform integrations fontdatabase. More... | |
virtual bool | hasCapability (QPlatformIntegration::Capability cap) const |
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 QPlatformNativeInterface * | nativeInterface () const |
bool | paintUsingOpenGL () const |
QBBIntegration () | |
void | removeDisplay (QBBScreen *screen) |
QBBScreen * | screenForNative (screen_display_t screen) const |
QBBScreen * | screenForWindow (screen_window_t window) const |
virtual QList< QPlatformScreen * > | screens () const |
Accessor function to a list of all the screens on the current system. More... | |
virtual void | setCursorPos (int x, int y) |
virtual | ~QBBIntegration () |
Public Functions inherited from QPlatformIntegration | |
virtual QPlatformEventLoopIntegration * | createEventLoopIntegration () 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 | ~QPlatformIntegration () |
Private Functions | |
void | createDisplays () |
void | destroyDisplays () |
QBBScreen * | primaryDisplay () const |
Additional Inherited Members | |
Public Types inherited from QPlatformIntegration | |
enum | Capability { ThreadedPixmaps = 1, OpenGL = 2 } |
Definition at line 62 of file qbbintegration.h.
QBBIntegration::QBBIntegration | ( | ) |
Definition at line 85 of file qbbintegration.cpp.
|
virtual |
Definition at line 179 of file qbbintegration.cpp.
|
virtual |
Accessor for the platform integrations clipboard.
Default implementation returns a default QPlatformClipboard.
Reimplemented from QPlatformIntegration.
Definition at line 299 of file qbbintegration.cpp.
Referenced by fontDatabase().
void QBBIntegration::createDisplay | ( | screen_display_t | display, |
int | screenIndex | ||
) |
Definition at line 368 of file qbbintegration.cpp.
Referenced by createDisplays(), QBBScreenEventHandler::handleDisplayEvent(), and paintUsingOpenGL().
|
private |
Definition at line 337 of file qbbintegration.cpp.
Referenced by paintUsingOpenGL(), and QBBIntegration().
|
virtual |
Factory function for QPixmapData.
PixelType can be either PixmapType or BitmapType.
Implements QPlatformIntegration.
Definition at line 246 of file qbbintegration.cpp.
|
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.
Implements QPlatformIntegration.
Definition at line 254 of file qbbintegration.cpp.
|
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.
Implements QPlatformIntegration.
Definition at line 261 of file qbbintegration.cpp.
|
private |
Definition at line 394 of file qbbintegration.cpp.
Referenced by paintUsingOpenGL(), and ~QBBIntegration().
|
inlinevirtual |
Accessor for the platform integrations fontdatabase.
Default implementation returns a default QPlatformFontDatabase.
Reimplemented from QPlatformIntegration.
Definition at line 79 of file qbbintegration.h.
|
virtual |
Reimplemented from QPlatformIntegration.
Definition at line 235 of file qbbintegration.cpp.
|
virtual |
This function is called when a QWidget is displayed on screen, or the QWidget is to be displayed on a new screen.
The QWidget parameter is a pointer to the top level widget and the int parameter is the index to the screen in QList<QPlatformScreen *> screens() const.
Default implementation does nothing.
Reimplemented from QPlatformIntegration.
Definition at line 275 of file qbbintegration.cpp.
|
virtual |
Reimplemented from QPlatformIntegration.
Definition at line 270 of file qbbintegration.cpp.
|
inline |
Definition at line 85 of file qbbintegration.h.
Referenced by createPixmapData(), and createWindowSurface().
|
private |
Definition at line 327 of file qbbintegration.cpp.
Referenced by createPlatformWindow(), paintUsingOpenGL(), and QBBIntegration().
void QBBIntegration::removeDisplay | ( | QBBScreen * | screen | ) |
Definition at line 386 of file qbbintegration.cpp.
Referenced by QBBScreenEventHandler::handleDisplayEvent(), and paintUsingOpenGL().
QBBScreen * QBBIntegration::screenForNative | ( | screen_display_t | screen | ) | const |
Definition at line 400 of file qbbintegration.cpp.
Referenced by QBBScreenEventHandler::handleDisplayEvent(), and paintUsingOpenGL().
QBBScreen * QBBIntegration::screenForWindow | ( | screen_window_t | window | ) | const |
Definition at line 310 of file qbbintegration.cpp.
Referenced by QBBNativeInterface::nativeResourceForWidget(), and paintUsingOpenGL().
|
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 293 of file qbbintegration.cpp.
|
virtual |
Definition at line 332 of file qbbintegration.cpp.
|
private |
Definition at line 110 of file qbbintegration.h.
Referenced by QBBIntegration(), and ~QBBIntegration().
|
private |
Definition at line 102 of file qbbintegration.h.
Referenced by QBBIntegration(), and ~QBBIntegration().
|
private |
Definition at line 98 of file qbbintegration.h.
Referenced by createDisplay(), createDisplays(), createPlatformWindow(), QBBIntegration(), and ~QBBIntegration().
|
private |
Definition at line 104 of file qbbintegration.h.
Referenced by fontDatabase().
|
private |
Definition at line 103 of file qbbintegration.h.
Referenced by QBBIntegration(), and ~QBBIntegration().
|
private |
Definition at line 109 of file qbbintegration.h.
Referenced by nativeInterface(), and ~QBBIntegration().
|
private |
Definition at line 100 of file qbbintegration.h.
Referenced by createDisplay(), QBBIntegration(), and ~QBBIntegration().
|
private |
Definition at line 101 of file qbbintegration.h.
Referenced by QBBIntegration(), and ~QBBIntegration().
|
private |
Definition at line 107 of file qbbintegration.h.
Referenced by paintUsingOpenGL(), and QBBIntegration().
|
private |
Definition at line 106 of file qbbintegration.h.
Referenced by createDisplay(), QBBIntegration(), and ~QBBIntegration().
|
private |
Definition at line 99 of file qbbintegration.h.
Referenced by QBBIntegration(), setCursorPos(), and ~QBBIntegration().
|
private |
Definition at line 105 of file qbbintegration.h.
Referenced by createDisplay(), destroyDisplays(), moveToScreen(), primaryDisplay(), QBBIntegration(), removeDisplay(), screenForNative(), screenForWindow(), screens(), and ~QBBIntegration().
|
private |
Definition at line 108 of file qbbintegration.h.
Referenced by QBBIntegration(), and ~QBBIntegration().