diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
commit | 3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch) | |
tree | 1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/drawlabel.h | |
parent | d99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff) |
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/drawlabel.h')
-rw-r--r-- | graphics/asymptote/drawlabel.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/graphics/asymptote/drawlabel.h b/graphics/asymptote/drawlabel.h index c16209bc51..e631f04a55 100644 --- a/graphics/asymptote/drawlabel.h +++ b/graphics/asymptote/drawlabel.h @@ -14,7 +14,7 @@ #include "transform.h" namespace camp { - + class drawLabel : public virtual drawElement { protected: string label,size; @@ -30,23 +30,23 @@ protected: pair texAlign; bbox Box; bool enabled; - + public: drawLabel(string label, string size, transform T, pair position, pair align, pen pentype, const string& key="") : drawElement(key), label(label), size(size), T(shiftless(T)), position(position), align(align), pentype(pentype), width(0.0), height(0.0), depth(0.0), havebounds(false), suppress(false), - enabled(false) {} - + enabled(false) {} + virtual ~drawLabel() {} void getbounds(iopipestream& tex, const string& texengine); - + void checkbounds(); - + void bounds(bbox& b, iopipestream&, boxvector&, bboxlist&); - + bool islabel() { return true; } @@ -54,30 +54,30 @@ public: bool write(texfile *out, const bbox&); drawElement *transformed(const transform& t); - - void labelwarning(const char *action); + + void labelwarning(const char *action); }; class drawLabelPath : public drawLabel, public drawPathPenBase { -private: +private: string justify; pair shift; public: drawLabelPath(string label, string size, path src, string justify, pair shift, pen pentype, - const string& key="") : + const string& key="") : drawLabel(label,size,identity,pair(0.0,0.0),pair(0.0,0.0),pentype,key), drawPathPenBase(src,pentype), justify(justify), shift(shift) {} - + virtual ~drawLabelPath() {} bool svg() {return true;} bool svgpng() {return true;} - + void bounds(bbox& b, iopipestream& tex, boxvector&, bboxlist&); - + bool write(texfile *out, const bbox&); - + drawElement *transformed(const transform& t); }; |