Audacity 3.2.0
Functions
anonymous_namespace{EnvelopeEditor.cpp} Namespace Reference

Functions

void DrawPoint (wxDC &dc, const wxRect &r, int x, int y, bool top)
 
int SQR (int x)
 

Function Documentation

◆ DrawPoint()

void anonymous_namespace{EnvelopeEditor.cpp}::DrawPoint ( wxDC &  dc,
const wxRect &  r,
int  x,
int  y,
bool  top 
)

Definition at line 28 of file EnvelopeEditor.cpp.

29{
30 if (y >= 0 && y <= r.height) {
31 wxRect circle(r.x + x, r.y + (top ? y - 1: y - 2), 4, 4);
32 dc.DrawEllipse(circle);
33 }
34}

Referenced by EnvelopeEditor::DrawPoints().

Here is the caller graph for this function:

◆ SQR()

int anonymous_namespace{EnvelopeEditor.cpp}::SQR ( int  x)
inline

Definition at line 128 of file EnvelopeEditor.cpp.

128{ return x * x; }

Referenced by EnvelopeEditor::HandleMouseButtonDown().

Here is the caller graph for this function: