Qt 4.8
|
#include <qwaylandwindow.h>
Public Types | |
enum | WindowType { Shm, Egl } |
Public Functions | |
void | attach (QWaylandBuffer *buffer) |
void | configure (uint32_t time, uint32_t edges, int32_t x, int32_t y, int32_t width, int32_t height) |
void | damage (const QRect &rect) |
QWaylandWindow (QWidget *window) | |
void | setParent (const QPlatformWindow *parent) |
This function is called to enable native child widgets in QPA. More... | |
void | setVisible (bool visible) |
Reimplemented in subclasses to show the surface if visible is true , and hide it if visible is false . More... | |
void | waitForFrameSync () |
virtual WindowType | windowType () const =0 |
WId | winId () const |
Reimplement in subclasses to return a handle to the native window. More... | |
struct wl_surface * | wl_surface () const |
~QWaylandWindow () | |
Public Functions inherited from QPlatformWindow | |
virtual QRect | geometry () const |
Returnes the current geometry of a window. More... | |
virtual QPlatformGLContext * | glContext () const |
Reimplement to return the glContext associated with the window. More... | |
virtual void | lower () |
Reimplement to be able to let Qt lower windows to the bottom of the desktop. More... | |
QPlatformWindow (QWidget *tlw) | |
Constructs a platform window with the given top level widget. More... | |
virtual void | raise () |
Reimplement to be able to let Qt rais windows to the top of the desktop. More... | |
virtual void | requestActivateWindow () |
Reimplement to let Qt be able to request activation/focus for a window. More... | |
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 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... | |
Protected Functions | |
virtual void | newSurfaceCreated () |
Protected Variables | |
QWaylandBuffer * | mBuffer |
QWaylandDisplay * | mDisplay |
QWaitCondition | mFrameSyncWait |
struct wl_surface * | mSurface |
bool | mWaitingForFrameSync |
WId | mWindowId |
Protected Variables inherited from QPlatformWindow | |
QScopedPointer< QPlatformWindowPrivate > | d_ptr |
Static Private Functions | |
static void | frameCallback (struct wl_surface *surface, void *data, uint32_t time) |
Definition at line 54 of file qwaylandwindow.h.
Enumerator | |
---|---|
Shm | |
Egl |
Definition at line 57 of file qwaylandwindow.h.
QWaylandWindow::QWaylandWindow | ( | QWidget * | window | ) |
Definition at line 59 of file qwaylandwindow.cpp.
QWaylandWindow::~QWaylandWindow | ( | ) |
Definition at line 75 of file qwaylandwindow.cpp.
void QWaylandWindow::attach | ( | QWaylandBuffer * | buffer | ) |
void QWaylandWindow::configure | ( | uint32_t | time, |
uint32_t | edges, | ||
int32_t | x, | ||
int32_t | y, | ||
int32_t | width, | ||
int32_t | height | ||
) |
Definition at line 109 of file qwaylandwindow.cpp.
Referenced by QWaylandDisplay::shellHandleConfigure().
void QWaylandWindow::damage | ( | const QRect & | rect | ) |
Definition at line 130 of file qwaylandwindow.cpp.
Referenced by QWaylandShmWindowSurface::flush(), QWaylandReadbackGlxContext::swapBuffers(), QWaylandReadbackEglContext::swapBuffers(), QWaylandXCompositeEGLContext::swapBuffers(), and QWaylandXCompositeGLXContext::swapBuffers().
|
staticprivate |
Definition at line 152 of file qwaylandwindow.cpp.
Referenced by damage().
|
protectedvirtual |
Reimplemented in QWaylandEglWindow.
Definition at line 143 of file qwaylandwindow.cpp.
Referenced by QWaylandShmWindow::QWaylandShmWindow(), and setVisible().
|
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 90 of file qwaylandwindow.cpp.
|
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 96 of file qwaylandwindow.cpp.
void QWaylandWindow::waitForFrameSync | ( | ) |
Definition at line 160 of file qwaylandwindow.cpp.
Referenced by QWaylandShmWindowSurface::beginPaint(), QWaylandReadbackGlxContext::geometryChanged(), QWaylandReadbackEglContext::geometryChanged(), QWaylandReadbackEglContext::makeCurrent(), QWaylandReadbackGlxContext::swapBuffers(), QWaylandXCompositeEGLContext::swapBuffers(), and QWaylandXCompositeGLXContext::swapBuffers().
|
pure virtual |
|
virtual |
Reimplement in subclasses to return a handle to the native window.
Reimplemented from QPlatformWindow.
Definition at line 85 of file qwaylandwindow.cpp.
|
inline |
Definition at line 78 of file qwaylandwindow.h.
|
protected |
Definition at line 84 of file qwaylandwindow.h.
Referenced by attach(), and newSurfaceCreated().
|
protected |
Definition at line 83 of file qwaylandwindow.h.
Referenced by damage(), QWaylandEglWindow::QWaylandEglWindow(), QWaylandWindow(), setVisible(), waitForFrameSync(), and ~QWaylandWindow().
|
protected |
Definition at line 87 of file qwaylandwindow.h.
|
protected |
Definition at line 81 of file qwaylandwindow.h.
Referenced by attach(), damage(), QWaylandEglWindow::newSurfaceCreated(), newSurfaceCreated(), setVisible(), wl_surface(), and ~QWaylandWindow().
|
protected |
Definition at line 86 of file qwaylandwindow.h.
Referenced by damage(), frameCallback(), and waitForFrameSync().
|
protected |
Definition at line 85 of file qwaylandwindow.h.
Referenced by QWaylandWindow(), and winId().