Audacity 3.2.0
Functions | Variables
anonymous_namespace{LowlitClipButton.cpp} Namespace Reference

Functions

wxRect RemoveSpaceReservedForTitle (const wxRect &rect)
 
int GetButtonWidth (ClipButtonId buttonId, const ClipInterface &clip)
 

Variables

constexpr auto widthReservedForTitle = 50
 
constexpr auto topMargin = 4
 
constexpr auto leftMargin = 0
 
constexpr auto bottomMargin = 1
 

Detailed Description


Audacity: A Digital Audio Editor

LowlitClipButton.cpp

Matthieu Hodgkinson

Function Documentation

◆ GetButtonWidth()

int anonymous_namespace{LowlitClipButton.cpp}::GetButtonWidth ( ClipButtonId  buttonId,
const ClipInterface clip 
)

Definition at line 27 of file LowlitClipButton.cpp.

References ClipButtonSpecializations< id >::GetWidth(), Overflow, and Speed.

Referenced by LowlitClipButton::Detail::GetButtonRectangle().

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

◆ RemoveSpaceReservedForTitle()

wxRect anonymous_namespace{LowlitClipButton.cpp}::RemoveSpaceReservedForTitle ( const wxRect &  rect)

Definition at line 21 of file LowlitClipButton.cpp.

22{
23 const auto toRemove = std::min(rect.width, widthReservedForTitle);
24 return { rect.x + toRemove, rect.y, rect.width - toRemove, rect.height };
25}
int min(int a, int b)

References min(), and widthReservedForTitle.

Referenced by LowlitClipButton::Detail::GetButtonRectangle().

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

Variable Documentation

◆ bottomMargin

constexpr auto anonymous_namespace{LowlitClipButton.cpp}::bottomMargin = 1
constexpr

◆ leftMargin

constexpr auto anonymous_namespace{LowlitClipButton.cpp}::leftMargin = 0
constexpr

◆ topMargin

constexpr auto anonymous_namespace{LowlitClipButton.cpp}::topMargin = 4
constexpr

◆ widthReservedForTitle

constexpr auto anonymous_namespace{LowlitClipButton.cpp}::widthReservedForTitle = 50
constexpr

Definition at line 16 of file LowlitClipButton.cpp.

Referenced by RemoveSpaceReservedForTitle().