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

Method getBoundsWithoutHelp

hi_scripting/scripting/scriptnode/api/NodeBase.cpp:369–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367
368
369juce::Rectangle<int> NodeBase::getBoundsWithoutHelp(Rectangle<int> originalHeight) const
370{
371 auto helpBounds = helpManager.getHelpSize().toNearestInt();
372
373 auto isBelow = helpManager.isHelpBelow();
374
375 if(isBelow)
376 originalHeight.removeFromBottom(helpBounds.getHeight());
377 else
378 originalHeight.removeFromRight(helpBounds.getWidth());
379
380 if (v_data[PropertyIds::Folded])
381 return originalHeight.withHeight(UIValues::HeaderHeight);
382 else
383 {
384 return originalHeight;
385 }
386}
387
388int NodeBase::getNumParameters() const
389{

Callers 2

resizedMethod · 0.80
resizedMethod · 0.80

Calls 8

toNearestIntMethod · 0.80
getHelpSizeMethod · 0.80
isHelpBelowMethod · 0.80
removeFromBottomMethod · 0.45
getHeightMethod · 0.45
removeFromRightMethod · 0.45
getWidthMethod · 0.45
withHeightMethod · 0.45

Tested by

no test coverage detected