]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/atom.hh
release: 1.0.17
[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 "string.hh"
13 #include "box.hh"
14 #include "lily-proto.hh"
15
16
17 /// a symbol which can be translated, and freely copied
18 class Atom {
19   Offset off_;
20 public:
21   String str_;
22   String font_;
23   Box dim_;
24
25   Offset offset () const;
26   String str() const;           // for printing.
27   Atom (String, Box);
28   Atom ();
29   void translate (Offset o);
30   void translate_axis (Real r,Axis a);
31   /// how big is #this#?
32   Box extent() const;
33   void print() const;
34   bool check_infinity_b () const;
35   bool empty() const;
36 };
37 #endif