24 inline QSizeF size()
const {
27 QSGTexture *texture()
const;
31 bool shareBuffer =
false,
32 bool useAtlasTexture =
false);
35 bool shareBuffer =
false,
36 bool useAtlasTexture =
false);
38 QRectF rect()
const override;
40 void resize(
const QSizeF &size);
41 void setMargins(
const QMarginsF &margin);
44 void setRenderCallback(RenderCallback callback,
void *data);
45 inline void doRenderCallback() {
46 if (!m_renderCallback)
48 m_renderCallback(
this, m_callbackData);
50 virtual QImage toImage()
const {
return QImage(); }
55 QPointer<QQuickItem> m_item;
59 QScopedPointer<ProxyAtlasTexture> m_texture;
60 RenderCallback m_renderCallback =
nullptr;
61 void *m_callbackData =
nullptr;
62 bool shareBuffer =
false;
63 bool useAtlasTexture =
false;