binaryninjax.ViewFrame¶
-
class
binaryninjax.
ViewFrame
(q)[source]¶ A view frame, that is, the info panel and the main view bound to a particular binary view.
Variables: q – underlying Qt widget proxy -
classmethod
addInitCallback
(fn)[source]¶ Registers
fn
to be called each time a new view frame (i.e. a tab) is opened.Parameters: fn (function( ViewFrame
)) – callback function
-
getView
()[source]¶ Returns: the main view widget of this view frame Return type: HexEditor
,DisassemblyView
,StringsView
,LinearView
,TypeView
, or an user-defined subclass.
-
setViewType
(binary_view_type, disasm_view_type)[source]¶ Sets the type of binary view and type of disassembly view.
Parameters: - binary_view_type – registered binary view type, e.g.
"ELF"
- disasm_view_type – pre-existing types are
"Hex"
,"Graph"
,"Linear"
,"Strings"
, and"Types"
Returns: True
if successful,False
otherwise- binary_view_type – registered binary view type, e.g.
-
classmethod