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"
18 class Tie_configuration
27 Interval attachment_x_;
32 void center_tie_vertically (Tie_details const &);
33 Bezier get_transformed_bezier (Tie_details const &) const;
34 Bezier get_untransformed_bezier (Tie_details const &) const;
35 Real height (Tie_details const&) const;
37 static int compare (Tie_configuration const &a,
38 Tie_configuration const &b);
39 static Real distance (Tie_configuration const &a,
40 Tie_configuration const &b);
43 INSTANTIATE_COMPARE (Tie_configuration, Tie_configuration::compare);
45 class Ties_configuration
48 Array<Tie_configuration> ties_;
54 static void set_head (Grob *, Direction, Grob *head);
55 static bool has_interface (Grob *);
56 static Grob *head (Grob *, Direction);
57 static int get_column_rank (Grob *, Direction);
58 static int get_position (Grob *);
59 static Direction get_default_dir (Grob *);
60 static void get_configuration (Grob *, Tie_configuration *,
61 Tie_formatting_problem const &);
62 static void set_control_points (Grob *, Grob *,
63 Tie_configuration const&,
65 static void set_default_control_points (Grob *);
66 DECLARE_SCHEME_CALLBACK (print, (SCM));
67 DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM));
68 DECLARE_SCHEME_CALLBACK (calc_direction, (SCM));
69 DECLARE_SCHEME_CALLBACK (calc_control_points, (SCM));
70 static int compare (Grob *const &s1,
73 static Interval get_default_attachments (Spanner *me, Grob *common, Real gap,
74 int *staff_position, bool *in_between,