add Item::add_front()
[ardour.git] / libs / canvas / item.cc
index dc82245ecb3ccaa4a4484933c45a331220a90ab2..711743d9f1f759240f9a15f03404f4abed1f21b6 100644 (file)
@@ -867,6 +867,17 @@ Item::add (Item* i)
        _bounding_box_dirty = true;
 }
 
+void
+Item::add_front (Item* i)
+{
+       /* XXX should really notify canvas about this */
+
+       _items.push_front (i);
+       i->reparent (this);
+       invalidate_lut ();
+       _bounding_box_dirty = true;
+}
+
 void
 Item::remove (Item* i)
 {