Audacity  3.0.3
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 196 of file TrackPanel.h.

Member Function Documentation

◆ Notify()

void TrackPanel::AudacityTimer::Notify ( )
inlineoverride

Definition at line 198 of file TrackPanel.h.

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

References safenew.

Member Data Documentation

◆ parent

TrackPanel* TrackPanel::AudacityTimer::parent

Definition at line 209 of file TrackPanel.h.

Referenced by TrackPanel::TrackPanel().


The documentation for this class was generated from the following file:
TrackPanel::AudacityTimer::parent
TrackPanel * parent
Definition: TrackPanel.h:209
safenew
#define safenew
Definition: MemoryX.h:10