]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/molecule.hh
release: 0.1.22
[lilypond.git] / lily / include / molecule.hh
index 2eccfd3ee8b6cbf381f82736939eed4ae654307b..ddea093d0e455e42414caf290d1f4b041e06bd51 100644 (file)
@@ -1,38 +1,43 @@
+/*
+  molecule.hh -- declare Molecule
+
+  source file of the GNU LilyPond music typesetter
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
 #ifndef MOLECULE_HH
 #define MOLECULE_HH
 
 #include "lily-proto.hh"
 #include "plist.hh"
 #include "boxes.hh"
-
+#include "axes.hh"
+#include "direction.hh"
 
 /** a group of individually translated symbols. You can add molecules
     to the top, to the right, etc.  */
 struct Molecule {
-    Pointer_list<Atom*> ats;   // change to List<Atom>? 
+  Pointer_list<Atom*> ats;     // change to List<Atom>? 
 
-    /* *************** */
+  /* *************** */
     
-    Molecule() { }
-    Molecule(Atom const &a) { add(a) ;}
-
-    void add_right(const Molecule &m);
-    void add_left(const Molecule &m);
-    void add_top(const Molecule &m);
-    void add_bottom(const Molecule &m);
-    void add(Molecule const &m);
-    void translate(Offset);
-    void translate_y(Real);
-    void translate_x(Real);
-    void add(Atom const & a) ;
-    /// how big is #this#? 
-    Box extent() const;
-
-    String TeX_string() const;
-
-    Molecule(const Molecule&s);
-    void print() const;
+  Molecule() { }
+  Molecule (Atom const &a) { add (a) ;}
+
+  void add_at_edge (Axis a, Direction d, const Molecule &m);
+  
+  void add (Molecule const &m);
+  void translate (Offset);
+  void translate_axis (Real,Axis);
+  void add (Atom const & a) ;
+  /// how big is #this#? 
+  Box extent() const;
+
+  String TeX_string() const;
+
+  Molecule (const Molecule&s);
+  void print() const;
 private:
-    void operator=(const Molecule&);
+  void operator=(const Molecule&);
 };
 #endif