49 void setDelegate(std::unique_ptr<RenderLayerDelegate> delegate);
51 QList<RenderLayer *> sublayers()
const;
55 bool isVisible()
const;
56 void setVisible(
bool visible);
58 QPoint mapToGlobal(
const QPoint &point)
const;
59 QPointF mapToGlobal(
const QPointF &point)
const;
60 QRegion mapToGlobal(
const QRegion ®ion)
const;
61 QRect mapToGlobal(
const QRect &rect)
const;
62 QRectF mapToGlobal(
const QRectF &rect)
const;
64 QPoint mapFromGlobal(
const QPoint &point)
const;
65 QPointF mapFromGlobal(
const QPointF &point)
const;
66 QRegion mapFromGlobal(
const QRegion ®ion)
const;
67 QRect mapFromGlobal(
const QRect &rect)
const;
68 QRectF mapFromGlobal(
const QRectF &rect)
const;
71 QRectF boundingRect()
const;
73 QRectF geometry()
const;
74 void setGeometry(
const QRectF &rect);
80 void scheduleRepaint(
Item *item);
84 bool needsRepaint()
const;
86 void addRepaint(
const QRegion ®ion);
87 void addRepaint(
const QRect &rect);
88 void addRepaint(
int x,
int y,
int width,
int height);
89 void addRepaintFull();
90 QRegion repaints()
const;
96 void updateBoundingRect();
97 void updateEffectiveVisibility();
98 bool computeEffectiveVisibility()
const;
101 bool m_repaintScheduled =
false;
102 std::unique_ptr<RenderLayerDelegate> m_delegate;
104 QRectF m_boundingRect;
106 QPointer<OutputLayer> m_outputLayer;
108 QList<RenderLayer *> m_sublayers;
109 bool m_effectiveVisible =
true;
110 bool m_explicitVisible =
true;