2 directional-element.cc -- implement Directional_element
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "directional-element-interface.hh"
16 Directional_element_interface::has_interface (Grob
*me
)
18 return ly_dir_p (me
->get_grob_property ("direction"));
22 Directional_element_interface::get (Grob
*me
)
25 SCM d
= me
->get_grob_property ("direction");
33 Directional_element_interface::set (Grob
*me
, Direction d
)
35 SCM sd
= gh_int2scm (d
);
38 Vain attempt to save some conses.
40 if (me
->get_grob_property ("direction") != sd
)
41 me
->set_grob_property ("direction", sd
);