]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/tie.hh
* lily/tie.cc: remove minimum-length
[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 edge_y_;
22   
23   Tie_configuration ()
24   {
25     dir_ = CENTER;
26     position_ = 0;
27   }
28   
29   static int compare (Tie_configuration const &a,
30                       Tie_configuration const &b);
31 };
32
33 class Tie
34 {
35 public:
36   static void set_head (Grob *, Direction, Grob *head);
37   static void set_interface (Grob *);
38   static bool has_interface (Grob *);
39   static void set_direction (Grob *);
40   static Grob *head (Grob *, Direction);
41   static int get_column_rank (Grob *, Direction);
42   static Real get_position (Grob *);
43   static Direction get_default_dir (Grob *);
44   static SCM get_control_points (SCM);
45   static SCM get_configuration (SCM);
46   DECLARE_SCHEME_CALLBACK (print, (SCM));
47   DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM));
48 };
49
50
51 #endif // TIE_HH