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

Method getContainerOffsetBound

src/ui/ScrollWidget.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43math::Rect ScrollWidget::getContainerOffsetBound() {
44 math::Rect r;
45 r.pos = containerBox.pos;
46 r.size = containerBox.size.minus(box.size);
47 return r;
48}
49
50
51math::Vec ScrollWidget::getHandleOffset() {

Callers 1

onDragMoveMethod · 0.80

Calls 1

minusMethod · 0.80

Tested by

no test coverage detected