36class Q_EGLFS_EXPORT QEglFSWindow :
public QPlatformWindow
40 QEglFSWindow(QWindow *w);
46 void setGeometry(
const QRect &) override;
47 QRect geometry()
const override;
48 void setVisible(
bool visible) override;
49 void requestActivateWindow() override;
50 void raise() override;
51 void lower() override;
53 void propagateSizeHints() override { }
54 void setMask(
const QRegion &) override { }
55 bool setKeyboardGrabEnabled(
bool) override {
return false; }
56 bool setMouseGrabEnabled(
bool) override {
return false; }
57 void setOpacity(qreal) override;
58 WId winId()
const override;
60 QSurfaceFormat format()
const override;
62 EGLNativeWindowType eglWindow()
const;
63 EGLSurface surface()
const;
64 QEglFSScreen *screen()
const override;
66 bool hasNativeWindow()
const {
return m_flags.testFlag(HasNativeWindow); }
68 void invalidateSurface() override;
69 virtual void resetSurface();
71 bool isRaster()
const;
74 QOpenGLCompositorBackingStore *backingStore()
const override {
return m_backingStore; }
75 void setBackingStore(QOpenGLCompositorBackingStore *backingStore) override;
76 QWindow *sourceWindow()
const override;
77 const QPlatformTextureList *textures()
const override;
78 void endCompositing() override;
83 QOpenGLCompositorBackingStore *m_backingStore;
84 QOpenGLContext *m_rasterCompositingContext;
89 EGLNativeWindowType m_window;
92 QSurfaceFormat m_format;
96 HasNativeWindow = 0x02
98 Q_DECLARE_FLAGS(Flags, Flag)