]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/slur.hh
patch::: 1.3.96.jcn9
[lilypond.git] / lily / include / slur.hh
1 /*
2   slur.hh -- declare Slur
3
4   (c) 1996--2000 Han-Wen Nienhuys
5 */
6
7 #ifndef SLUR_HH
8 #define SLUR_HH
9
10 #include "lily-guile.hh"
11 #include "lily-proto.hh"
12 #include "rod.hh"
13
14 /**
15 */
16 class Slur
17 {
18 public:
19   static void add_column (Score_element *me, Score_element *col);
20   DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
21   static void set_interface (Score_element*);
22   static bool  has_interface (Score_element*);
23   static Array<Offset> get_encompass_offset_arr (Score_element *me);
24   static Bezier get_curve (Score_element *me);
25   static Direction get_default_dir (Score_element *me);
26   DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM));
27   DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM ));
28
29 private:  
30   static Real get_first_notecolumn_y (Score_element *me, Direction dir);
31   static Offset broken_trend_offset (Score_element *me, Direction dir);
32   static Offset get_attachment (Score_element *me,Direction dir, Score_element **common);
33   static void de_uglyfy (Score_element *me,Slur_bezier_bow* bb, Real default_height);
34   static void set_extremities (Score_element *me);
35   static void set_control_points (Score_element *me);
36   static void check_slope (Score_element *me);
37   static Offset encompass_offset (Score_element *me, Score_element *col, Score_element **common);
38 };
39
40 #endif // SLUR_HH
41
42