]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/tuplet-bracket.hh
''
[lilypond.git] / lily / include / tuplet-bracket.hh
1 /*
2   tuplet-bracket.hh -- part of GNU LilyPond
3
4   (c)  1997--2002 Jan Nieuwenhuizen <janneke@gnu.org>
5 */
6
7 #ifndef Tuplet_bracket_HH
8 #define Tuplet_bracket_HH
9
10 #include "lily-guile.hh"
11
12 /*
13
14     TODO: quantise, we don't want to collide with staff lines.
15  (or should we be above staff?)
16
17   todo: handle breaking elegantly.
18 */
19 class Tuplet_bracket
20 {
21 public:
22   DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
23   static bool has_interface (Grob*);
24
25   static void add_column (Grob*me,Item*);
26   static void add_beam (Grob*me,Grob*);
27   static Grob *parallel_beam (Grob *me, Link_array<Grob> cols, bool *equally_long);
28   static void calc_dy (Grob*,Real *) ;
29   static void calc_position_and_height (Grob*,Real*,Real *dy);
30   
31   DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM ));
32
33   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM ));
34   static Molecule make_bracket (Axis protusion_axis,
35                                 Real dx, Real dy, Real thick, Real left_height,
36                                 Real right_height, Real gap, Real left_widen,
37                                 Real right_widen, Real left_shorten, 
38                                 Real right_shorten);
39   static Direction get_default_dir (Grob*);
40 };
41
42 #endif // Tuplet_bracket_HH
43