Audacity 3.2.0
Public Types | Public Member Functions | Public Attributes | List of all members
LabelTrackEvent Struct Reference

#include <LabelTrack.h>

Collaboration diagram for LabelTrackEvent:
[legend]

Public Types

enum  Type { Addition , Deletion , Permutation , Selection }
 

Public Member Functions

 LabelTrackEvent (Type type, const std::shared_ptr< LabelTrack > &pTrack, const wxString &title, int formerPosition, int presentPosition)
 

Public Attributes

enum LabelTrackEvent::Type type
 
const std::weak_ptr< TrackmpTrack
 
wxString mTitle
 
int mFormerPosition
 
int mPresentPosition
 

Detailed Description

Definition at line 213 of file LabelTrack.h.

Member Enumeration Documentation

◆ Type

Enumerator
Addition 
Deletion 
Permutation 
Selection 

Definition at line 215 of file LabelTrack.h.

215 {
216 Addition,
217 Deletion,
219 Selection,
220 } type;
enum LabelTrackEvent::Type type

Constructor & Destructor Documentation

◆ LabelTrackEvent()

LabelTrackEvent::LabelTrackEvent ( Type  type,
const std::shared_ptr< LabelTrack > &  pTrack,
const wxString &  title,
int  formerPosition,
int  presentPosition 
)
inline

Definition at line 233 of file LabelTrack.h.

237 : type{ type }
238 , mpTrack{ pTrack }
239 , mTitle{ title }
240 , mFormerPosition{ formerPosition }
241 , mPresentPosition{ presentPosition }
242 {}
static const auto title
const std::weak_ptr< Track > mpTrack
Definition: LabelTrack.h:222
wxString mTitle
Definition: LabelTrack.h:225

Member Data Documentation

◆ mFormerPosition

int LabelTrackEvent::mFormerPosition

◆ mPresentPosition

int LabelTrackEvent::mPresentPosition

◆ mpTrack

const std::weak_ptr<Track> LabelTrackEvent::mpTrack

◆ mTitle

wxString LabelTrackEvent::mTitle

Definition at line 225 of file LabelTrack.h.

Referenced by LabelTrackView::OnLabelAdded().

◆ type

enum LabelTrackEvent::Type LabelTrackEvent::type

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