| IDAPython 9.0
    | 
 
  
| Public Member Functions | |
| __init__ (self) | |
| init(self, _flags=0, _hkcb_flags=0x0001) -> View_Hooks | |
| view_activated (self, view) | |
| view_activated(self, view) A view is activated | |
| view_deactivated (self, view) | |
| view_deactivated(self, view) A view is deactivated | |
| view_keydown (self, view, key, state) | |
| view_keydown(self, view, key, state) Key down event | |
| view_click (self, view, ve) | |
| view_click(self, view, event) Click event | |
| view_dblclick (self, view, ve) | |
| view_dblclick(self, view, event) Double click event | |
| view_curpos (self, view, *args) | |
| view_curpos(self, view) Cursor position changed | |
| view_close (self, view, *args) | |
| view_close(self, view) View closed | |
| view_switched (self, view, rt) | |
| view_switched(self, view, rt) A view's renderer has changed. | |
| view_mouse_over (self, view, ve) | |
| view_mouse_over(self, view, event) The user moved the mouse over (or out of) a node or an edge. | |
| view_loc_changed (self, view, now, was) | |
| view_loc_changed(self, view, now, was) The location for the view has changed (can be either the place_t, the renderer_info_t, or both.) | |
| view_mouse_moved (self, view, ve) | |
| view_mouse_moved(self, view, event) The mouse moved on the view | |
| Refresh (self) | |
| Refreshes the view. | |
| GetCurrentRendererType (self) | |
| SetCurrentRendererType (self, rtype) | |
| Set the current view's renderer. | |
| SetNodeInfo (self, node_index, node_info, flags) | |
| Set the properties for the given node. | |
| SetNodesInfos (self, values) | |
| Set the properties for the given nodes. | |
| GetNodeInfo (self, *args) | |
| Get the properties for the given node. | |
| DelNodesInfos (self, *nodes) | |
| Delete the properties for the given node(s). | |
| CreateGroups (self, groups_infos) | |
| Send a request to modify the graph by creating a (set of) group(s), and perform an animation. | |
| DeleteGroups (self, groups, new_current=-1) | |
| Send a request to delete the specified groups in the graph, and perform an animation. | |
| SetGroupsVisibility (self, groups, expand, new_current=-1) | |
| Send a request to expand/collapse the specified groups in the graph, and perform an animation. | |
| GetWidget (self) | |
| Return the TWidget underlying this view. | |
| GetWidgetAsGraphViewer (self) | |
| Return the graph_viewer_t underlying this view. | |
|  Public Member Functions inherited from View_Hooks | |
| "bool" | hook (self) | 
| hook(self) -> bool | |
| "bool" | unhook (self) | 
| unhook(self) -> bool | |
| "void" | view_created (self, "TWidget *" view) | 
| view_created(self, view) A view is being created. | |
| __disown__ (self) | |
| Protected Member Functions | |
| _graph_item_tuple (self, ve) | |
| _get_cb (self, view, cb_name) | |
| _get_cb_arity (self, cb) | |
| _OnBind (self, hook) | |
| Static Protected Member Functions | |
| _dummy_cb (*args) | |
| Additional Inherited Members | |
|  Properties inherited from View_Hooks | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
| __init__ | ( | self | ) | 
| _flags | uint32 | 
| _hkcb_flags | uint32 | 
Reimplemented from View_Hooks.
Reimplemented in GraphViewer, and IDAViewWrapper.
| 
 | staticprotected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
Reimplemented in GraphViewer.
| CreateGroups | ( | self, | |
| groups_infos ) | 
Each object in the 'groups_infos' list must be of the format: { "nodes" : [<int>, <int>, <int>, ...] # The list of nodes to group "text" : <string> # The synthetic text for that group }
| groups_infos | A list of objects that describe those groups. | 
| DeleteGroups | ( | self, | |
| groups, | |||
| new_current = -1 ) | 
| groups | A list of group node numbers. | 
| new_current | A node to focus on after the groups have been deleted | 
| DelNodesInfos | ( | self, | |
| * | nodes ) | 
| nodes | A list of node IDs | 
| GetCurrentRendererType | ( | self | ) | 
| GetNodeInfo | ( | self, | |
| * | args ) | 
| ni | A node_info_t instance | 
| node | The index of the node. | 
| GetWidget | ( | self | ) | 
| GetWidgetAsGraphViewer | ( | self | ) | 
| Refresh | ( | self | ) | 
This causes the OnRefresh() to be called
| SetCurrentRendererType | ( | self, | |
| rtype ) | 
| rtype | The renderer type. Should be one of the idaapi.TCCRT_* values. | 
| SetGroupsVisibility | ( | self, | |
| groups, | |||
| expand, | |||
| new_current = -1 ) | 
| groups | A list of group node numbers. | 
| expand | True to expand the group, False otherwise. | 
| new_current | A node to focus on after the groups have been expanded/collapsed. | 
| SetNodeInfo | ( | self, | |
| node_index, | |||
| node_info, | |||
| flags ) | 
Example usage (set second nodes's bg color to red): inst = ... p = idaapi.node_info_t() p.bg_color = 0x00ff0000 inst.SetNodeInfo(1, p, idaapi.NIF_BG_COLOR)
| node_index | The node index. | 
| node_info | An idaapi.node_info_t instance. | 
| flags | An OR'ed value of NIF_* values. | 
| SetNodesInfos | ( | self, | |
| values ) | 
Example usage (set first three nodes's bg color to purple): inst = ... p = idaapi.node_info_t() p.bg_color = 0x00ff00ff inst.SetNodesInfos({0 : p, 1 : p, 2 : p})
| values | A dictionary of 'int -> node_info_t' objects. | 
| view_activated | ( | self, | |
| view ) | 
| view | (TWidget *) | 
Reimplemented from View_Hooks.
| view_click | ( | self, | |
| view, | |||
| event ) | 
| view | (TWidget *) | 
| event | (const view_mouse_event_t *) | 
Reimplemented from View_Hooks.
| view_close | ( | self, | |
| view, | |||
| * | args ) | 
| view | (TWidget *) | 
Reimplemented from View_Hooks.
| view_curpos | ( | self, | |
| view, | |||
| * | args ) | 
| view | (TWidget *) | 
Reimplemented from View_Hooks.
| view_dblclick | ( | self, | |
| view, | |||
| event ) | 
| view | (TWidget *) | 
| event | (const view_mouse_event_t *) | 
Reimplemented from View_Hooks.
| view_deactivated | ( | self, | |
| view ) | 
| view | (TWidget *) | 
Reimplemented from View_Hooks.
| view_keydown | ( | self, | |
| view, | |||
| key, | |||
| state ) | 
| view | (TWidget *) | 
| key | (int) | 
| state | (::view_event_state_t) | 
Reimplemented from View_Hooks.
| view_loc_changed | ( | self, | |
| view, | |||
| now, | |||
| was ) | 
| view | (TWidget *) | 
| now | (const lochist_entry_t *) | 
| was | (const lochist_entry_t *) | 
Reimplemented from View_Hooks.
| view_mouse_moved | ( | self, | |
| view, | |||
| event ) | 
| view | (TWidget *) | 
| event | (const view_mouse_event_t *) | 
Reimplemented from View_Hooks.
| view_mouse_over | ( | self, | |
| view, | |||
| event ) | 
This is only relevant in a graph view.
| view | (TWidget *) | 
| event | (const view_mouse_event_t *) | 
Reimplemented from View_Hooks.
| view_switched | ( | self, | |
| view, | |||
| rt ) | 
| view | (TWidget *) | 
| rt | (tcc_renderer_type_t) | 
Reimplemented from View_Hooks.