lilypond-1.3.12
[lilypond.git] / lily / directional-element.cc
blob83a4aaecb5d0b9a1e8e261b310c8a8ddf8d9e40e
1 /*
2 directional-element.cc -- implement Directional_element
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "directional-element.hh"
13 Directional_element::Directional_element ()
17 Direction
18 Directional_element::get_direction () const
20 // return dir_;
21 SCM d= get_elt_property ("direction");
22 if (!isdir_b(d))
23 return CENTER;
25 return to_dir (d);
28 void
29 Directional_element::set_direction (Direction d)
31 set_elt_property ("direction", gh_int2scm (d));