Qt 4.8
|
#include <qbbwindow.h>
Public Functions | |
QSize | bufferSize () const |
const QList< QBBWindow * > & | children () const |
QBBWindow * | findWindow (screen_window_t windowHandle) |
QBBBuffer & | frontBuffer () |
void | gainedFocus () |
virtual QPlatformGLContext * | glContext () const |
Reimplement to return the glContext associated with the window. More... | |
bool | hasBuffers () const |
virtual void | lower () |
Reimplement to be able to let Qt lower windows to the bottom of the desktop. More... | |
void | post (const QRegion &dirty) |
QBBWindow (QWidget *window, screen_context_t context, QBBScreen *screen) | |
virtual void | raise () |
Reimplement to be able to let Qt rais windows to the top of the desktop. More... | |
QBBBuffer & | renderBuffer () |
virtual void | requestActivateWindow () |
Reimplement to let Qt be able to request activation/focus for a window. More... | |
QBBScreen * | screen () const |
void | scroll (const QRegion ®ion, int dx, int dy, bool flush=false) |
void | setBufferSize (const QSize &size) |
virtual void | setGeometry (const QRect &rect) |
This function is called by Qt whenever a window is moved or the window is resized. More... | |
virtual void | setOpacity (qreal level) |
Reimplement to be able to let Qt set the opacity level of a window. More... | |
virtual void | setParent (const QPlatformWindow *window) |
This function is called to enable native child widgets in QPA. More... | |
void | setScreen (QBBScreen *platformScreen) |
virtual void | setVisible (bool visible) |
Reimplemented in subclasses to show the surface if visible is true , and hide it if visible is false . More... | |
virtual WId | winId () const |
Reimplement in subclasses to return a handle to the native window. More... | |
virtual | ~QBBWindow () |
Public Functions inherited from QPlatformWindow | |
virtual QRect | geometry () const |
Returnes the current geometry of a window. More... | |
QPlatformWindow (QWidget *tlw) | |
Constructs a platform window with the given top level widget. More... | |
virtual Qt::WindowFlags | setWindowFlags (Qt::WindowFlags flags) |
Requests setting the window flags of this surface to type. More... | |
virtual void | setWindowTitle (const QString &title) |
Reimplement to set the window title to title. More... | |
QWidget * | widget () const |
Returnes the widget which belongs to the QPlatformWindow. More... | |
virtual Qt::WindowFlags | windowFlags () const |
Returns the effective window flags for this surface. More... | |
virtual | ~QPlatformWindow () |
Virtual destructor does not delete its top level widget. More... | |
Private Types | |
enum | Buffer { BACK_BUFFER, FRONT_BUFFER, MAX_BUFFER_COUNT } |
Private Functions | |
QBBBuffer & | buffer (QBBWindow::Buffer bufferIndex) |
void | copyBack (const QRegion ®ion, int dx, int dy, bool flush=false) |
void | fetchBuffers () |
void | offset (const QPoint &offset) |
void | removeFromParent () |
void | updateVisibility (bool parentVisible) |
void | updateZorder (int &topZorder) |
Static Private Functions | |
static int | platformWindowFormatToNativeFormat (const QPlatformWindowFormat &format) |
Properties | |
QBBBuffer | mBuffers [MAX_BUFFER_COUNT] |
QSize | mBufferSize |
QList< QBBWindow * > | mChildren |
screen_context_t | mContext |
int | mCurrentBufferIndex |
QBBWindow * | mParent |
QBBGLContext * | mPlatformGlContext |
int | mPreviousBufferIndex |
QRegion | mPreviousDirty |
QBBScreen * | mScreen |
QRegion | mScrolled |
bool | mVisible |
screen_window_t | mWindow |
Friends | |
class | QBBScreen |
Additional Inherited Members | |
Protected Variables inherited from QPlatformWindow | |
QScopedPointer< QPlatformWindowPrivate > | d_ptr |
Definition at line 59 of file qbbwindow.h.
|
private |
Enumerator | |
---|---|
BACK_BUFFER | |
FRONT_BUFFER | |
MAX_BUFFER_COUNT |
Definition at line 100 of file qbbwindow.h.
Definition at line 57 of file qbbwindow.cpp.
|
virtual |
Definition at line 135 of file qbbwindow.cpp.
|
private |
Definition at line 368 of file qbbwindow.cpp.
Referenced by frontBuffer(), and renderBuffer().
|
inline |
Definition at line 94 of file qbbwindow.h.
|
private |
Definition at line 646 of file qbbwindow.cpp.
Referenced by post(), and scroll().
|
private |
QBBWindow * QBBWindow::findWindow | ( | screen_window_t | windowHandle | ) |
Definition at line 617 of file qbbwindow.cpp.
Referenced by children(), QBBScreen::findWindow(), and findWindow().
QBBBuffer & QBBWindow::frontBuffer | ( | ) |
Definition at line 359 of file qbbwindow.cpp.
Referenced by hasBuffers(), and QBBRasterWindowSurface::paintDevice().
void QBBWindow::gainedFocus | ( | ) |
Definition at line 607 of file qbbwindow.cpp.
Referenced by hasBuffers(), and requestActivateWindow().
|
virtual |
Reimplement to return the glContext associated with the window.
Reimplemented from QPlatformWindow.
Definition at line 461 of file qbbwindow.cpp.
Referenced by hasBuffers().
|
inline |
Definition at line 74 of file qbbwindow.h.
Referenced by QBBGLContext::makeCurrent(), QBBRasterWindowSurface::paintDevice(), and setBufferSize().
|
virtual |
Reimplement to be able to let Qt lower windows to the bottom of the desktop.
Reimplemented from QPlatformWindow.
Definition at line 579 of file qbbwindow.cpp.
Referenced by hasBuffers().
|
private |
Definition at line 207 of file qbbwindow.cpp.
Referenced by setGeometry().
|
staticprivate |
Definition at line 707 of file qbbwindow.cpp.
Referenced by setBufferSize().
void QBBWindow::post | ( | const QRegion & | dirty | ) |
Definition at line 417 of file qbbwindow.cpp.
Referenced by QBBRasterWindowSurface::flush(), and hasBuffers().
|
virtual |
Reimplement to be able to let Qt rais windows to the top of the desktop.
Reimplemented from QPlatformWindow.
Definition at line 563 of file qbbwindow.cpp.
|
private |
Definition at line 519 of file qbbwindow.cpp.
Referenced by setParent(), and ~QBBWindow().
QBBBuffer & QBBWindow::renderBuffer | ( | ) |
Definition at line 350 of file qbbwindow.cpp.
Referenced by hasBuffers(), and QBBRasterWindowSurface::paintDevice().
|
virtual |
Reimplement to let Qt be able to request activation/focus for a window.
Some window systems will probably not have callbacks for this functionality, and then calling QWindowSystemInterface::handleWindowActivated(QWidget *w) would be sufficient.
If the window system has some event handling/callbacks then call QWindowSystemInterface::handleWindowActivated(QWidget *w) when the window system gives the notification.
Default implementation calls QWindowSystem::handleWindowActivated(QWidget *w)
Reimplemented from QPlatformWindow.
Definition at line 595 of file qbbwindow.cpp.
Referenced by hasBuffers().
|
inline |
void QBBWindow::scroll | ( | const QRegion & | region, |
int | dx, | ||
int | dy, | ||
bool | flush = false |
||
) |
Definition at line 411 of file qbbwindow.cpp.
Referenced by QBBRasterWindowSurface::flush(), and hasBuffers().
void QBBWindow::setBufferSize | ( | const QSize & | size | ) |
Definition at line 288 of file qbbwindow.cpp.
Referenced by QBBRasterWindowSurface::beginPaint(), QBBGLContext::makeCurrent(), QBBGLContext::resizeSurface(), and winId().
|
virtual |
This function is called by Qt whenever a window is moved or the window is resized.
The resize can happen programatically(from ie. user application) or by the window manager. This means that there is no need to call this function specifically from the window manager callback, instead call QWindowSystemInterface::handleGeometryChange(QWidget *w, const QRect &newRect);
Reimplemented from QPlatformWindow.
Definition at line 157 of file qbbwindow.cpp.
Referenced by QBBWindow().
|
virtual |
Reimplement to be able to let Qt set the opacity level of a window.
Reimplemented from QPlatformWindow.
Definition at line 270 of file qbbwindow.cpp.
|
virtual |
This function is called to enable native child widgets in QPA.
It is common not to support this feature in Window systems, but can be faked. When this function is called all geometry of this platform window will be relative to the parent.
Reimplemented from QPlatformWindow.
Definition at line 532 of file qbbwindow.cpp.
Referenced by hasBuffers(), and QBBWindow().
void QBBWindow::setScreen | ( | QBBScreen * | platformScreen | ) |
Definition at line 474 of file qbbwindow.cpp.
Referenced by hasBuffers(), QBBIntegration::moveToScreen(), QBBWindow(), and setParent().
|
virtual |
Reimplemented in subclasses to show the surface if visible is true
, and hide it if visible is false
.
Reimplemented from QPlatformWindow.
Definition at line 232 of file qbbwindow.cpp.
Referenced by QBBWindow().
|
private |
Definition at line 254 of file qbbwindow.cpp.
Referenced by setVisible().
|
private |
Definition at line 631 of file qbbwindow.cpp.
|
inlinevirtual |
Reimplement in subclasses to return a handle to the native window.
Reimplemented from QPlatformWindow.
Definition at line 70 of file qbbwindow.h.
Referenced by QBBGLContext::createSurface().
Definition at line 61 of file qbbwindow.h.
|
private |
Definition at line 111 of file qbbwindow.h.
Referenced by buffer(), copyBack(), and post().
|
private |
Definition at line 110 of file qbbwindow.h.
Referenced by bufferSize(), hasBuffers(), and setBufferSize().
Definition at line 119 of file qbbwindow.h.
Referenced by children(), findWindow(), lower(), offset(), raise(), removeFromParent(), setGeometry(), setParent(), setScreen(), updateVisibility(), updateZorder(), and ~QBBWindow().
|
private |
Definition at line 108 of file qbbwindow.h.
Referenced by copyBack(), QBBWindow(), and setVisible().
|
private |
Definition at line 112 of file qbbwindow.h.
Referenced by buffer(), copyBack(), post(), and setBufferSize().
|
private |
Definition at line 120 of file qbbwindow.h.
Referenced by lower(), raise(), removeFromParent(), setParent(), and setVisible().
|
mutableprivate |
Definition at line 117 of file qbbwindow.h.
Referenced by glContext(), setBufferSize(), and ~QBBWindow().
|
private |
Definition at line 113 of file qbbwindow.h.
Referenced by buffer(), copyBack(), and post().
|
private |
Definition at line 114 of file qbbwindow.h.
Referenced by post(), and setBufferSize().
|
private |
Definition at line 118 of file qbbwindow.h.
Referenced by lower(), post(), raise(), removeFromParent(), screen(), setBufferSize(), setParent(), setScreen(), and ~QBBWindow().
|
private |
Definition at line 115 of file qbbwindow.h.
Referenced by post(), scroll(), and setBufferSize().
|
private |
Definition at line 121 of file qbbwindow.h.
Referenced by setVisible(), and updateVisibility().
|
private |
Definition at line 109 of file qbbwindow.h.
Referenced by buffer(), findWindow(), offset(), post(), QBBWindow(), setBufferSize(), setGeometry(), setOpacity(), setScreen(), updateVisibility(), updateZorder(), winId(), and ~QBBWindow().