LEFT | RIGHT |
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) 1998--2012 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1998--2012 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 dim.set_minimum_height (min_h); | 294 dim.set_minimum_height (min_h); |
295 | 295 |
296 if (include_staff) | 296 if (include_staff) |
297 { | 297 { |
298 Interval staff_extents; | 298 Interval staff_extents; |
299 common[Y_AXIS] = staff_symbol->common_refpoint (common[Y_AXIS], Y_AXIS); | 299 common[Y_AXIS] = staff_symbol->common_refpoint (common[Y_AXIS], Y_AXIS); |
300 staff_extents = staff_symbol->maybe_pure_extent (common[Y_AXIS], Y_AXIS, p
ure, start, end); | 300 staff_extents = staff_symbol->maybe_pure_extent (common[Y_AXIS], Y_AXIS, p
ure, start, end); |
301 dim.set_minimum_height (minmax (dir, min_h, staff_extents[dir])); | 301 dim.set_minimum_height (minmax (dir, min_h, staff_extents[dir])); |
302 } | 302 } |
303 | 303 |
304 Real dist = dim.distance (my_dim); | 304 Real dist = dim.distance (my_dim, 0.1); // 0.1 m4g1c value...fix... |
305 Real total_off = !isinf (dist) ? dir * dist : 0.0; | 305 Real total_off = !isinf (dist) ? dir * dist : 0.0; |
306 | 306 |
307 return finish_offset (me, dir, total_off, current_offset); | 307 return finish_offset (me, dir, total_off, current_offset); |
308 } | 308 } |
309 | 309 |
310 MAKE_SCHEME_CALLBACK (Side_position_interface, y_aligned_on_support_refpoints, 1
); | 310 MAKE_SCHEME_CALLBACK (Side_position_interface, y_aligned_on_support_refpoints, 1
); |
311 SCM | 311 SCM |
312 Side_position_interface::y_aligned_on_support_refpoints (SCM smob) | 312 Side_position_interface::y_aligned_on_support_refpoints (SCM smob) |
313 { | 313 { |
314 return general_side_position (unsmob_grob (smob), Y_AXIS, false, false, false,
0, 0, 0); | 314 return general_side_position (unsmob_grob (smob), Y_AXIS, false, false, false,
0, 0, 0); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 "direction " | 527 "direction " |
528 "minimum-space " | 528 "minimum-space " |
529 "padding " | 529 "padding " |
530 "quantize-position " | 530 "quantize-position " |
531 "side-axis " | 531 "side-axis " |
532 "side-support-elements " | 532 "side-support-elements " |
533 "slur-padding " | 533 "slur-padding " |
534 "staff-padding " | 534 "staff-padding " |
535 "use-skylines " | 535 "use-skylines " |
536 ); | 536 ); |
LEFT | RIGHT |