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

#include <ViewInfo.h>

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

Public Member Functions

 SelectedRegionEvent (wxEventType commandType, NotifyingSelectedRegion *pRegion)
 
wxEvent * Clone () const override
 

Public Attributes

wxWeakRef< NotifyingSelectedRegionpRegion
 

Detailed Description

Definition at line 27 of file ViewInfo.h.

Constructor & Destructor Documentation

◆ SelectedRegionEvent()

SelectedRegionEvent::SelectedRegionEvent ( wxEventType  commandType,
NotifyingSelectedRegion pRegion 
)

Definition at line 23 of file ViewInfo.cpp.

25 : wxEvent{ 0, commandType }
26 , pRegion{ pReg }
27 {}

Member Function Documentation

◆ Clone()

wxEvent * SelectedRegionEvent::Clone ( ) const
override

Definition at line 29 of file ViewInfo.cpp.

30 {
31  return safenew SelectedRegionEvent{ *this };
32 }

References safenew.

Member Data Documentation

◆ pRegion

wxWeakRef< NotifyingSelectedRegion > SelectedRegionEvent::pRegion

Definition at line 34 of file ViewInfo.h.

Referenced by AdornedRulerPanel::OnSelectionChange().


The documentation for this struct was generated from the following files:
SelectedRegionEvent
Definition: ViewInfo.h:28
safenew
#define safenew
Definition: MemoryX.h:10
SelectedRegionEvent::pRegion
wxWeakRef< NotifyingSelectedRegion > pRegion
Definition: ViewInfo.h:34