]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/text-item.cc
* lily/text-item.cc (text_to_molecule): new function
[lilypond.git] / lily / text-item.cc
index c84ee7e7f0509dcf10cf5831eb4eafdde28fefa9..47a7426c27cb0e07755fa8122c1f8e3fbaee71fb 100644 (file)
@@ -59,7 +59,18 @@ Text_item::text2molecule (Grob *me, SCM text, SCM alist_chain)
     }
   return Molecule ();
 }
-            
+
+
+MAKE_SCHEME_CALLBACK(Text_item,text_to_molecule,3);
+SCM
+Text_item::text_to_molecule (SCM grob, SCM props, SCM markup)
+{
+  Grob *me = unsmob_grob (grob);
+  
+  return Text_item::text2molecule (me, markup, props).smobbed_copy();
+}
+
+
 Molecule
 Text_item::string2molecule (Grob *me, SCM text, SCM alist_chain)
 {