]> git.donarmstrong.com Git - lilypond.git/blob - lily/directional-element-interface.cc
* lily/main.cc (setup_guile_env): new function. Set GC min_yields
[lilypond.git] / lily / directional-element-interface.cc
1 /*
2   directional-element-interface.cc -- implement Directional_element
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1999--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "directional-element-interface.hh"
10
11 Direction
12 get_grob_direction (Grob *me)
13 {
14   SCM d = me->get_property ("direction");
15   if (!is_direction (d))
16     return CENTER;
17
18   return to_dir (d);
19 }
20
21 void
22 set_grob_direction (Grob *me, Direction d)
23 {
24   SCM sd = scm_from_int (d);
25   me->set_property ("direction", sd);
26 }