From: fred Date: Fri, 17 Apr 1998 18:27:49 +0000 (+0000) Subject: lilypond-0.1.57 X-Git-Tag: release/1.5.59~5966 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4df717107705fd2e38411bc7e384002312601131;p=lilypond.git lilypond-0.1.57 --- diff --git a/lily/direction.cc b/lily/direction.cc new file mode 100644 index 0000000000..a0e0e14a50 --- /dev/null +++ b/lily/direction.cc @@ -0,0 +1,25 @@ + +/* + direction.cc -- implement + + source file of the GNU LilyPond music typesetter + + (c) 1998 Han-Wen Nienhuys + + */ + +#include "direction.hh" + +String direction_str (Direction d, Axis a) +{ + if (!d) + return "center"; + if (a == Y_AXIS) + { + return d == UP ? "up" : "down"; + } + else if (a == X_AXIS) + { + return d == LEFT ? "left" : "right" ; + } +}