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

Method SetAlternateIcons

src/widgets/AButton.cpp:275–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void AButton::SetAlternateIcons(unsigned idx, const wxImage& up, const wxImage& down, const wxImage& disabled)
276{
277 if(1 + idx > mIcons.size())
278 mIcons.resize(1 + idx);
279 mIcons[idx][AButtonUp] = up;
280 mIcons[idx][AButtonOver] = up;
281 mIcons[idx][AButtonDown] = down;
282 mIcons[idx][AButtonOverDown] = down;
283 mIcons[idx][AButtonDis] = disabled;
284 Refresh(false);
285}
286
287void AButton::SetAlternateIdx(unsigned idx)
288{

Callers 1

PopulateMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected