21 inline QSizeF size()
const {
24 QSGTexture *texture()
const;
29 QRectF rect()
const override;
30 RenderingFlags flags()
const override;
32 void resize(
const QSizeF &size);
33 void setContentItem(QQuickItem *item);
35 typedef void(*TextureChangedNotifer)(
DBackdropNode *node,
void *data);
36 void setTextureChangedCallback(TextureChangedNotifer callback,
void *data);
37 inline void doNotifyTextureChanged() {
38 if (!m_renderCallback || !m_item)
40 m_renderCallback(
this, m_callbackData);
42 virtual QImage toImage()
const {
return QImage(); }
44 QQuickWindow *renderWindow()
const;
45 qreal effectiveDevicePixelRatio()
const;
50 QPointer<QQuickItem> m_item;
51 QPointer<QQuickItem> m_content;
54 QScopedPointer<QSGTexture> m_texture;
55 TextureChangedNotifer m_renderCallback =
nullptr;
56 void *m_callbackData =
nullptr;