| 279 | } |
| 280 | |
| 281 | void CommonTrackInfo::SyncLockDrawFunction |
| 282 | ( TrackPanelDrawingContext &context, |
| 283 | const wxRect &rect, const Track *pTrack ) |
| 284 | { |
| 285 | auto dc = &context.dc; |
| 286 | bool syncLockSelected = |
| 287 | pTrack ? SyncLock::IsSyncLockSelected(*pTrack) : true; |
| 288 | |
| 289 | // Draw the sync-lock indicator if this track is in a sync-lock selected group. |
| 290 | if (syncLockSelected) |
| 291 | { |
| 292 | wxRect syncLockIconRect = rect; |
| 293 | |
| 294 | GetSyncLockHorizontalBounds( rect, syncLockIconRect ); |
| 295 | wxBitmap syncLockBitmap(theTheme.Image(bmpSyncLockIcon)); |
| 296 | // Icon is 12x12 and syncLockIconRect is 16x16. |
| 297 | dc->DrawBitmap(syncLockBitmap, |
| 298 | syncLockIconRect.x + 3, |
| 299 | syncLockIconRect.y + 2, |
| 300 | true); |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | void CommonTrackInfo::GetCloseBoxHorizontalBounds( const wxRect & rect, wxRect &dest ) |
| 305 | { |
nothing calls this directly
no test coverage detected