]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/atom.hh
patch::: 1.3.27.jcn1: om terug te sturen
[lilypond.git] / lily / include / atom.hh
1 /*
2   atom.hh -- declare Atom
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #ifndef ATOM_HH
10 #define ATOM_HH
11
12 #include "protected-scm.hh"
13 #include "string.hh"
14 #include "box.hh"
15 #include "lily-proto.hh"
16 #include "lily-guile.hh"
17 #include "smobs.hh"
18
19 /**
20    Atoms should only be created on the heap, ie. with
21    "new Atom"
22  */
23 class Atom {
24   Offset off_;
25
26   friend class Molecule;
27   friend class Paper_outputter;
28 public:
29   Atom (SCM s);
30   Atom (Atom const&);
31   
32   DECLARE_SMOBS;
33
34   /*
35     SCM expression that (when evaluated) gives a TeX string
36 representing a musical notation symbol.  */
37   SCM func_;
38   void fontify (Font_metric*);
39 };
40
41 Atom* unsmob_atom (SCM);
42
43 #endif