C

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

Public Functions

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

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)

Move.

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

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

ImageWriteGuard::~ImageWriteGuard()

Destruct. Calls SharedImage::endWrite().

Available under certain Qt licenses.
Find out more.