Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
Track::DuplicateOptions Struct Reference

Choices when duplicating a track. More...

#include <Track.h>

Public Member Functions

 DuplicateOptions ()
 
DuplicateOptions ShallowCopyAttachments () &&
 
DuplicateOptions Backup () &&
 

Public Attributes

bool shallowCopyAttachments
 if true, then share AttachedTrackObjects More...
 
bool backup
 passed to Track::Clone() More...
 

Detailed Description

Choices when duplicating a track.

Definition at line 271 of file Track.h.

Constructor & Destructor Documentation

◆ DuplicateOptions()

Track::DuplicateOptions::DuplicateOptions ( )
inline

Definition at line 272 of file Track.h.

273 : shallowCopyAttachments{ false }
274 , backup{ false }
275 {}
bool shallowCopyAttachments
if true, then share AttachedTrackObjects
Definition: Track.h:278
bool backup
passed to Track::Clone()
Definition: Track.h:281

Member Function Documentation

◆ Backup()

DuplicateOptions Track::DuplicateOptions::Backup ( ) &&
inline

Definition at line 288 of file Track.h.

289 { backup = true; return std::move(*this); }

Referenced by ProjectFileManager::DoSave(), and ProjectFileManager::ReadProjectFile().

Here is the caller graph for this function:

◆ ShallowCopyAttachments()

DuplicateOptions Track::DuplicateOptions::ShallowCopyAttachments ( ) &&
inline

Definition at line 284 of file Track.h.

285 { shallowCopyAttachments = true; return std::move(*this); }

Referenced by PendingTracks::RegisterPendingChangedTrack().

Here is the caller graph for this function:

Member Data Documentation

◆ backup

bool Track::DuplicateOptions::backup

passed to Track::Clone()

Definition at line 281 of file Track.h.

◆ shallowCopyAttachments

bool Track::DuplicateOptions::shallowCopyAttachments

if true, then share AttachedTrackObjects

Definition at line 278 of file Track.h.


The documentation for this struct was generated from the following file: