]> git.donarmstrong.com Git - lilypond.git/blob - lily/direction.cc
release: 0.1.58
[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   String s("center");
16   if (a == Y_AXIS)
17     {
18        s =( d == UP ? "up" : "down");
19     }
20   else if (a == X_AXIS)
21     {
22       s = (d == LEFT ? "left" : "right" );
23     }
24   return s;
25 }