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

#include <qwaylandxcompositeglxwindow.h>

Inheritance diagram for QWaylandXCompositeGLXWindow:
QWaylandWindow QPlatformWindow

Public Functions

QPlatformGLContextglContext () const
 Reimplement to return the glContext associated with the window. More...
 
 QWaylandXCompositeGLXWindow (QWidget *window, QWaylandXCompositeGLXIntegration *glxIntegration)
 
void setGeometry (const QRect &rect)
 This function is called by Qt whenever a window is moved or the window is resized. More...
 
WindowType windowType () const
 
- Public Functions inherited from QWaylandWindow
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 ()
 
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 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 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...
 
QWidgetwidget () 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...
 

Properties

QWaylandXCompositeGLXContextmContext
 
QWaylandXCompositeGLXIntegrationmGlxIntegration
 

Additional Inherited Members

- Public Types inherited from QWaylandWindow
enum  WindowType { Shm, Egl }
 
- Protected Functions inherited from QWaylandWindow
virtual void newSurfaceCreated ()
 
- Protected Variables inherited from QWaylandWindow
QWaylandBuffermBuffer
 
QWaylandDisplaymDisplay
 
QWaitCondition mFrameSyncWait
 
struct wl_surfacemSurface
 
bool mWaitingForFrameSync
 
WId mWindowId
 
- Protected Variables inherited from QPlatformWindow
QScopedPointer< QPlatformWindowPrivated_ptr
 

Detailed Description

Definition at line 49 of file qwaylandxcompositeglxwindow.h.

Constructors and Destructors

◆ QWaylandXCompositeGLXWindow()

QWaylandXCompositeGLXWindow::QWaylandXCompositeGLXWindow ( QWidget window,
QWaylandXCompositeGLXIntegration glxIntegration 
)

Definition at line 46 of file qwaylandxcompositeglxwindow.cpp.

47  : QWaylandWindow(window)
48  , mGlxIntegration(glxIntegration)
49  , mContext(0)
50 {
51 
52 }
QWaylandXCompositeGLXIntegration * mGlxIntegration
QWaylandWindow(QWidget *window)
QWaylandXCompositeGLXContext * mContext

Functions

◆ glContext()

QPlatformGLContext * QWaylandXCompositeGLXWindow::glContext ( ) const
virtual

Reimplement to return the glContext associated with the window.

Reimplemented from QPlatformWindow.

Definition at line 60 of file qwaylandxcompositeglxwindow.cpp.

61 {
62  if (!mContext) {
63  qDebug() << "creating glcontext;";
64  QWaylandXCompositeGLXWindow *that = const_cast<QWaylandXCompositeGLXWindow *>(this);
66  }
67  return mContext;
68 }
Q_CORE_EXPORT void qDebug(const char *,...)
QWaylandXCompositeGLXIntegration * mGlxIntegration
QWaylandXCompositeGLXContext * mContext

◆ setGeometry()

void QWaylandXCompositeGLXWindow::setGeometry ( const QRect rect)
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 70 of file qwaylandxcompositeglxwindow.cpp.

71 {
73 
74  if (mContext) {
76  }
77 }
virtual void setGeometry(const QRect &rect)
This function is called by Qt whenever a window is moved or the window is resized.
QWaylandXCompositeGLXContext * mContext

◆ windowType()

QWaylandWindow::WindowType QWaylandXCompositeGLXWindow::windowType ( ) const
virtual

Implements QWaylandWindow.

Definition at line 54 of file qwaylandxcompositeglxwindow.cpp.

55 {
56  //yeah. this type needs a new name
57  return QWaylandWindow::Egl;
58 }

Properties

◆ mContext

QWaylandXCompositeGLXContext* QWaylandXCompositeGLXWindow::mContext
private

Definition at line 61 of file qwaylandxcompositeglxwindow.h.

Referenced by glContext(), and setGeometry().

◆ mGlxIntegration

QWaylandXCompositeGLXIntegration* QWaylandXCompositeGLXWindow::mGlxIntegration
private

Definition at line 60 of file qwaylandxcompositeglxwindow.h.

Referenced by glContext().


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