Nitpick: ly:spanner-bound grob name slur -> spanner.
[lilypond.git] / lily / directional-element-interface.cc
blob98ea9b53f44a90d32cc3fb2f27cd5d4d584ff74b
1 /*
2 directional-element-interface.cc -- implement Directional_element
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
9 #include "directional-element-interface.hh"
10 #include "warn.hh"
11 #include "grob.hh"
13 Direction
14 get_grob_direction (Grob *me)
16 SCM d = me->get_property ("direction");
17 if (d == ly_symbol2scm ("calculation-in-progress"))
19 programming_error ("Grob direction requested while calculation in progress. ");
20 return UP;
22 if (!is_direction (d))
23 return CENTER;
25 return to_dir (d);
28 void
29 set_grob_direction (Grob *me, Direction d)
31 SCM sd = scm_from_int (d);
32 me->set_property ("direction", sd);