gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/text.cpp')
-rw-r--r--agg-plot/text.cpp 7
1 files changed, 7 insertions, 0 deletions
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;
+ }
}
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月17日 19:32:42 +0000

AltStyle によって変換されたページ (->オリジナル) /