blob: e5ab18e848581c5d3ea42b885d715c946f9e0c69 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
direction.cc -- implement Direction
source file of the GNU LilyPond music typesetter
(c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "direction.hh"
#include "string.hh"
String
direction_string (Direction d, Axis a)
{
String s ("center");
if (a == Y_AXIS)
{
s = ( d == UP ? "up" : "down");
}
else if (a == X_AXIS)
{
s = (d == LEFT ? "left" : "right" );
}
return s;
}
|