diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/drawgrestore.h |
Initial commit
Diffstat (limited to 'graphics/asymptote/drawgrestore.h')
-rw-r--r-- | graphics/asymptote/drawgrestore.h | 35 |
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 |