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

Function MakeBitmapToggleButton

src/effects/EffectUI.cpp:346–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345namespace {
346AButton* MakeBitmapToggleButton(wxWindow *parent,
347 const wxImage& ImageOn, const wxImage& ImageOff)
348{
349 auto pBtn = safenew AButton(parent, kEnableID,
350 wxDefaultPosition, wxDefaultSize, true);
351 pBtn->SetImages(ImageOff, ImageOff, ImageOn, ImageOn, ImageOff);
352 return pBtn;
353}
354 constexpr int InnerMargin = 3;
355}
356

Callers 1

BuildTopBarMethod · 0.85

Calls 2

SetImagesMethod · 0.80
AButtonClass · 0.70

Tested by

no test coverage detected