]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/script-interface.hh
157ce77bf7ddb7273b05c88bcf6f3ff43406fcc8
[lilypond.git] / lily / include / script-interface.hh
1 /*
2   script-interface.hh --
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef SCRIPT_INTERFACE_HH
10 #define SCRIPT_INTERFACE_HH
11
12 #include "lily-proto.hh"
13 #include "grob-interface.hh"
14
15 /**
16    Articulation marks (and the like) that are attached to notes/stems.
17    Needs support from Staff_side for proper operation.  Staff_side
18    handles the positioning.
19 */
20 class Script_interface
21 {
22 public:
23   static Stencil get_stencil (Grob *, Direction d);
24   DECLARE_GROB_INTERFACE();
25   DECLARE_SCHEME_CALLBACK (print, (SCM));
26   DECLARE_SCHEME_CALLBACK (calc_direction, (SCM));
27   DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM));
28   DECLARE_SCHEME_CALLBACK (calc_cross_staff, (SCM));
29 };
30
31 void make_script_from_event (Grob *p,  Context *tg,
32                              SCM type, int index);
33
34 #endif /* SCRIPT_INTERFACE_HH */
35