summaryrefslogtreecommitdiff
path: root/ui/uicontext.h
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-10-21 18:57:27 +0200
committerPeter LaFosse <peter@vector35.com>2022-11-10 16:19:13 -0500
commitfccd7d13d9979cbdca3251f4695bc91840252efa (patch)
treea3023414ebdc9be8f51e899d49826659cd825112 /ui/uicontext.h
parent4019e2044e794f0f1c01e9c03bfe404b1bbd777d (diff)
Unify *::viewInTypesView into UIContext::navigateToType
Diffstat (limited to 'ui/uicontext.h')
-rw-r--r--ui/uicontext.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/uicontext.h b/ui/uicontext.h
index 070f59cb..424411ab 100644
--- a/ui/uicontext.h
+++ b/ui/uicontext.h
@@ -264,6 +264,13 @@ class BINARYNINJAUIAPI UIContext
virtual QMainWindow* mainWindow() = 0;
virtual void viewChanged(ViewFrame* frame, const QString& type);
virtual bool navigateForBinaryView(BinaryViewRef view, uint64_t addr);
+ /*!
+ Navigate to a named type in the context, optionally at a member offset
+ \param name Name of type to which to navigate
+ \param offset Offset of member in type to which to navigate
+ \return True if navigation succeeded
+ */
+ virtual bool navigateToType(const std::string& name, uint64_t offset = 0) = 0;
/*!
Get a list of all opened binary views, and their names