MCPcopy Create free account
hub / github.com/audacity/audacity / GetPanelRect

Function GetPanelRect

src/effects/DynamicRangeProcessorPanelCommon.cpp:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54wxRect GetPanelRect(const wxPanelWrapper& panel)
55{
56#ifndef __WXMAC__
57 return panel.GetClientRect();
58#else
59 auto rect = panel.GetClientRect();
60 rect.SetX(rect.GetX() + 1);
61 rect.SetY(rect.GetY() + 1);
62 rect.SetWidth(rect.GetWidth() - 1);
63 rect.SetHeight(rect.GetHeight() - 1);
64 return rect;
65#endif
66}
67
68} // namespace DynamicRangeProcessorPanel

Callers 4

OnPaintMethod · 0.85
OnPaintMethod · 0.85
OnPaintMethod · 0.85
OnPaintMethod · 0.85

Calls 2

GetHeightMethod · 0.80
GetWidthMethod · 0.45

Tested by

no test coverage detected