]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob.cc
Refactor pure-height calculations.
[lilypond.git] / lily / grob.cc
index 5047b35be0c0c337d45bddf338fdc49f7a5f0384..882808180c6f2509cd7c807b5d22fed795f8239e 100644 (file)
@@ -482,6 +482,19 @@ Grob::spanned_rank_interval () const
   return Interval_t<int> (-1, 0);
 }
 
+bool
+Grob::pure_is_visible (int start, int end) const
+{
+  return true;
+}
+
+/* Sort grobs according to their starting column. */
+bool
+Grob::less (Grob *g1, Grob *g2)
+{
+  return g1->spanned_rank_interval ()[LEFT] < g2->spanned_rank_interval ()[LEFT];
+}
+
 /****************************************************************
   REFPOINTS
 ****************************************************************/