diff options
Diffstat (limited to 'Build/source/utils/asymptote/drawlayer.h')
-rw-r--r-- | Build/source/utils/asymptote/drawlayer.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/drawlayer.h b/Build/source/utils/asymptote/drawlayer.h new file mode 100644 index 00000000000..05876afdfd0 --- /dev/null +++ b/Build/source/utils/asymptote/drawlayer.h @@ -0,0 +1,42 @@ +/***** + * drawlayer.h + * John Bowman + * + * Start a new postscript/TeX layer in picture. + *****/ + +#ifndef DRAWLAYER_H +#define DRAWLAYER_H + +#include "drawelement.h" + +namespace camp { + +class drawLayer : public drawElement { +public: + drawLayer() {} + + virtual ~drawLayer() {} + + bool islayer() {return true;} +}; + +class drawNewPage : public drawLayer { +public: + drawNewPage() {} + + virtual ~drawNewPage() {} + + bool islabel() {return true;} + + bool write(texfile *out, const bbox&) { + out->verbatimline("\\newpage"); + return true; + } +}; + +} + +GC_DECLARE_PTRFREE(camp::drawLayer); + +#endif |