10 , m_rect(
QRect(0, 0, 1, 1))
32#ifdef QQUICKCONTEXT2D_DEBUG
75 if (m_image.
size() !=
r.size()) {
The QColor class provides colors based on RGB, HSV or CMYK values.
QSize size() const
Returns the size of the image, i.e.
@ Format_ARGB32_Premultiplied
The QPainter class performs low-level painting on widgets and other paint devices.
void setClipping(bool enable)
Enables clipping if enable is true, or disables clipping if enable is false.
void setClipRect(const QRectF &, Qt::ClipOperation op=Qt::ReplaceClip)
Enables clipping, and sets the clip region to the given rectangle using the given clip operation.
bool begin(QPaintDevice *)
Begins painting the paint device and returns true if successful; otherwise returns false.
void setCompositionMode(CompositionMode mode)
Sets the composition mode to the given mode.
void resetTransform()
Resets any transformations that were made using translate(), scale(), shear(), rotate(),...
@ CompositionMode_SourceOver
bool isActive() const
Returns true if begin() has been called and end() has not yet been called; otherwise returns false.
void translate(const QPointF &offset)
Translates the coordinate system by the given offset; i.e.
void setRenderHints(RenderHints hints, bool on=true)
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.
void setRenderHint(RenderHint hint, bool on=true)
Sets the given render hint on the painter if on is true; otherwise clears the render hint.
~QQuickContext2DImageTile()
QQuickContext2DImageTile()
void setRect(const QRect &r) override
virtual QPainter * createPainter(bool smooth, bool antialiasing)
virtual ~QQuickContext2DTile()
virtual void aboutToDraw()
\inmodule QtCore\reentrant
constexpr int height() const noexcept
Returns the height of the rectangle.
constexpr int top() const noexcept
Returns the y-coordinate of the rectangle's top edge.
constexpr int left() const noexcept
Returns the x-coordinate of the rectangle's left edge.
constexpr int x() const noexcept
Returns the x-coordinate of the rectangle's left edge.
constexpr int width() const noexcept
Returns the width of the rectangle.
constexpr int y() const noexcept
Returns the y-coordinate of the rectangle's top edge.
Combined button and popup list for selecting options.
GLsizei const GLfloat * v
[13]