MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / setImage

Method setImage

src/components/ImageComponent.cpp:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void ImageComponent::setImage(std::string path)
73{
74 mPath = path;
75
76 if(mPath.empty() || !mWindow->getResourceManager()->fileExists(mPath))
77 mTexture.reset();
78 else
79 mTexture = TextureResource::get(*mWindow->getResourceManager(), mPath);
80
81 resize();
82}
83
84void ImageComponent::setOrigin(float originX, float originY)
85{

Callers 7

setHorizontalImageMethod · 0.80
setVerticalImageMethod · 0.80
setBackgroundImageMethod · 0.80
setCornerImageMethod · 0.80
createElementMethod · 0.80
updateDetailDataMethod · 0.80

Calls 4

fileExistsMethod · 0.80
getResourceManagerMethod · 0.80
resetMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected