| IDAPython 9.0
    | 
The base class for implementing simple custom viewers.
 
 | Classes | |
| class | UI_Hooks_Trampoline | 
| Public Member Functions | |
| __init__ (self) | |
| OnPopup (self, form, popup_handle) | |
| Context menu popup is about to be shown. | |
| Create (self, title) | |
| Creates the custom view. | |
| Close (self) | |
| Destroys the view. | |
| Show (self) | |
| Shows an already created view. | |
| Refresh (self) | |
| RefreshCurrent (self) | |
| Refreshes the current line only. | |
| Count (self) | |
| Returns the number of lines in the view. | |
| GetSelection (self) | |
| Returns the selected range or None. | |
| ClearLines (self) | |
| Clears all the lines. | |
| AddLine (self, line, fgcolor=None, bgcolor=None) | |
| Adds a colored line to the view. | |
| InsertLine (self, lineno, line, fgcolor=None, bgcolor=None) | |
| Inserts a line in the given position. | |
| EditLine (self, lineno, line, fgcolor=None, bgcolor=None) | |
| Edits an existing line. | |
| PatchLine (self, lineno, offs, value) | |
| Patches an existing line character at the given offset. | |
| DelLine (self, lineno) | |
| Deletes an existing line. | |
| GetLine (self, lineno) | |
| Returns a line. | |
| GetCurrentWord (self, mouse=0) | |
| Returns the current word. | |
| GetCurrentLine (self, mouse=0, notags=0) | |
| Returns the current line. | |
| GetPos (self, mouse=0) | |
| Returns the current cursor or mouse position. | |
| GetLineNo (self, mouse=0) | |
| Calls GetPos() and returns the current line number or -1 on failure. | |
| Jump (self, lineno, x=0, y=0) | |
| IsFocused (self) | |
| Returns True if the current view is the focused view. | |
| GetWidget (self) | |
| Return the TWidget underlying this view. | |
| Public Attributes | |
| ui_hooks_trampoline = self.UI_Hooks_Trampoline(self) | |
| title = title | |
| __init__ | ( | self | ) | 
| AddLine | ( | self, | |
| line, | |||
| fgcolor = None, | |||
| bgcolor = None ) | 
| ClearLines | ( | self | ) | 
| Close | ( | self | ) | 
| Count | ( | self | ) | 
| Create | ( | self, | |
| title ) | 
This should be the first method called after instantiation
| title | The title of the view | 
| DelLine | ( | self, | |
| lineno ) | 
| EditLine | ( | self, | |
| lineno, | |||
| line, | |||
| fgcolor = None, | |||
| bgcolor = None ) | 
| GetCurrentLine | ( | self, | |
| mouse = 0, | |||
| notags = 0 ) | 
| mouse | Current line at mouse pos | 
| notags | If True then tag_remove() will be called before returning the line | 
| GetCurrentWord | ( | self, | |
| mouse = 0 ) | 
| mouse | Use mouse position or cursor position | 
| GetLine | ( | self, | |
| lineno ) | 
| lineno | The line number | 
| GetLineNo | ( | self, | |
| mouse = 0 ) | 
| GetPos | ( | self, | |
| mouse = 0 ) | 
| mouse | return mouse position | 
| GetSelection | ( | self | ) | 
| GetWidget | ( | self | ) | 
| InsertLine | ( | self, | |
| lineno, | |||
| line, | |||
| fgcolor = None, | |||
| bgcolor = None ) | 
| IsFocused | ( | self | ) | 
| Jump | ( | self, | |
| lineno, | |||
| x = 0, | |||
| y = 0 ) | 
| OnPopup | ( | self, | |
| form, | |||
| popup_handle ) | 
Create items dynamically if you wish
| PatchLine | ( | self, | |
| lineno, | |||
| offs, | |||
| value ) | 
This is a low level function. You must know what you're doing
| Refresh | ( | self | ) | 
| RefreshCurrent | ( | self | ) | 
| Show | ( | self | ) | 
It the view was closed, then it will call Create() for you
| title = title | 
| ui_hooks_trampoline = self.UI_Hooks_Trampoline(self) |