| 549 | } |
| 550 | |
| 551 | void PlaySequencer::Resize(float w, float h) |
| 552 | { |
| 553 | w = MAX(w - extraW, 219); |
| 554 | h = MAX(h - extraH, 111); |
| 555 | SetGridSize(w, h); |
| 556 | |
| 557 | ofRectangle gridRect = mGrid->GetRect(true); |
| 558 | for (int i = 0; i < (int)mLanes.size(); ++i) |
| 559 | { |
| 560 | ofVec2f cellPos = mGrid->GetCellPosition(mGrid->GetCols() - 1, i) + mGrid->GetPosition(true); |
| 561 | mLanes[i].mMuteOrEraseCheckbox->SetPosition(gridRect.getMaxX() + 3, cellPos.y + 1); |
| 562 | mLanes[i].mMuteOrEraseCheckbox->SetBoxSize(MAX(10, mGrid->GetHeight() / mLanes.size())); |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | void PlaySequencer::SetGridSize(float w, float h) |
| 567 | { |
nothing calls this directly
no test coverage detected