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

Method ImageComponent

src/components/ImageComponent.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23ImageComponent::ImageComponent(Window* window, float offsetX, float offsetY, std::string path, float targetWidth, float targetHeight, bool allowUpscale) : GuiComponent(window),
24 mTiled(false), mAllowUpscale(allowUpscale), mFlipX(false), mFlipY(false), mOrigin(0.5, 0.5), mTargetSize(targetWidth, targetHeight), mColorShift(0xFFFFFFFF)
25{
26 setPosition(offsetX, offsetY);
27
28 if(!path.empty())
29 setImage(path);
30}
31
32ImageComponent::~ImageComponent()
33{

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected