]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/atom.hh
f9621382bc3145370371b23ebe53808b1e53244e
[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 "lily-guile.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 public:
21   // urg, only used as a temp buffer
22   String str_;
23   String font_;
24   SCM lambda_;
25   Box dim_;
26
27   Offset offset () const;
28   String str() const;           // for printing.
29   Atom (String, Box);
30   Atom ();
31   void translate (Offset o);
32   void translate_axis (Real r,Axis a);
33   /// how big is #this#?
34   Box extent() const;
35   void print() const;
36   bool check_infinity_b () const;
37   bool empty() const;
38 };
39 #endif