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

Method showContextAroundTop

python/examples/triage/byte.py:380–391  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

378 self.updatingScrollBar = False
379
380 def showContextAroundTop(self):
381 scroll = self.visibleRows // 4
382 if scroll > self.topLine:
383 self.topLine = 0
384 else:
385 self.topLine -= scroll
386 if self.topLine < len(self.lines):
387 self.updatingScrollBar = True
388 addr = self.lines[self.topLine].address
389 self.verticalScrollBar().setValue(self.getContiguousOffsetForAddress(addr) // self.scrollBarMultiplier)
390 self.updatingScrollBar = False
391 self.updateCache()
392
393 def repositionCaret(self):
394 self.updateCache()

Callers 2

navigateMethod · 0.95
repositionCaretMethod · 0.95

Calls 2

updateCacheMethod · 0.95

Tested by

no test coverage detected