summaryrefslogtreecommitdiff
path: root/graphics/asymptote/drawgrestore.h
blob: b1b80a8081992bed844530604dfe9988c0e96115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*****
 * 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