]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-column.cc
class-ify bezier term cache
[lilypond.git] / lily / note-column.cc
index ba8ebd6fd8c700fbe4d1fd28160631ac478068c6..146b3b06545c9eecf3c6b1fd691f34b3ddcd22b8 100644 (file)
@@ -34,15 +34,15 @@ Note_column::has_rests (Grob *me)
   return unsmob_grob (me->get_object ("rest"));
 }
 
-int
-Note_column::shift_compare (Grob *const &p1, Grob *const &p2)
+bool
+Note_column::shift_less (Grob *const &p1, Grob *const &p2)
 {
   SCM s1 = p1->get_property ("horizontal-shift");
   SCM s2 = p2->get_property ("horizontal-shift");
 
   int h1 = (scm_is_number (s1)) ? scm_to_int (s1) : 0;
   int h2 = (scm_is_number (s2)) ? scm_to_int (s2) : 0;
-  return h1 - h2;
+  return h1 < h2;
 }
 
 Item *
@@ -188,4 +188,14 @@ Note_column::arpeggio (Grob *me)
 
 ADD_INTERFACE (Note_column, "note-column-interface",
               "Stem and noteheads combined",
-              "arpeggio note-heads rest-collision rest horizontal-shift stem accidentals force-hshift");
+
+              /* properties */
+              "accidentals "
+              "arpeggio "
+              "force-hshift "
+              "horizontal-shift "
+              "note-heads "
+              "rest "
+              "rest-collision "
+              "stem "
+              );