cairomm
1.16.2
|
RAII-style context save/restore class. More...
#include <cairomm/context.h>
Public Member Functions | |
SaveGuard (const RefPtr< Context > & context) | |
Constructor, the context is saved. More... | |
~SaveGuard () | |
Destructor, the context is restored. More... | |
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.