MCPcopy Create free account
hub / github.com/VCVRack/Rack / getHandleOffset

Method getHandleOffset

src/ui/ScrollWidget.cpp:51–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51math::Vec ScrollWidget::getHandleOffset() {
52 return offset.minus(containerBox.pos).div(getContainerOffsetBound().size);
53}
54
55
56math::Vec ScrollWidget::getHandleSize() {

Callers 2

drawMethod · 0.80
onButtonMethod · 0.80

Calls 2

divMethod · 0.80
minusMethod · 0.80

Tested by

no test coverage detected