MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / AddIcon

Method AddIcon

src/gui/idlepanel.cc:641–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639 void OnFluxFormatChanged(wxCommandEvent&) {}
640
641 IconButton* AddIcon(int bitmapIndex, const std::string text)
642 {
643 auto* button = new IconButton(sourceIconPanel, wxID_ANY);
644 button->SetBitmapAndLabel(_imageList.GetBitmap(bitmapIndex), text);
645 sourceIconPanel->GetSizer()->Add(
646 button, 0, wxALL | wxEXPAND, 5, nullptr);
647 return button;
648 }
649
650 void SwitchToPage(int page)
651 {

Callers

nothing calls this directly

Calls 3

SetBitmapAndLabelMethod · 0.80
GetBitmapMethod · 0.80
AddMethod · 0.80

Tested by

no test coverage detected