]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/rhythmic-head.cc
release: 1.3.62
[lilypond.git] / lily / rhythmic-head.cc
index a96a750f74ba515ade874325a7263bb4b72a8dd6..b6a83b6d438ca5a33b91d0ebaebff7874ba391f5 100644 (file)
@@ -13,7 +13,6 @@
 #include "lookup.hh"
 #include "rest.hh"
 #include "dots.hh"
-#include "axis-group-element.hh"
 #include "paper-score.hh"
 #include "stem.hh"
 #include "staff-symbol-referencer.hh"
@@ -22,7 +21,7 @@
 Dots*
 Rhythmic_head::dots_l () const
 {
-  SCM s = get_elt_property ("dot");
+  SCM s = get_elt_pointer ("dot");
   return dynamic_cast<Dots*> (unsmob_element (s));
 }
 
@@ -37,7 +36,7 @@ Rhythmic_head::balltype_i () const
 Stem*
 Rhythmic_head::stem_l () const
 {
-  SCM s = get_elt_property ("stem");
+  SCM s = get_elt_pointer ("stem");
   return dynamic_cast<Stem*> (unsmob_element (s));
 }
 
@@ -48,8 +47,9 @@ Rhythmic_head::dot_count () const
     ? gh_scm2int (dots_l ()->get_elt_property ("dot-count")) : 0;
 }
   
-void
-Rhythmic_head::do_post_processing ()
+GLUE_SCORE_ELEMENT(Rhythmic_head,after_line_breaking);
+SCM
+Rhythmic_head::member_after_line_breaking ()
 {
   if (Dots *d = dots_l ())
     {
@@ -57,14 +57,20 @@ Rhythmic_head::do_post_processing ()
       Staff_symbol_referencer_interface me (d);      
       si.set_position(int (me.position_f ()));
     }
+
+  return SCM_UNDEFINED;
 }
 
 
 void
 Rhythmic_head::add_dots (Dots *dot_l)
 {
-  set_elt_property ("dot", dot_l->self_scm_);
+  set_elt_pointer ("dot", dot_l->self_scm_);
   dot_l->add_dependency (this);  
 }
 
 
+Rhythmic_head::Rhythmic_head (SCM s)
+  : Item (s)
+{
+}