Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
TrackPanel::AudacityTimer Class Referencefinal

Timer class dedicated to informing the TrackPanel that it is time to refresh some aspect of the screen. More...

#include <TrackPanel.h>

Inheritance diagram for TrackPanel::AudacityTimer:
[legend]
Collaboration diagram for TrackPanel::AudacityTimer:
[legend]

Public Member Functions

void Notify () override
 

Public Attributes

TrackPanelparent
 

Detailed Description

Timer class dedicated to informing the TrackPanel that it is time to refresh some aspect of the screen.

Definition at line 197 of file TrackPanel.h.

Member Function Documentation

◆ Notify()

void TrackPanel::AudacityTimer::Notify ( )
inlineoverride

Definition at line 199 of file TrackPanel.h.

199 {
200 // (From Debian)
201 //
202 // Don't call parent->OnTimer(..) directly here, but instead post
203 // an event. This ensures that this is a pure wxWidgets event
204 // (no GDK event behind it) and that it therefore isn't processed
205 // within the YieldFor(..) of the clipboard operations (workaround
206 // for Debian bug #765341).
207 // QueueEvent() will take ownership of the event
208 parent->GetEventHandler()->QueueEvent(safenew wxTimerEvent(*this));
209 }
#define safenew
Definition: MemoryX.h:9

References safenew.

Member Data Documentation

◆ parent

TrackPanel* TrackPanel::AudacityTimer::parent

Definition at line 210 of file TrackPanel.h.

Referenced by TrackPanel::TrackPanel().


The documentation for this class was generated from the following file: