X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftie.hh;h=6ca5d3da04039a4cd7de723a3f9f8e3ee69d8065;hb=3b7eb398f096a9291de36d7f8716c3cf43614a7f;hp=bb6066a53933e58b4d1cec0bdb2279aac5aae8dc;hpb=c2b0bbf77c6702079acdaa20e54e819728140899;p=lilypond.git diff --git a/lily/include/tie.hh b/lily/include/tie.hh index bb6066a539..6ca5d3da04 100644 --- a/lily/include/tie.hh +++ b/lily/include/tie.hh @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2005 Han-Wen Nienhuys + (c) 1997--2006 Han-Wen Nienhuys */ #ifndef TIE_HH @@ -11,40 +11,36 @@ #include "lily-guile.hh" #include "lily-proto.hh" +#include "skyline.hh" -struct Tie_configuration -{ - int position_; - Direction dir_; - Interval attachment_x_; - Real edge_y_; - - Tie_configuration () - { - dir_ = CENTER; - position_ = 0; - } - static int compare (Tie_configuration const &a, - Tie_configuration const &b); -}; class Tie { public: static void set_head (Grob *, Direction, Grob *head); - static void set_interface (Grob *); static bool has_interface (Grob *); - static void set_direction (Grob *); static Grob *head (Grob *, Direction); static int get_column_rank (Grob *, Direction); - static Real get_position (Grob *); + static int get_position (Grob *); static Direction get_default_dir (Grob *); - static SCM get_control_points (SCM); - static SCM get_configuration (SCM); + +#if 0 + static void get_configuration (Grob *, Tie_configuration *, + Tie_formatting_problem const &); +#endif + + static void set_control_points (Grob *, Grob *, + Tie_configuration const&, + Tie_details const&); + static void set_default_control_points (Grob *); DECLARE_SCHEME_CALLBACK (print, (SCM)); DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM)); + DECLARE_SCHEME_CALLBACK (calc_direction, (SCM)); + DECLARE_SCHEME_CALLBACK (calc_control_points, (SCM)); + static int compare (Grob *const &s1, + Grob *const &s2); };