src/tracks/labeltrack/ui/LabelTrackView.cpp
// return true if the mouse is over text box, false otherwise
return true if the mouse is over text box, false otherwise
return true if the mouse is over text box false otherwise
bool LabelTrackView::OverTextBox(const LabelStruct *pLabel, int x, int y)
{
   if( (pLabel->xText-(mIconWidth/2) < x) &&
            (x<pLabel->xText+pLabel->width+(mIconWidth/2)) &&
            (abs(pLabel->y-y)<mIconHeight/2))
   {
      return true;
   }
   return false;
}
bool LabelTrackView :: OverTextBox ( const LabelStruct * pLabel , int x , int y ) { if ( ( pLabel -> xText - ( mIconWidth / 2 ) < x ) && ( x < pLabel -> xText + pLabel -> width + ( mIconWidth / 2 ) ) && ( abs ( pLabel -> y - y ) < mIconHeight / 2 ) ) { return true ; } return false ; }
return true if the mouse is over text box, false otherwise
return true if the mouse is over text box false otherwise