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 576 of file time_axis_view_item.cc.

{
      if (name_highlight) {
            if (height < NAME_HIGHLIGHT_THRESH) {
                  name_highlight->hide();
                  if (name_text) {
                        name_text->hide();
                  }
            } else {
                  name_highlight->show();
                  if (name_text) {
                        name_text->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_text) {
            name_text->property_y() = height+1 - NAME_Y_OFFSET;
            if (height < NAME_HIGHLIGHT_THRESH) {
                  name_text->property_fill_color_rgba() =  fill_color;
            }
            else {
                  name_text->property_fill_color_rgba() = label_color;
            }
      }

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

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


Generated by  Doxygen 1.6.0   Back to index