summaryrefslogtreecommitdiff
path: root/graphics/asymptote/drawgsave.h
blob: 58ef9715b54c9ef19a41ada046bdea47791cc8f5 (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
/*****
 * drawgsave.h
 * John Bowman
 *
 * Output PostScript gsave to picture.
 *****/

#ifndef DRAWGSAVE_H
#define DRAWGSAVE_H

#include "drawelement.h"

namespace camp {

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

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

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

}

GC_DECLARE_PTRFREE(camp::drawGsave);

#endif