2 directional-element.cc -- implement Directional_element
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "directional-element-interface.hh"
13 Directional_element_interface::Directional_element_interface (Score_element
const *s
)
15 elt_l_
= (Score_element
*)s
;
19 Directional_element_interface::has_interface_b () const
21 return isdir_b (elt_l_
->get_elt_property ("direction"));
28 Directional_element_interface::get () const
31 SCM d
= elt_l_
->get_elt_property ("direction");
39 Directional_element_interface::set (Direction d
)
41 elt_l_
->set_elt_property ("direction", gh_int2scm (d
));
44 Directional_element_interface
45 directional_element (Score_element
const*s
)