]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/tie.hh
efaa3f2949b21c3628cf31afa28ae78e65e26e0f
[lilypond.git] / lily / include / tie.hh
1 /*
2   tie.hh -- declare Tie
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #ifndef TIE_HH
10 #define TIE_HH
11
12 #include "lily-guile.hh"
13 #include "lily-proto.hh"
14
15
16 struct Tie_configuration
17 {
18   int position_;
19   Direction dir_;
20   Interval attachment_x_;
21   Real delta_y_;
22   
23   Tie_configuration ();
24   
25   static int compare (Tie_configuration const &a,
26                       Tie_configuration const &b);
27 };
28 INSTANTIATE_COMPARE (Tie_configuration, Tie_configuration::compare);
29
30 class Tie
31 {
32 public:
33   static void set_head (Grob *, Direction, Grob *head);
34   static bool has_interface (Grob *);
35   static void set_direction (Grob *);
36   static Grob *head (Grob *, Direction);
37   static int get_column_rank (Grob *, Direction);
38   static Real get_position (Grob *);
39   static Direction get_default_dir (Grob *);
40   static void get_configuration (Grob *, Grob **, Tie_configuration *);
41   static void set_control_points (Grob *, Grob **,Tie_configuration const&);
42   static void set_default_control_points (Grob *);
43   DECLARE_SCHEME_CALLBACK (print, (SCM));
44   DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM));
45   static int compare (Grob *const &s1,
46                       Grob *const &s2);
47   
48 };
49
50
51 #endif // TIE_HH