summaryrefslogtreecommitdiff
path: root/gtk2_ardour/hit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/hit.cc')
-rw-r--r--gtk2_ardour/hit.cc18
1 files changed, 15 insertions, 3 deletions
diff --git a/gtk2_ardour/hit.cc b/gtk2_ardour/hit.cc
index 62d0b0baf6..42117f9add 100644
--- a/gtk2_ardour/hit.cc
+++ b/gtk2_ardour/hit.cc
@@ -76,8 +76,8 @@ Hit::hide ()
_polygon->hide ();
}
-void
-Hit::set_height (Distance height)
+Points
+Hit::points(Distance height)
{
/* draw a diamond */
@@ -89,7 +89,19 @@ Hit::set_height (Distance height)
p.push_back (Duple (+half_height, 0)); // right, middle
p.push_back (Duple (0, +half_height)); // bottom
- _polygon->set (p);
+ return p;
+}
+
+void
+Hit::set_height (Distance height)
+{
+ _polygon->set (points(height));
+}
+
+Duple
+Hit::position ()
+{
+ return _polygon->position ();
}
void