]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/stem-info.hh
Run grand-replace (issue 3765)
[lilypond.git] / lily / include / stem-info.hh
index 5fa4da6461e72a8e6a17e87dd9a7dccfc84f89d6..a4089c2af93cd6155cbeaa39c929532ceb3185e0 100644 (file)
@@ -1,26 +1,39 @@
 /*
-  stem-info.hh -- declare Stem_info
+  This file is part of LilyPond, the GNU music typesetter.
 
-  source file of the GNU LilyPond music typesetter
+  Copyright (C) 1997--2014 Jan Nieuwenhuizen <janneke@gnu.org>
 
-  (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
-*/
+  LilyPond is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  LilyPond is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
 
+  You should have received a copy of the GNU General Public License
+  along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
+*/
 
 #ifndef STEM_INFO_HH
 #define STEM_INFO_HH
 
 #include "real.hh"
+#include "direction.hh"
 
-struct Stem_info {
-  Real x;
-  int dir_;
-  Real idealy_f_;
-  Real miny_f_;
-  int beams_i_;
-
-  Stem_info();
-  Stem_info (Stem const *);
+/*
+  Parameters for a stem, (multiply with stemdirection, to get real values
+  for a downstem.)
+*/
+struct Stem_info
+{
+  Direction dir_;
+  Real ideal_y_;
+  Real shortest_y_;
+  Stem_info ();
+  void scale (Real);
 };
 
 #endif // STEM_INFO_HH