Audacity  3.2.0
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 24 of file ViewInfo.cpp.

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

Member Function Documentation

◆ Clone()

wxEvent * SelectedRegionEvent::Clone ( ) const
override

Definition at line 30 of file ViewInfo.cpp.

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

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