Audacity 3.2.0
Functions
LabelGlyphHandle.cpp File Reference
#include "LabelGlyphHandle.h"
#include "LabelTrackView.h"
#include "../../../HitTestResult.h"
#include "LabelTrack.h"
#include "ProjectHistory.h"
#include "../../../RefreshCode.h"
#include "../../../TrackPanelMouseEvent.h"
#include "UndoManager.h"
#include "ViewInfo.h"
#include "SelectionState.h"
#include "ProjectAudioIO.h"
#include "../../../../images/Cursors.h"
#include <wx/cursor.h>
#include <wx/event.h>
#include <wx/translation.h>
#include <cassert>
Include dependency graph for LabelGlyphHandle.cpp:

Go to the source code of this file.

Functions

static int Constrain (int value, int min, int max)
 

Function Documentation

◆ Constrain()

static int Constrain ( int  value,
int  min,
int  max 
)
static

Definition at line 280 of file LabelGlyphHandle.cpp.

281{
282 wxASSERT( min <= max );
283 int result=value;
284 if( result < min )
285 result=min;
286 if( result > max )
287 result=max;
288 return result;
289}
int min(int a, int b)

References min().

Referenced by LabelGlyphHandle::HandleGlyphDragRelease().

Here is the call graph for this function:
Here is the caller graph for this function: