OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 2008--2012 Han-Wen Nienhuys <hanwen@lilypond.org> | 4 Copyright (C) 2008--2012 Han-Wen Nienhuys <hanwen@lilypond.org> |
5 | 5 |
6 | 6 |
7 LilyPond is free software: you can redistribute it and/or modify | 7 LilyPond is free software: you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation, either version 3 of the License, or | 9 the Free Software Foundation, either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void | 69 void |
70 Skyline_pair::print () const | 70 Skyline_pair::print () const |
71 { | 71 { |
72 skylines_[UP].print (); | 72 skylines_[UP].print (); |
73 skylines_[DOWN].print (); | 73 skylines_[DOWN].print (); |
74 } | 74 } |
75 | 75 |
76 void | 76 void |
77 Skyline_pair::print_points () const | 77 Skyline_pair::print_points () const |
78 { | 78 { |
79 skylines_[UP].print (); | 79 skylines_[UP].print_points (); |
80 skylines_[DOWN].print (); | 80 skylines_[DOWN].print_points (); |
81 } | 81 } |
82 | 82 |
83 bool | 83 bool |
84 Skyline_pair::is_empty () const | 84 Skyline_pair::is_empty () const |
85 { | 85 { |
86 return skylines_[UP].is_empty () | 86 return skylines_[UP].is_empty () |
87 && skylines_[DOWN].is_empty (); | 87 && skylines_[DOWN].is_empty (); |
88 } | 88 } |
89 | 89 |
90 Skyline & | 90 Skyline & |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 Direction dir = robust_scm2dir (dir_scm, UP); | 127 Direction dir = robust_scm2dir (dir_scm, UP); |
128 | 128 |
129 if (dir == CENTER) | 129 if (dir == CENTER) |
130 { | 130 { |
131 warning (_f ("direction must not be CENTER in ly:skyline-pair::skyline")); | 131 warning (_f ("direction must not be CENTER in ly:skyline-pair::skyline")); |
132 dir = UP; | 132 dir = UP; |
133 } | 133 } |
134 | 134 |
135 return (*sp)[dir].smobbed_copy (); | 135 return (*sp)[dir].smobbed_copy (); |
136 } | 136 } |
OLD | NEW |