]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/align-interface.hh
* lily/lookup.cc (triangle): rewrite, obviating symmetric_x_triangle().
[lilypond.git] / lily / include / align-interface.hh
index ad9d51f8761de368e5442a93661020b9a1d1f9ee..457629455fff9750491a20be6aa07c5814e5e105 100644 (file)
@@ -3,51 +3,31 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 2000--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
 #ifndef ALIGN_INTERFACE_HH
 #define ALIGN_INTERFACE_HH
 
-#include "axes.hh"
 #include "lily-proto.hh"
+#include "lily-guile.hh"
+
+struct Align_interface {
+  DECLARE_SCHEME_CALLBACK (alignment_callback, (SCM element, SCM axis));
+  DECLARE_SCHEME_CALLBACK (fixed_distance_alignment_callback, (SCM element, SCM axis));
+  static void align_to_fixed_distance (Grob*,Axis a);
+  static void align_elements_to_extents (Grob*,Axis a);
+  static void set_axis (Grob*,Axis);
+  static Axis axis (Grob*) ;
+  static void add_element (Grob*,Grob*, SCM callback);
+  static int get_count (Grob*,Grob*);
+
+  static bool has_interface (Grob*);
+};
 
-/*
-  TODO: rewrite this comment.
-  
-  
-  Order elements top to bottom/left to right/right to left etc..
-
-  TODO: implement padding.
-
-  document usage of this.
-
-
-
-  *******
-  
-  element properties
+Grob *find_fixed_alignment_parent  (Grob *g);
 
-  stacking-dir
-  
-  Which side to align?  -1: left side, 0: centered (around
-     center_l_ if not nil, or around center of width), 1: right side
- */
-struct Align_interface  {
-  Score_element * elt_l_;
-  
-  Align_interface (Score_element const*);
-  static Real alignment_callback (Dimension_cache const *);
-  void do_side_processing (Axis a);
-  void set_axis (Axis);
-  Axis axis () const;
-  void add_element (Score_element*);
-  int get_count (Score_element*)const;
-  void set_interface ();
-  bool has_interface_b ();
-  static Real center_on_element (Dimension_cache const *c);
-};
 
 #endif /* ALIGN_INTERFACE_HH */