From 4df717107705fd2e38411bc7e384002312601131 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 17 Apr 1998 18:27:49 +0000 Subject: [PATCH] lilypond-0.1.57 --- lily/direction.cc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lily/direction.cc 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" ; + } +} -- 2.39.5