diff options
| author | Mark Rowe <mark@vector35.com> | 2026-04-22 15:15:44 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2026-04-23 19:03:17 -0700 |
| commit | e508e8f4a240ea870ca47060ebb3b7e9d7091e14 (patch) | |
| tree | 91a91b733567541ae50b049c6ed1066f41a347dd /ui/util.h | |
| parent | 0223aa63efc83eef3f8f7b4d59cead4a6344f6e0 (diff) | |
Share hover-preview logic between LinearView and FlowGraphWidget
Diffstat (limited to 'ui/util.h')
| -rw-r--r-- | ui/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -176,6 +176,12 @@ bool BINARYNINJAUIAPI showDisassemblyPreview(QWidget* parent, ViewFrame* frame, const ViewLocation& location); void BINARYNINJAUIAPI showTextTooltip(QWidget* parent, const QPoint& previewPos, const QString& text); +// Interpret the hovered token and, if applicable, displays a tooltip or preview. If no token-driven preview matches +// and `dataflowFallbackAddress` is set, a dataflow-details tooltip is shown for that address. +void BINARYNINJAUIAPI dispatchTokenHoverPreview(View* view, const QPoint& globalPos, const HighlightTokenState& token, + FunctionRef func, uint64_t lineAddr, size_t instrIndex, const std::vector<TagRef>& lineTags, + std::optional<uint64_t> dataflowFallbackAddress); + bool BINARYNINJAUIAPI isBinaryNinjaDatabase(QFileInfo& info, QFileAccessor& accessor); PlatformRef BINARYNINJAUIAPI getOrAskForPlatform(QWidget* parent, BinaryViewRef data); |
