35class Q_EGLFS_EXPORT QEglFSWindow :
public QPlatformWindow
39 QEglFSWindow(QWindow *w);
45 void setGeometry(
const QRect &) override;
46 QRect geometry()
const override;
47 void setVisible(
bool visible) override;
48 void requestActivateWindow() override;
49 void raise() override;
50 void lower() override;
52 void propagateSizeHints() override { }
53 void setMask(
const QRegion &) override { }
54 bool setKeyboardGrabEnabled(
bool) override {
return false; }
55 bool setMouseGrabEnabled(
bool) override {
return false; }
56 void setOpacity(qreal) override;
57 WId winId()
const override;
59 QSurfaceFormat format()
const override;
61 EGLNativeWindowType eglWindow()
const;
62 EGLSurface surface()
const;
63 QEglFSScreen *screen()
const override;
65 bool hasNativeWindow()
const {
return m_flags.testFlag(HasNativeWindow); }
67 void invalidateSurface() override;
68 virtual void resetSurface();
70 bool isRaster()
const;
73 QOpenGLCompositorBackingStore *backingStore()
const override {
return m_backingStore; }
74 void setBackingStore(QOpenGLCompositorBackingStore *backingStore) override;
75 QWindow *sourceWindow()
const override;
76 const QPlatformTextureList *textures()
const override;
77 void endCompositing() override;
82 QOpenGLCompositorBackingStore *m_backingStore;
83 QOpenGLContext *m_rasterCompositingContext;
88 EGLNativeWindowType m_window;
91 QSurfaceFormat m_format;
95 HasNativeWindow = 0x02
97 Q_DECLARE_FLAGS(Flags, Flag)