|
cairomm 1.18.0
|
RAII-style context save/restore class. More...
#include <cairomm/context.h>
Public Member Functions | |
| SaveGuard (const RefPtr< Context > & context) | |
| Constructor, the context is saved. | |
| ~SaveGuard () | |
| Destructor, the context is restored. | |
RAII-style context save/restore class.
Cairo::Context::save() is called automatically when the object is created, and Cairo::Context::restore() is called when the object is destroyed. This allows you to write code such as:
Constructor, the context is saved.
| Cairo::SaveGuard::~SaveGuard | ( | ) |
Destructor, the context is restored.