]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/tuplet-bracket.hh
ccc2c22bfc769a597e78f35ed873d0164690613d
[lilypond.git] / lily / include / tuplet-bracket.hh
1 /*
2   tuplet-bracket.hh -- part of GNU LilyPond
3
4   (c) 1997--2007 Jan Nieuwenhuizen <janneke@gnu.org>
5 */
6
7 #ifndef Tuplet_bracket_HH
8 #define Tuplet_bracket_HH
9
10 #include "lily-proto.hh"
11 #include "std-vector.hh"
12 #include "grob-interface.hh"
13
14 class Tuplet_bracket
15 {
16 public:
17   DECLARE_SCHEME_CALLBACK (calc_direction, (SCM));
18   DECLARE_SCHEME_CALLBACK (calc_positions, (SCM));
19   DECLARE_SCHEME_CALLBACK (calc_control_points, (SCM));
20   DECLARE_SCHEME_CALLBACK (print, (SCM));
21   DECLARE_SCHEME_CALLBACK (calc_connect_to_neighbors, (SCM smob));
22   DECLARE_SCHEME_CALLBACK (calc_cross_staff, (SCM));
23   
24   DECLARE_GROB_INTERFACE();
25   static Grob* get_common_x (Spanner *);
26   static void add_tuplet_bracket (Grob *me, Grob *smaller_bracket);
27   static void get_bounds (Grob *, Grob **, Grob **);
28   static void add_column (Grob *me, Item *);
29   static void add_beam (Grob *me, Grob *);
30   static Grob *parallel_beam (Grob *me, vector<Grob*> const &cols, bool *equally_long);
31   static void calc_position_and_height (Grob *, Real *, Real *dy);
32   static Stencil make_bracket (Grob *me, Axis protusion_axis,
33                                Offset dz, Drul_array<Real> height,
34                                Interval gap, Drul_array<Real> widen,
35                                Drul_array<Real> shorten);
36   static Direction get_default_dir (Grob *);
37 };
38
39 #endif // Tuplet_bracket_HH
40