Gfx::Canvas::Saver< doit, undoit > Class Template Reference

#include <gfx/canvas.h>

Collaboration diagram for Gfx::Canvas::Saver< doit, undoit >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Saver (Canvas &canvas, const char *comment="")
template<class Arg>
 Saver (Canvas &canvas, Arg a, const char *comment="")
 ~Saver ()
 Destroy the MatrixSaver and restore the state of the Canvas.


Detailed Description

template<Manip doit, Unmanip undoit>
class Gfx::Canvas::Saver< doit, undoit >

MatrixSaver handles saving and restoring of some part of the matrix state within a lexical scope, in an exception-safe manner.

Definition at line 138 of file canvas.h.


Constructor & Destructor Documentation

template<Manip doit, Unmanip undoit>
Gfx::Canvas::Saver< doit, undoit >::Saver ( Canvas canvas,
const char *  comment = "" 
) [inline]

Save the state of canvas. Its state will be restored to the saved state when the MatrixSaver is destroyed.

Definition at line 143 of file canvas.h.

template<Manip doit, Unmanip undoit>
template<class Arg>
Gfx::Canvas::Saver< doit, undoit >::Saver ( Canvas canvas,
Arg  a,
const char *  comment = "" 
) [inline]

Save the state of canvas. Its state will be restored to the saved state when the MatrixSaver is destroyed.

Definition at line 150 of file canvas.h.


The documentation for this class was generated from the following file:

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:16 2008 by Doxygen version 1.5.5.