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

#include <LabelTrack.h>

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

Public Member Functions

 LabelTrackEvent (wxEventType commandType, const std::shared_ptr< LabelTrack > &pTrack, const wxString &title, int formerPosition, int presentPosition)
 
 LabelTrackEvent (const LabelTrackEvent &)=default
 
wxEvent * Clone () const override
 
- Public Member Functions inherited from TrackListEvent
 TrackListEvent (wxEventType commandType, const std::weak_ptr< Track > &pTrack={}, int code=-1)
 
 TrackListEvent (const TrackListEvent &)=default
 
wxEvent * Clone () const override
 

Public Attributes

wxString mTitle
 
int mFormerPosition { -1 }
 
int mPresentPosition { -1 }
 
- Public Attributes inherited from TrackListEvent
std::weak_ptr< TrackmpTrack
 
int mCode
 

Detailed Description

Definition at line 183 of file LabelTrack.h.

Constructor & Destructor Documentation

◆ LabelTrackEvent() [1/2]

LabelTrackEvent::LabelTrackEvent ( wxEventType  commandType,
const std::shared_ptr< LabelTrack > &  pTrack,
const wxString &  title,
int  formerPosition,
int  presentPosition 
)
inlineexplicit

Definition at line 186 of file LabelTrack.h.

192  : TrackListEvent{ commandType, pTrack }
193  , mTitle{ title }
194  , mFormerPosition{ formerPosition }
195  , mPresentPosition{ presentPosition }
196  {}

Referenced by Clone().

Here is the caller graph for this function:

◆ LabelTrackEvent() [2/2]

LabelTrackEvent::LabelTrackEvent ( const LabelTrackEvent )
default

Member Function Documentation

◆ Clone()

wxEvent* LabelTrackEvent::Clone ( ) const
inlineoverride

Definition at line 199 of file LabelTrack.h.

199  {
200  // wxWidgets will own the event object
201  return safenew LabelTrackEvent(*this); }

References LabelTrackEvent(), and safenew.

Here is the call graph for this function:

Member Data Documentation

◆ mFormerPosition

int LabelTrackEvent::mFormerPosition { -1 }

◆ mPresentPosition

int LabelTrackEvent::mPresentPosition { -1 }

◆ mTitle

wxString LabelTrackEvent::mTitle

Definition at line 204 of file LabelTrack.h.

Referenced by LabelTrackView::OnLabelAdded().


The documentation for this struct was generated from the following file:
LabelTrackEvent::mFormerPosition
int mFormerPosition
Definition: LabelTrack.h:207
LabelTrackEvent::mPresentPosition
int mPresentPosition
Definition: LabelTrack.h:210
TrackListEvent
Notification of changes in individual tracks of TrackList, or of TrackList's composition.
Definition: Track.h:1205
LabelTrackEvent::mTitle
wxString mTitle
Definition: LabelTrack.h:204
LabelTrackEvent::LabelTrackEvent
LabelTrackEvent(wxEventType commandType, const std::shared_ptr< LabelTrack > &pTrack, const wxString &title, int formerPosition, int presentPosition)
Definition: LabelTrack.h:186
safenew
#define safenew
Definition: MemoryX.h:10