ImageWriteGuard Struct

struct Qul::ImageWriteGuard

A helper for calling Image::beginWrite() and Image::endWrite(). More...

Header: #include <qul/image.h>
Since: Qt Quick Ultralite 1.5

This struct was introduced in Qt Quick Ultralite 1.5.

Public Functions

ImageWriteGuard(Qul::ImageWriteGuard &&other)
ImageWriteGuard(Qul::Image &image)

Detailed Description

Uses RAII to call Image::beginWrite() on construction, and Image::endWrite() on destruction.

See also Image.

Member Function Documentation

ImageWriteGuard::ImageWriteGuard(Qul::ImageWriteGuard &&other)


ImageWriteGuard::ImageWriteGuard(Qul::Image &image)

Construct. Calls Image::beginWrite() on image.


Destruct. Calls SharedImage::endWrite().

Available under certain Qt licenses.
Find out more.