]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/molecule.hh
f8edc37c2520b6fa1b1c731eda0949848f35b905
[lilypond.git] / lily / include / molecule.hh
1 /*
2   molecule.hh -- declare Molecule
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8 #ifndef MOLECULE_HH
9 #define MOLECULE_HH
10
11 #include "lily-proto.hh"
12 #include "plist.hh"
13 #include "box.hh"
14 #include "axes.hh"
15 #include "direction.hh"
16
17 /** a group of individually translated symbols. You can add molecules
18     to the top, to the right, etc.  */
19 struct Molecule {
20   Pointer_list<Atom*> atoms_;   // change to List<Atom>? 
21
22   /* *************** */
23     
24   Molecule() { }
25   Molecule (Atom const &a);
26
27   void add_at_edge (Axis a, Direction d, const Molecule &m);
28   
29   void add_molecule (Molecule const &m);
30   void translate (Offset);
31   void translate_axis (Real,Axis);
32   void add_atom (Atom const & a) ;
33   /// how big is #this#? 
34   Box extent() const;
35
36
37   Molecule (const Molecule&s);
38   void print() const;
39 private:
40   void operator=(const Molecule&);
41 };
42 #endif