summaryrefslogtreecommitdiff
path: root/graphics/asymptote/drawgrestore.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/drawgrestore.h
Initial commit
Diffstat (limited to 'graphics/asymptote/drawgrestore.h')
-rw-r--r--graphics/asymptote/drawgrestore.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/graphics/asymptote/drawgrestore.h b/graphics/asymptote/drawgrestore.h
new file mode 100644
index 0000000000..7f1b62fe63
--- /dev/null
+++ b/graphics/asymptote/drawgrestore.h
@@ -0,0 +1,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