Audacity  3.2.0
Public Member Functions | Public Attributes | List of all members
SnapResults Struct Reference

#include <Snap.h>

Public Member Functions

bool Snapped () const
 

Public Attributes

double timeSnappedTime { 0.0 }
 
double outTime { 0.0 }
 
wxInt64 outCoord { -1 }
 
bool snappedPoint { false }
 
bool snappedTime { false }
 

Detailed Description

Definition at line 45 of file Snap.h.

Member Function Documentation

◆ Snapped()

bool SnapResults::Snapped ( ) const
inline

Definition at line 52 of file Snap.h.

52 { return snappedPoint || snappedTime; }

References snappedPoint, and snappedTime.

Referenced by SelectHandle::AdjustSelection(), WaveClipTrimHandle::AdjustBorder::Draw(), SnapManager::Snap(), and WaveClipTrimHandle::AdjustBorder::Trim().

Here is the caller graph for this function:

Member Data Documentation

◆ outCoord

wxInt64 SnapResults::outCoord { -1 }

◆ outTime

double SnapResults::outTime { 0.0 }

◆ snappedPoint

bool SnapResults::snappedPoint { false }

Definition at line 49 of file Snap.h.

Referenced by SelectHandle::AdjustSelection(), SnapManager::Snap(), and Snapped().

◆ snappedTime

bool SnapResults::snappedTime { false }

Definition at line 50 of file Snap.h.

Referenced by SelectHandle::AdjustSelection(), SnapManager::Snap(), and Snapped().

◆ timeSnappedTime

double SnapResults::timeSnappedTime { 0.0 }

The documentation for this struct was generated from the following file:
SnapResults::snappedTime
bool snappedTime
Definition: Snap.h:50
SnapResults::snappedPoint
bool snappedPoint
Definition: Snap.h:49