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

Method ImageSize

libraries/lib-theme/Theme.cpp:1258–1265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1256 return resources.mImages[iIndex];
1257}
1258wxSize ThemeBase::ImageSize( int iIndex )
1259{
1260 wxASSERT( iIndex >= 0 );
1261 auto &resources = *mpSet;
1262 EnsureInitialised();
1263 wxImage & Image = resources.mImages[iIndex];
1264 return wxSize( Image.GetWidth(), Image.GetHeight());
1265}
1266
1267/// Replaces both the image and the bitmap.
1268void ThemeBase::ReplaceImage( int iIndex, wxImage * pImage )

Callers 4

ReCreateButtonsMethod · 0.80
MakeButtonMethod · 0.80
AddButtonMethod · 0.80
MakeAlternateImagesMethod · 0.80

Calls 3

GetHeightMethod · 0.80
wxSizeClass · 0.50
GetWidthMethod · 0.45

Tested by

no test coverage detected