MCPcopy Create free account
hub / github.com/christophhart/HISE / resized

Method resized

hi_scripting/scripting/scriptnode/ui/NodeContainerComponent.cpp:360–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void ContainerComponent::resized()
361{
362 NodeComponent::resized();
363
364 Component* topComponent = parameters != nullptr ? parameters.get() : extraComponent.get();
365
366 jassert(topComponent != nullptr);
367
368 topComponent->setVisible(dataReference[PropertyIds::ShowParameters]);
369
370 auto b = getLocalBounds();
371 b.expand(-UIValues::NodeMargin, 0);
372 b.removeFromTop(UIValues::HeaderHeight);
373 topComponent->setSize(b.getWidth(), topComponent->getHeight());
374 topComponent->setTopLeftPosition(b.getTopLeft());
375
376 gotoButton.setSize(16,16);
377
378 if(auto ng = findParentComponentOfClass<DspNetworkGraph>())
379 {
380 gotoButton.setVisible(ng->root != this);
381 }
382
383 auto pos = topComponent->isVisible() ? topComponent->getBounds().getBottomLeft() : topComponent->getPosition();
384
385 gotoButton.setTopLeftPosition(pos.translated(0, UIValues::NodeMargin));
386}
387
388void ContainerComponent::findLassoItemsInArea(Array<NodeBase::Ptr>& itemsFound, const Rectangle<int>& area)
389{

Callers

nothing calls this directly

Calls 15

jmaxFunction · 0.85
getBoundsWithoutHelpMethod · 0.80
toNearestIntMethod · 0.80
getHelpSizeMethod · 0.80
isHelpBelowMethod · 0.80
resizedFunction · 0.50
getWidthFunction · 0.50
getMethod · 0.45
setVisibleMethod · 0.45
expandMethod · 0.45
removeFromTopMethod · 0.45
setSizeMethod · 0.45

Tested by

no test coverage detected