IDAPython 9.0
Loading...
Searching...
No Matches
GraphViewer Class Reference
Inheritance diagram for GraphViewer:
CustomIDAMemo View_Hooks

Classes

class  UI_Hooks_Trampoline
 

Public Member Functions

 __init__ (self, title, close_open=False)
 
 AddNode (self, obj)
 
 AddEdge (self, src_node, dest_node)
 
 Clear (self)
 
 __iter__ (self)
 
 __getitem__ (self, idx)
 
 Count (self)
 
 Close (self)
 
 Show (self)
 
 Select (self, node_id)
 
 OnRefresh (self)
 
 AddCommand (self, title, shortcut)
 
 OnPopup (self, widget, popup_handle)
 
 OnCommand (self, cmd_id)
 
- Public Member Functions inherited from CustomIDAMemo
 view_activated (self, view)
 
 view_deactivated (self, view)
 
 view_keydown (self, view, key, state)
 
 view_click (self, view, ve)
 
 view_dblclick (self, view, ve)
 
 view_curpos (self, view, *args)
 
 view_close (self, view, *args)
 
 view_switched (self, view, rt)
 
 view_mouse_over (self, view, ve)
 
 view_loc_changed (self, view, now, was)
 
 view_mouse_moved (self, view, ve)
 
 Refresh (self)
 
 GetCurrentRendererType (self)
 
 SetCurrentRendererType (self, rtype)
 
 SetNodeInfo (self, node_index, node_info, flags)
 
 SetNodesInfos (self, values)
 
 GetNodeInfo (self, *args)
 
 DelNodesInfos (self, *nodes)
 
 CreateGroups (self, groups_infos)
 
 DeleteGroups (self, groups, new_current=-1)
 
 SetGroupsVisibility (self, groups, expand, new_current=-1)
 
 GetWidget (self)
 
 GetWidgetAsGraphViewer (self)
 
- Public Member Functions inherited from View_Hooks
bool hook (self)
 
bool unhook (self)
 
None view_created (self, 'TWidget *' view)
 
 __disown__ (self)
 

Public Attributes

 ui_hooks_trampoline = self.UI_Hooks_Trampoline(self)
 

Protected Member Functions

 _OnBind (self, hook)
 
- Protected Member Functions inherited from CustomIDAMemo
 _graph_item_tuple (self, ve)
 
 _get_cb (self, view, cb_name)
 
 _get_cb_arity (self, cb)
 

Protected Attributes

 _title = title
 
list _nodes = []
 
list _edges = []
 
 _close_open = close_open
 
 _quick_commands = ida_kernwin.quick_widget_commands_t(_qccb)
 

Additional Inherited Members

- Static Protected Member Functions inherited from CustomIDAMemo
 _dummy_cb (*args)
 
- Properties inherited from View_Hooks
 thisown
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
title,
close_open = False )
Constructs the GraphView object.
Please do not remove or rename the private fields

@param title: The title of the graph window
@param close_open: Should it attempt to close an existing graph (with same title) before creating this graph?

Reimplemented from CustomIDAMemo.

Member Function Documentation

◆ __getitem__()

__getitem__ ( self,
idx )
Returns a reference to the object associated with this node id

◆ __iter__()

__iter__ ( self)

◆ _OnBind()

_OnBind ( self,
hook )
protected

Reimplemented from CustomIDAMemo.

◆ AddCommand()

AddCommand ( self,
title,
shortcut )

◆ AddEdge()

AddEdge ( self,
src_node,
dest_node )
Creates an edge between two given node ids

◆ AddNode()

AddNode ( self,
obj )
Creates a node associated with the given object and returns the node id

◆ Clear()

Clear ( self)
Clears all the nodes and edges

◆ Close()

Close ( self)
Closes the graph.
It is possible to call Show() again (which will recreate the graph)

◆ Count()

Count ( self)
Returns the node count

◆ OnCommand()

OnCommand ( self,
cmd_id )

◆ OnPopup()

OnPopup ( self,
widget,
popup_handle )

◆ OnRefresh()

OnRefresh ( self)
Event called when the graph is refreshed or first created.
From this event you are supposed to create nodes and edges.
This callback is mandatory.

@note: ***It is important to clear previous nodes before adding nodes.***
@return: Returning True tells the graph viewer to use the items. Otherwise old items will be used.

◆ Select()

Select ( self,
node_id )
Selects a node on the graph

◆ Show()

Show ( self)
Shows an existing graph or creates a new one

@return: Boolean

Member Data Documentation

◆ _close_open

_close_open = close_open
protected

◆ _edges

list _edges = []
protected

◆ _nodes

_nodes = []
protected

◆ _quick_commands

_quick_commands = ida_kernwin.quick_widget_commands_t(_qccb)
protected

◆ _title

_title = title
protected

◆ ui_hooks_trampoline

ui_hooks_trampoline = self.UI_Hooks_Trampoline(self)

The documentation for this class was generated from the following file: