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 228 of file LabelTrack.h.

Member Enumeration Documentation

◆ Type

Enumerator
Addition 
Deletion 
Permutation 
Selection 

Definition at line 230 of file LabelTrack.h.

230 {
231 Addition,
232 Deletion,
234 Selection,
235 } 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 248 of file LabelTrack.h.

252 : type{ type }
253 , mpTrack{ pTrack }
254 , mTitle{ title }
255 , mFormerPosition{ formerPosition }
256 , mPresentPosition{ presentPosition }
257 {}
static const auto title
const std::weak_ptr< Track > mpTrack
Definition: LabelTrack.h:237
wxString mTitle
Definition: LabelTrack.h:240

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 240 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: