MCPcopy Create free account
hub / github.com/DISTRHO/DPF / setImage

Method setImage

dgl/src/ImageBaseWidgets.cpp:59–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58template <class ImageType>
59void ImageBaseAboutWindow<ImageType>::setImage(const ImageType& image)
60{
61 if (img == image)
62 return;
63
64 if (image.isInvalid())
65 {
66 img = image;
67 return;
68 }
69
70 reinit();
71
72 img = image;
73
74 setSize(image.getSize());
75 setGeometryConstraints(image.getWidth(), image.getHeight(), true, true);
76
77 done();
78}
79
80template <class ImageType>
81void ImageBaseAboutWindow<ImageType>::onDisplay()

Callers

nothing calls this directly

Calls 8

reinitFunction · 0.85
doneFunction · 0.85
setSizeFunction · 0.50
setGeometryConstraintsFunction · 0.50
isInvalidMethod · 0.45
getSizeMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected