]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/g-staff-side.cc
release: 1.1.38
[lilypond.git] / lily / g-staff-side.cc
index db1b29cd69dee8a84838c3529d17aa3bdbe6d711..4d74c166283821b48e5b45d53b6a501013db391f 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "g-staff-side.hh"
 #include "staff-symbol.hh"
+#include "debug.hh"
 
 G_staff_side_item::G_staff_side_item ()
 {
@@ -121,3 +122,32 @@ G_staff_side_item::do_add_processing ()
       add_support (staff_symbol_l ());
     }
 }
+
+Interval
+G_staff_side_item::do_height () const
+{
+  Interval i;
+  if (to_position_l_)
+    return to_position_l_->extent (Y_AXIS);
+  return i;
+}
+
+Interval
+G_staff_side_item::do_width () const
+{
+  Interval i;
+  if (to_position_l_)
+    return to_position_l_->extent (X_AXIS);
+  return i;
+}
+void
+G_staff_side_item::do_print () const
+{
+#ifndef NPRINT
+  if (to_position_l_)
+    DOUT << "positioning " << to_position_l_->name();
+
+  DOUT << "axis == " << axis_name_str (axis_)
+       << ", dir == " << to_str (dir_ );
+#endif
+}