Audacity  3.0.3
Public Member Functions | Public Attributes | List of all members
TrackListEvent Struct Reference

Notification of changes in individual tracks of TrackList, or of TrackList's composition. More...

#include <Track.h>

Inheritance diagram for TrackListEvent:
[legend]
Collaboration diagram for TrackListEvent:
[legend]

Public Member Functions

 TrackListEvent (wxEventType commandType, const std::weak_ptr< Track > &pTrack={}, int code=-1)
 
 TrackListEvent (const TrackListEvent &)=default
 
wxEvent * Clone () const override
 

Public Attributes

std::weak_ptr< TrackmpTrack
 
int mCode
 

Detailed Description

Notification of changes in individual tracks of TrackList, or of TrackList's composition.

Definition at line 1221 of file Track.h.

Constructor & Destructor Documentation

◆ TrackListEvent() [1/2]

TrackListEvent::TrackListEvent ( wxEventType  commandType,
const std::weak_ptr< Track > &  pTrack = {},
int  code = -1 
)
inlineexplicit

Definition at line 1224 of file Track.h.

1226  {}, int code = -1)
1227  : wxCommandEvent{ commandType }
1228  , mpTrack{ pTrack }
1229  , mCode{ code }
1230  {}

Referenced by Clone().

Here is the caller graph for this function:

◆ TrackListEvent() [2/2]

TrackListEvent::TrackListEvent ( const TrackListEvent )
default

Member Function Documentation

◆ Clone()

wxEvent* TrackListEvent::Clone ( ) const
inlineoverride

Definition at line 1234 of file Track.h.

1234  {
1235  // wxWidgets will own the event object
1236  return safenew TrackListEvent(*this); }

References safenew, and TrackListEvent().

Here is the call graph for this function:

Member Data Documentation

◆ mCode

int TrackListEvent::mCode

Definition at line 1239 of file Track.h.

◆ mpTrack

std::weak_ptr<Track> TrackListEvent::mpTrack

The documentation for this struct was generated from the following file:
TrackListEvent::TrackListEvent
TrackListEvent(wxEventType commandType, const std::weak_ptr< Track > &pTrack={}, int code=-1)
Definition: Track.h:1224
TrackListEvent::mCode
int mCode
Definition: Track.h:1239
TrackListEvent::mpTrack
std::weak_ptr< Track > mpTrack
Definition: Track.h:1238
safenew
#define safenew
Definition: MemoryX.h:10