Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class state_saver

boost::ui::painter::state_saver — Saves state in the constructor and restores it in the destructor.

Synopsis

// In header: <boost/ui/painter.hpp>



// Saves state in the constructor and restores it in the destructor.

class state_saver : private noncopyable {
public:
  // construct/copy/destruct
  state_saver(painter &);
  ~state_saver();
};

Description

state_saver public construct/copy/destruct

  1. state_saver(painter & c);
    Saves current painter state in the stack.
  2. ~state_saver();
    Restores painter state from the stack.

PrevUpHomeNext