]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-head.hh
6155dd7dc6513a4bf4cda1c759282dc38e24d2c1
[lilypond.git] / lily / include / note-head.hh
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 1996--2012 Han-Wen Nienhuys
5
6   LilyPond is free software: you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation, either version 3 of the License, or
9   (at your option) any later version.
10
11   LilyPond is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef NOTEHEAD_HH
21 #define NOTEHEAD_HH
22
23 #include "stencil.hh"
24 #include "grob-interface.hh"
25
26 class Note_head
27 {
28 public:
29   DECLARE_SCHEME_CALLBACK (print, (SCM));
30   DECLARE_SCHEME_CALLBACK (brew_ez_stencil, (SCM));
31   DECLARE_SCHEME_CALLBACK (stem_x_shift, (SCM));
32   DECLARE_SCHEME_CALLBACK (calc_stem_attachment, (SCM));
33   DECLARE_SCHEME_CALLBACK (include_ledger_line_height, (SCM));
34   DECLARE_GROB_INTERFACE ();
35
36   static Real stem_attachment_coordinate (Grob *, Axis a);
37   static int get_balltype (Grob *);
38
39   static Offset get_stem_attachment (Font_metric *, const string&);
40 };
41 #endif // NOTEHEAD_HH
42