Module ida_kernwin :: Class CustomIDAMemo
[frames] | no frames]

Class CustomIDAMemo

object --+    
         |    
View_Hooks --+
             |
            CustomIDAMemo
Known Subclasses:

Instance Methods
 
CreateGroups(self, groups_infos)
Send a request to modify the graph by creating a (set of) group(s), and perform an animation.
 
DelNodesInfos(self, *nodes)
Delete the properties for the given node(s).
 
DeleteGroups(self, groups, new_current=-1)
Send a request to delete the specified groups in the graph, and perform an animation.
 
GetCurrentRendererType(self)
 
GetNodeInfo(self, *args)
Get the properties for the given node.
 
GetWidget(self)
Return the TWidget underlying this view.
 
GetWidgetAsGraphViewer(self)
Return the graph_viewer_t underlying this view.
 
Refresh(self)
Refreshes the view.
 
SetCurrentRendererType(self, rtype)
Set the current view's renderer.
 
SetGroupsVisibility(self, groups, expand, new_current=-1)
Send a request to expand/collapse the specified groups in the graph, and perform an animation.
 
SetNodeInfo(self, node_index, node_info, flags)
Set the properties for the given node.
 
SetNodesInfos(self, values)
Set the properties for the given nodes.
View_Hooks
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
view_activated(self, view)
 
view_click(self, view, ve)
 
view_close(self, view, *args)
 
view_curpos(self, view, *args)
 
view_dblclick(self, view, ve)
 
view_deactivated(self, view)
 
view_keydown(self, view, key, state)
 
view_loc_changed(self, view, now, was)
 
view_mouse_moved(self, view, ve)
 
view_mouse_over(self, view, ve)
 
view_switched(self, view, rt)

Inherited from View_Hooks: __disown__, __repr__, __swig_destroy__, hook, unhook, view_created

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from View_Hooks: thisown

Inherited from object: __class__

Method Details

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).

DelNodesInfos(self, *nodes)

 

Delete the properties for the given node(s).

Parameters:
  • nodes - A list of node IDs

DeleteGroups(self, groups, new_current=-1)

 

Send a request to delete the specified groups in the graph, and perform an animation.

Parameters:
  • groups - A list of group node numbers.
  • new_current - A node to focus on after the groups have been deleted
Returns:
True on success, False otherwise.

GetNodeInfo(self, *args)

 

Get the properties for the given node.

Parameters:
  • ni - A node_info_t instance
  • node - The index of the node.
Returns:
success

GetWidget(self)

 

Return the TWidget underlying this view.

Returns:
The TWidget underlying this view, or None.

GetWidgetAsGraphViewer(self)

 

Return the graph_viewer_t underlying this view.

Returns:
The graph_viewer_t underlying this view, or None.

Refresh(self)

 

Refreshes the view. This causes the OnRefresh() to be called

SetCurrentRendererType(self, rtype)

 

Set the current view's renderer.

Parameters:
  • rtype - The renderer type. Should be one of the idaapi.TCCRT_* values.

SetGroupsVisibility(self, groups, expand, new_current=-1)

 

Send a request to expand/collapse the specified groups in the graph, and perform an animation.

Parameters:
  • 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.
Returns:
True on success, False otherwise.

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(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.

__init__(self)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns: View_Hooks
Overrides: object.__init__
(inherited documentation)

view_activated(self, view)

 
Overrides: View_Hooks.view_activated
(inherited documentation)

view_click(self, view, ve)

 
Overrides: View_Hooks.view_click
(inherited documentation)

view_close(self, view, *args)

 
Overrides: View_Hooks.view_close
(inherited documentation)

view_curpos(self, view, *args)

 
Overrides: View_Hooks.view_curpos
(inherited documentation)

view_dblclick(self, view, ve)

 
Overrides: View_Hooks.view_dblclick
(inherited documentation)

view_deactivated(self, view)

 
Overrides: View_Hooks.view_deactivated
(inherited documentation)

view_keydown(self, view, key, state)

 
Overrides: View_Hooks.view_keydown
(inherited documentation)

view_loc_changed(self, view, now, was)

 
Overrides: View_Hooks.view_loc_changed
(inherited documentation)

view_mouse_moved(self, view, ve)

 
Overrides: View_Hooks.view_mouse_moved
(inherited documentation)

view_mouse_over(self, view, ve)

 
Overrides: View_Hooks.view_mouse_over
(inherited documentation)

view_switched(self, view, rt)

 
Overrides: View_Hooks.view_switched
(inherited documentation)