Logo Search packages:      
Sourcecode: ardour version File versions

TimeAxisView * TimeAxisView::covers_y_position ( double  y  )  [inherited]

Returns a TimeAxisView* if this object covers y, or one of its children does. If the covering object is a child axis, then the child is returned. Returns 0 otherwise.

Definition at line 1143 of file time_axis_view.cc.

References TimeAxisView::covers_y_position().

Referenced by TimeAxisView::covers_y_position().

{
      if (hidden()) {
            return 0;
      }

      if (y_position <= y && y < (y_position + height)) {
            return this;
      }

      for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
            TimeAxisView* tv;

            if ((tv = (*i)->covers_y_position (y)) != 0) {
                  return tv;
            }
      }

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index