]> git.donarmstrong.com Git - lilypond.git/blob - flower/direction.cc
* The grand 2005-2006 replace.
[lilypond.git] / flower / direction.cc
1 /*
2   direction.cc --  implement Direction
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1998--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "direction.hh"
10
11 #include "string.hh"
12
13 String
14 direction_string (Direction d, Axis a)
15 {
16   String s ("center");
17   if (a == Y_AXIS)
18     s = (d == UP ? "up" : "down");
19   else if (a == X_AXIS)
20     s = (d == LEFT ? "left" : "right");
21   return s;
22 }