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

Method ImageBaseKnob

dgl/src/ImageBaseWidgets.cpp:336–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334
335template <class ImageType>
336ImageBaseKnob<ImageType>::ImageBaseKnob(Widget* const parentWidget,
337 const ImageType& image,
338 const Orientation orientation) noexcept
339 : SubWidget(parentWidget),
340 KnobEventHandler(this),
341 pData(new PrivateData(image))
342{
343 KnobEventHandler::setCallback(pData);
344 setOrientation(orientation);
345 setSize(pData->imgLayerWidth, pData->imgLayerHeight);
346}
347
348template <class ImageType>
349ImageBaseKnob<ImageType>::ImageBaseKnob(const ImageBaseKnob<ImageType>& imageKnob)

Callers

nothing calls this directly

Calls 4

setCallbackFunction · 0.85
getParentWidgetMethod · 0.80
getOrientationMethod · 0.80
setSizeFunction · 0.50

Tested by

no test coverage detected