4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
12 #include "lily-guile.hh"
13 #include "lily-proto.hh"
24 Real between_length_limit_;
30 class Tie_configuration
38 Interval attachment_x_;
43 void center_tie_vertically (Tie_details const &);
44 Bezier get_bezier (Tie_details const &) const;
45 Real height (Tie_details const&) const;
47 static int compare (Tie_configuration const &a,
48 Tie_configuration const &b);
49 static Real distance (Tie_configuration const &a,
50 Tie_configuration const &b);
53 INSTANTIATE_COMPARE (Tie_configuration, Tie_configuration::compare);
55 class Ties_configuration
58 Array<Tie_configuration> ties_;
66 static void set_head (Grob *, Direction, Grob *head);
67 static bool has_interface (Grob *);
68 static Grob *head (Grob *, Direction);
69 static int get_column_rank (Grob *, Direction);
70 static int get_position (Grob *);
71 static Direction get_default_dir (Grob *);
72 static void get_configuration (Grob *, Tie_configuration *,
73 Tie_formatting_problem const &,
76 static void set_control_points (Grob *, Grob *,
77 Tie_configuration const&,
79 static void set_default_control_points (Grob *);
80 DECLARE_SCHEME_CALLBACK (print, (SCM));
81 DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM));
82 DECLARE_SCHEME_CALLBACK (calc_direction, (SCM));
83 DECLARE_SCHEME_CALLBACK (calc_control_points, (SCM));
84 static int compare (Grob *const &s1,
87 static Interval get_default_attachments (Spanner *me, Grob *common, Real gap,
88 int *staff_position, bool *in_between,