-rw-r--r-- | agg-plot/text.cpp | 7 |
diff --git a/agg-plot/text.cpp b/agg-plot/text.cpp index 04d6f137..a13e2126 100644 --- a/agg-plot/text.cpp +++ b/agg-plot/text.cpp @@ -29,4 +29,11 @@ namespace draw { m_stroke.approximation_scale(as); m_text.start_point (-m_hjustif * m_text_width, -m_vjustif * m_text_height); } + + void + text::bounding_box(double *x1, double *y1, double *x2, double *y2) + { + *x1 = *x2 = m_x; + *y1 = *y2 = m_y; + } } |