]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/atom.hh
release: 1.1.1
[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--1998 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
17 /// a symbol which can be translated, and freely copied
18 class Atom {
19   Offset off_;
20
21   
22 public:
23   Protected_scm lambda_;
24   Score_element * origin_l_;
25
26   // urg, only used as a temp buffer
27   String str_;
28   String font_;
29   Box dim_;
30
31   Offset offset () const;
32   String str() const;           // for printing.
33   Atom (String, Box);
34   Atom ();
35   void translate (Offset o);
36   void translate_axis (Real r,Axis a);
37   /// how big is #this#?
38   Box extent() const;
39   void print() const;
40   bool check_infinity_b () const;
41   bool empty() const;
42 };
43 #endif