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

Class CustomIDAMemo

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

Instance Methods
View_Hooks
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
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)
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, node)
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.

Inherited from View_Hooks: __del__, __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

__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_deactivated(self, view)

 
Overrides: View_Hooks.view_deactivated
(inherited documentation)

view_keydown(self, view, key, state)

 
Overrides: View_Hooks.view_keydown
(inherited documentation)

view_click(self, view, ve)

 
Overrides: View_Hooks.view_click
(inherited documentation)

view_dblclick(self, view, ve)

 
Overrides: View_Hooks.view_dblclick
(inherited documentation)

view_curpos(self, view, *args)

 
Overrides: View_Hooks.view_curpos
(inherited documentation)

view_close(self, view, *args)

 
Overrides: View_Hooks.view_close
(inherited documentation)

view_switched(self, view, rt)

 
Overrides: View_Hooks.view_switched
(inherited documentation)

view_mouse_over(self, view, ve)

 
Overrides: View_Hooks.view_mouse_over
(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)

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.

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.

GetNodeInfo(self, node)

 

Get the properties for the given node.

Parameters:
  • node - The index of the node.
Returns:
A tuple (bg_color, frame_color, ea, text), or None.

DelNodesInfos(self, *nodes)

 

Delete the properties for the given node(s).

Parameters:
  • nodes - A list of node IDs

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

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.

GetWidget(self)

 

Return the TWidget underlying this view.

Returns:
The TWidget underlying this view, or None.