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

Method setImageLayerCount

dgl/src/ImageBaseWidgets.cpp:381–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379
380template <class ImageType>
381void ImageBaseKnob<ImageType>::setImageLayerCount(uint count) noexcept
382{
383 DISTRHO_SAFE_ASSERT_RETURN(count > 1,);
384
385 pData->imgLayerCount = count;
386
387 if (pData->isImgVertical)
388 pData->imgLayerHeight = pData->image.getHeight()/count;
389 else
390 pData->imgLayerWidth = pData->image.getWidth()/count;
391
392 setSize(pData->imgLayerWidth, pData->imgLayerHeight);
393}
394
395template <class ImageType>
396void ImageBaseKnob<ImageType>::setRotationAngle(int angle)

Callers

nothing calls this directly

Calls 3

setSizeFunction · 0.50
getHeightMethod · 0.45
getWidthMethod · 0.45

Tested by

no test coverage detected