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