Logo Search packages:      
Sourcecode: ardour version File versions

void TimeAxisViewItem::set_height ( double  height  )  [virtual]

Set the height of this item

Parameters:
h the new height

Definition at line 566 of file time_axis_view_item.cc.

{
      _height = height;

      if (name_highlight) {
            if (height < NAME_HIGHLIGHT_THRESH) {
                  name_highlight->hide();
            } else {
                  name_highlight->show(); 
            }

            if (height > NAME_HIGHLIGHT_SIZE) {
                  name_highlight->property_y1() = (double) height+1 - NAME_HIGHLIGHT_SIZE;
                  name_highlight->property_y2() = (double) height;
            } else {
                  /* it gets hidden now anyway */
                  //name_highlight->property_y1() = (double) 1.0;
                  //name_highlight->property_y2() = (double) height;
            }
      }

      if (name_pixbuf) {
            if (height < NAME_HIGHLIGHT_THRESH) {
                  name_pixbuf->hide();
            } else {
                  name_pixbuf->property_y() = height+1 - NAME_Y_OFFSET;
                  name_pixbuf->show();
            }
      }

      if (frame) {
            frame->property_y2() = height+1;
      }

      vestigial_frame->property_y2() = height+1;
}


Generated by  Doxygen 1.6.0   Back to index