cairomm 1.18.0
|
A convenience class for acquiring a Device object in an exception-safe manner. More...
#include <cairomm/device.h>
Public Member Functions | |
Lock (const RefPtr< Device > & device) | |
Create a new Device lock for device. More... | |
Lock (const Lock & other) | |
~Lock () | |
A convenience class for acquiring a Device object in an exception-safe manner.
The device is automatically acquired when a Lock object is created and released when the Lock object is destroyed. For example:
Cairo::Device::Lock::Lock | ( | const Lock & | other | ) |
Cairo::Device::Lock::~Lock | ( | ) |