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

Function MakeControlToolBarButton

src/toolbars/ControlToolBar.cpp:105–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103;
104
105AButton* MakeControlToolBarButton(wxWindow* parent,
106 wxWindowID id,
107 const TranslatableString& label,
108 const wxImage& iconUp,
109 const wxImage& iconDown,
110 const wxImage& iconDisabled)
111{
112 auto button = safenew AButton(parent, id);
113 button->SetButtonType(AButton::FrameButton);
114 button->SetImages(
115 theTheme.Image(bmpRecoloredUpLarge),
116 theTheme.Image(bmpRecoloredUpHiliteLarge),
117 theTheme.Image(bmpRecoloredDownLarge),
118 theTheme.Image(bmpRecoloredHiliteLarge),
119 theTheme.Image(bmpRecoloredUpLarge));
120 button->SetIcons(iconUp, iconDown, iconDisabled);
121 button->SetLabel(label);
122 button->SetMinSize(wxSize { 52, 52 });
123 button->SetFrameMid(2);
124 return button;
125}
126
127}
128

Callers 1

PopulateMethod · 0.85

Calls 6

SetButtonTypeMethod · 0.80
SetImagesMethod · 0.80
SetIconsMethod · 0.80
SetFrameMidMethod · 0.80
AButtonClass · 0.70
SetLabelMethod · 0.45

Tested by

no test coverage detected