]> git.donarmstrong.com Git - lilypond.git/blob - flower/direction.cc
* configure.in: Test for and accept lmodern if EC fonts not found.
[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--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #include "direction.hh"
11
12 #include "string.hh"
13
14 String
15 direction_string (Direction d, Axis a)
16 {
17   String s ("center");
18   if (a == Y_AXIS)
19     {
20        s = ( d == UP ? "up" : "down");
21     }
22   else if (a == X_AXIS)
23     {
24       s = (d == LEFT ? "left" : "right" );
25     }
26   return s;
27 }