Definition at line 150 of file StringColumns.h. References mColumns. Referenced by MouseFunc(). 00151 { 00152 int posX = 0; 00153 for (int i=0; i<mColumns.size(); i++) 00154 { 00155 if (x>posX && x<posX+mColumns[i].width) 00156 return i; 00157 posX += mColumns[i].width; 00158 } 00159 return -1; 00160 }
|