MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / scrollBarMoved

Method scrollBarMoved

python/examples/triage/byte.py:531–542  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

529 self.scrollLines(lines)
530
531 def scrollBarMoved(self, value):
532 if self.updatingScrollBar:
533 return
534 self.wheelDelta = 0
535 addr = self.getAddressForContiguousOffset(value * self.scrollBarMultiplier)
536 self.setTopToAddress(addr)
537 self.refreshLines()
538 for i in range(1, len(self.lines)):
539 if (self.lines[i].address + self.lines[i].length) > addr:
540 self.topLine = i - 1
541 break
542 self.updateCache()
543
544 def scrollBarAction(self, action):
545 if action == QAbstractSlider.SliderSingleStepAdd:

Callers

nothing calls this directly

Calls 4

setTopToAddressMethod · 0.95
refreshLinesMethod · 0.95
updateCacheMethod · 0.95

Tested by

no test coverage detected