|
| __init__ (self) |
|
| 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) |
|
bool | hook (self) |
|
bool | unhook (self) |
|
None | view_created (self, 'TWidget *' view) |
|
| __disown__ (self) |
|
◆ __init__()
◆ _dummy_cb()
◆ _get_cb()
_get_cb |
( |
| self, |
|
|
| view, |
|
|
| cb_name ) |
|
protected |
◆ _get_cb_arity()
_get_cb_arity |
( |
| self, |
|
|
| cb ) |
|
protected |
◆ _graph_item_tuple()
_graph_item_tuple |
( |
| self, |
|
|
| ve ) |
|
protected |
◆ _OnBind()
◆ CreateGroups()
CreateGroups |
( |
| self, |
|
|
| groups_infos ) |
Send a request to modify the graph by creating a
(set of) group(s), and perform an animation.
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
}
@param groups_infos: A list of objects that describe those groups.
@return: A [<int>, <int>, ...] list of group nodes, or None (failure).
◆ DeleteGroups()
DeleteGroups |
( |
| self, |
|
|
| groups, |
|
|
| new_current = -1 ) |
Send a request to delete the specified groups in the graph,
and perform an animation.
@param groups: A list of group node numbers.
@param new_current: A node to focus on after the groups have been deleted
@return: True on success, False otherwise.
◆ DelNodesInfos()
DelNodesInfos |
( |
| self, |
|
|
* | nodes ) |
Delete the properties for the given node(s).
@param nodes: A list of node IDs
◆ GetCurrentRendererType()
GetCurrentRendererType |
( |
| self | ) |
|
◆ GetNodeInfo()
GetNodeInfo |
( |
| self, |
|
|
* | args ) |
Get the properties for the given node.
@param ni: A node_info_t instance
@param node: The index of the node.
@return: success
◆ GetWidget()
Return the TWidget underlying this view.
@return: The TWidget underlying this view, or None.
◆ GetWidgetAsGraphViewer()
GetWidgetAsGraphViewer |
( |
| self | ) |
|
Return the graph_viewer_t underlying this view.
@return: The graph_viewer_t underlying this view, or None.
◆ Refresh()
Refreshes the view. This causes the OnRefresh() to be called
◆ SetCurrentRendererType()
SetCurrentRendererType |
( |
| self, |
|
|
| rtype ) |
Set the current view's renderer.
@param rtype: The renderer type. Should be one of the idaapi.TCCRT_* values.
◆ SetGroupsVisibility()
SetGroupsVisibility |
( |
| self, |
|
|
| groups, |
|
|
| expand, |
|
|
| new_current = -1 ) |
Send a request to expand/collapse the specified groups in the graph,
and perform an animation.
@param groups: A list of group node numbers.
@param expand: True to expand the group, False otherwise.
@param new_current: A node to focus on after the groups have been expanded/collapsed.
@return: True on success, False otherwise.
◆ SetNodeInfo()
SetNodeInfo |
( |
| self, |
|
|
| node_index, |
|
|
| node_info, |
|
|
| flags ) |
Set the properties for the given node.
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)
@param node_index: The node index.
@param node_info: An idaapi.node_info_t instance.
@param flags: An OR'ed value of NIF_* values.
◆ SetNodesInfos()
SetNodesInfos |
( |
| self, |
|
|
| values ) |
Set the properties for the given nodes.
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})
@param values: A dictionary of 'int -> node_info_t' objects.
◆ view_activated()
view_activated |
( |
| self, |
|
|
| view ) |
A view is activated
@param view: (TWidget *)
Reimplemented from View_Hooks.
◆ view_click()
view_click |
( |
| self, |
|
|
| view, |
|
|
| event ) |
Click event
@param view: (TWidget *)
@param event: (const view_mouse_event_t *)
Reimplemented from View_Hooks.
◆ view_close()
view_close |
( |
| self, |
|
|
| view, |
|
|
* | args ) |
View closed
@param view: (TWidget *)
Reimplemented from View_Hooks.
◆ view_curpos()
view_curpos |
( |
| self, |
|
|
| view, |
|
|
* | args ) |
Cursor position changed
@param view: (TWidget *)
Reimplemented from View_Hooks.
◆ view_dblclick()
view_dblclick |
( |
| self, |
|
|
| view, |
|
|
| event ) |
Double click event
@param view: (TWidget *)
@param event: (const view_mouse_event_t *)
Reimplemented from View_Hooks.
◆ view_deactivated()
view_deactivated |
( |
| self, |
|
|
| view ) |
A view is deactivated
@param view: (TWidget *)
Reimplemented from View_Hooks.
◆ view_keydown()
view_keydown |
( |
| self, |
|
|
| view, |
|
|
| key, |
|
|
| state ) |
Key down event
@param view: (TWidget *)
@param key: (int)
@param state: (::view_event_state_t)
Reimplemented from View_Hooks.
◆ view_loc_changed()
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.)
@param view: (TWidget *)
@param now: (const lochist_entry_t *)
@param was: (const lochist_entry_t *)
Reimplemented from View_Hooks.
◆ view_mouse_moved()
view_mouse_moved |
( |
| self, |
|
|
| view, |
|
|
| event ) |
The mouse moved on the view
@param view: (TWidget *)
@param event: (const view_mouse_event_t *)
Reimplemented from View_Hooks.
◆ view_mouse_over()
view_mouse_over |
( |
| self, |
|
|
| view, |
|
|
| event ) |
The user moved the mouse over (or out of) a node or an edge. This is only relevant in a graph view.
@param view: (TWidget *)
@param event: (const view_mouse_event_t *)
Reimplemented from View_Hooks.
◆ view_switched()
view_switched |
( |
| self, |
|
|
| view, |
|
|
| rt ) |
A view's renderer has changed.
@param view: (TWidget *)
@param rt: (tcc_renderer_type_t)
Reimplemented from View_Hooks.
The documentation for this class was generated from the following file: