MCPcopy Create free account
hub / github.com/audacity/audacity / SyncLockDrawFunction

Method SyncLockDrawFunction

src/tracks/ui/CommonTrackInfo.cpp:281–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void 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
304void CommonTrackInfo::GetCloseBoxHorizontalBounds( const wxRect & rect, wxRect &dest )
305{

Callers

nothing calls this directly

Calls 1

DrawBitmapMethod · 0.80

Tested by

no test coverage detected