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

Member Enumeration Documentation

◆ Type

Enumerator
Addition 
Deletion 
Permutation 
Selection 

Definition at line 234 of file LabelTrack.h.

234 {
235 Addition,
236 Deletion,
238 Selection,
239 } 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 252 of file LabelTrack.h.

256 : type{ type }
257 , mpTrack{ pTrack }
258 , mTitle{ title }
259 , mFormerPosition{ formerPosition }
260 , mPresentPosition{ presentPosition }
261 {}
static const auto title
const std::weak_ptr< Track > mpTrack
Definition: LabelTrack.h:241
wxString mTitle
Definition: LabelTrack.h:244

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