MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setImage

Method setImage

source/windowing/StarImageWidget.cpp:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void ImageWidget::setImage(String const& image) {
27 if (image.empty())
28 setDrawables({});
29 else
30 setDrawables({Drawable::makeImage(image, 1.0f, false, Vec2F())});
31}
32
33void ImageWidget::setScale(float scale) {
34 m_scale = scale;

Callers 15

setEnabledMethod · 0.80
setHoveredMethod · 0.80
setSelectedMethod · 0.80
imageHandlerMethod · 0.80
makeWidgetCallbacksMethod · 0.80
makePaneCallbacksMethod · 0.80
TeleportDialogMethod · 0.80
updateMethod · 0.80
selectMissionMethod · 0.80
populateMissionsMethod · 0.80
showMethod · 0.80
setupBookmarkEntryFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected