| 175 | } |
| 176 | |
| 177 | void CanvasElement::SetStart(float start, bool preserveLength) |
| 178 | { |
| 179 | float end = 0; |
| 180 | if (!preserveLength) |
| 181 | end = GetEnd(); |
| 182 | start *= mCanvas->GetNumCols(); |
| 183 | mCol = int(start + .5f); |
| 184 | mOffset = start - mCol; |
| 185 | if (!preserveLength) |
| 186 | SetEnd(end); |
| 187 | } |
| 188 | |
| 189 | float CanvasElement::GetEnd() const |
| 190 | { |
no test coverage detected