]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/script-interface.hh
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[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--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef SCRIPT_INTERFACE_HH
10 #define SCRIPT_INTERFACE_HH
11
12 #include "lily-guile.hh"
13 #include "lily-proto.hh"
14 #include "grob-interface.hh"
15
16 /**
17    Articulation marks (and the like) that are attached to notes/stems.
18    Needs support from Staff_side for proper operation.  Staff_side
19    handles the positioning.
20 */
21 class Script_interface
22 {
23 public:
24   static Stencil get_stencil (Grob *, Direction d);
25   DECLARE_GROB_INTERFACE();
26   DECLARE_SCHEME_CALLBACK (print, (SCM));
27   DECLARE_SCHEME_CALLBACK (calc_direction, (SCM));
28 };
29
30 void make_script_from_event (Grob *p,  Context *tg,
31                              SCM type, int index);
32
33 #endif /* SCRIPT_INTERFACE_HH */
34