Codebase list asymptote / 688050c8-00bf-45cb-bdde-85796de4622a/main drawgrestore.h
688050c8-00bf-45cb-bdde-85796de4622a/main

Tree @688050c8-00bf-45cb-bdde-85796de4622a/main (Download .tar.gz)

drawgrestore.h @688050c8-00bf-45cb-bdde-85796de4622a/mainraw · history · blame

/*****
 * drawgrestore.h
 * John Bowman
 *
 * Output PostScript grestore to picture.
 *****/

#ifndef DRAWGRESTORE_H
#define DRAWGRESTORE_H

#include "drawelement.h"

namespace camp {

class drawGrestore : public drawElement {
public:
  drawGrestore() {}
  virtual ~drawGrestore() {}

  bool draw(psfile *out) {
    out->grestore();
    return true;
  }

  bool write(texfile *out, const bbox&) {
    out->grestore();
    return true;
  }
};

}

GC_DECLARE_PTRFREE(camp::drawGrestore);

#endif