summaryrefslogtreecommitdiff
path: root/ui/util.h
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2026-04-22 15:15:44 -0700
committerMark Rowe <mark@vector35.com>2026-04-23 19:03:17 -0700
commite508e8f4a240ea870ca47060ebb3b7e9d7091e14 (patch)
tree91a91b733567541ae50b049c6ed1066f41a347dd /ui/util.h
parent0223aa63efc83eef3f8f7b4d59cead4a6344f6e0 (diff)
Share hover-preview logic between LinearView and FlowGraphWidget
Diffstat (limited to 'ui/util.h')
-rw-r--r--ui/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/util.h b/ui/util.h
index 1123b9c6..cae089b0 100644
--- a/ui/util.h
+++ b/ui/util.h
@@ -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);