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

Method getPositionInCanvas

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

Source from the content-addressed store, hash-verified

205
206
207juce::Rectangle<int> NodeBase::getPositionInCanvas(Point<int> topLeft) const
208{
209 using namespace UIValues;
210
211 Rectangle<int> body(NodeWidth, NodeHeight);
212
213 body = body.withPosition(topLeft).reduced(NodeMargin);
214 return body;
215}
216
217bool NodeBase::sendResizeMessage(Component* childComponent, bool async)
218{

Callers 5

resizedMethod · 0.45
resizeNodesMethod · 0.45
resizedMethod · 0.45
ImagePreviewCreatorMethod · 0.45
getImageMethod · 0.45

Calls 2

reducedMethod · 0.80
withPositionMethod · 0.80

Tested by

no test coverage detected