Module ida_kernwin
Defines the interface between the kernel and the UI.
It contains:
- the UI dispatcher notification codes (ui_notification_t)
- convenience functions for UI services
- structures which hold information about the lines (disassembly, structures, enums) generated by the kernel
- functions to interact with the user (dialog boxes)
- some string and conversion functions.
Global variables
var AA_CHECKABLE
-
see update_action_checkable()
var AA_CHECKED
-
see update_action_checked()
var AA_ICON
-
see update_action_icon()
var AA_LABEL
-
see update_action_label()
var AA_NONE
-
no effect
var AA_SHORTCUT
-
see update_action_shortcut()
var AA_STATE
-
see update_action_state()
var AA_TOOLTIP
-
see update_action_tooltip()
var AA_VISIBILITY
-
see update_action_visibility()
var ACF_HAS_FIELD_DIRTREE_SELECTION
-
'cur_enum_member' and 'dirtree_selection' fields are present
var ACF_HAS_SELECTION
-
there is currently a valid selection
var ACF_HAS_SOURCE
-
'source' field is present
var ACF_XTRN_EA
-
cur_ea is in 'externs' segment
var ADF_CHECKABLE
-
action is checkable
var ADF_CHECKED
-
starts in a checked state (requires ADF_CHECKABLE)
var ADF_GLOBAL
-
Register the action globally, so that it's available even if no IDB is present
var ADF_NO_HIGHLIGHT
-
After activating, do not update the highlight according to what's under the cursor (listings only.)
var ADF_NO_UNDO
-
the action does not create an undo point. useful for actions that do not modify the database.
var ADF_OT_MASK
-
Owner type mask.
var ADF_OT_PLUGIN
-
Owner is a plugin_t.
var ADF_OT_PLUGMOD
-
Owner is a plugmod_t.
var ADF_OT_PROCMOD
-
Owner is a procmod_t.
var ADF_OWN_HANDLER
-
handler is owned by the action; it'll be destroyed when the action is unregistered. Use DYNACTION_DESC_LITERAL to set this bit.
var AHF_VERSION
-
action handler version (used by action_handler_t::flags)
var AHF_VERSION_MASK
-
mask for action_handler_t::flags
var ASKBTN_BTN1
-
First (Yes) button.
var ASKBTN_BTN2
-
Second (No) button.
var ASKBTN_BTN3
-
Third (Cancel) button.
var ASKBTN_CANCEL
-
Cancel button.
var ASKBTN_NO
-
No button.
var ASKBTN_YES
-
Yes button.
var AST_DISABLE
-
analog of AST_ENABLE
var AST_DISABLE_ALWAYS
-
disable action and do not call action_handler_t::action() anymore
var AST_DISABLE_FOR_IDB
-
analog of AST_ENABLE_FOR_IDB
var AST_DISABLE_FOR_WIDGET
-
analog of AST_ENABLE_FOR_WIDGET
var AST_ENABLE
-
enable action - call action_handler_t::update() when anything changes
var AST_ENABLE_ALWAYS
-
enable action and do not call action_handler_t::update() anymore
var AST_ENABLE_FOR_IDB
-
enable action for the current idb. call action_handler_t::update() when a database is opened/closed
var AST_ENABLE_FOR_WIDGET
-
enable action for the current widget. call action_handler_t::update() when a widget gets/loses focus
var BWN_ADDRWATCH
-
the 'Watch List' window
var BWN_BOOKMARKS
-
a persistent 'Bookmarks' widget
var BWN_BPTS
-
breakpoints
var BWN_CALLS
-
function calls
var BWN_CALLS_CALLEES
-
function calls, callees
var BWN_CALLS_CALLERS
-
function calls, callers
var BWN_CALL_STACK
-
call stack
var BWN_CHOOSER
-
a non-builtin chooser
var BWN_CLI
-
the command-line, in the output window
var BWN_CMDPALCSR
-
the command palette chooser (Qt version only)
var BWN_CMDPALWIN
-
the command palette window (Qt version only)
var BWN_CPUREGS
-
one of the 'General registers', 'FPU register', ... debugger windows
var BWN_CUSTVIEW
-
custom viewers
var BWN_CV_LINE_INFOS
-
custom viewers' lineinfo widget
var BWN_DISASM
-
disassembly views
var BWN_DISASMS
-
Alias. Some BWN_* were confusing, and thus have been renamed. This is to ensure bw-compat.
var BWN_DISASM_ARROWS
-
disassembly arrows widget
var BWN_DUMP
-
hex dumps
var BWN_DUMPS
-
Alias. Some BWN_* were confusing, and thus have been renamed. This is to ensure bw-compat.
var BWN_ENUMS
-
enumerations
var BWN_EXPORTS
-
exports
var BWN_FRAME
-
function frame
var BWN_FUNCS
-
functions
var BWN_IMPORTS
-
imports
var BWN_LOCALS
-
the 'locals' debugger window
var BWN_LOCTYPS
-
local types
var BWN_MDVIEWCSR
-
lumina metadata view chooser
var BWN_MODULES
-
modules
var BWN_NAMES
-
names
var BWN_NAVBAND
-
navigation band
var BWN_NOTEPAD
-
notepad
var BWN_OUTPUT
-
the text area, in the output window
var BWN_PROBS
-
problems
var BWN_PSEUDOCODE
-
hexrays decompiler views
var BWN_SCRIPTS_CSR
-
the "Recent scripts" chooser
var BWN_SEARCH
-
search results
var BWN_SEARCHS
-
Alias. Some BWN_* were confusing, and thus have been renamed. This is to ensure bw-compat.
var BWN_SEGREGS
-
segment registers
var BWN_SEGS
-
segments
var BWN_SELS
-
selectors
var BWN_SHORTCUTCSR
-
the shortcuts chooser (Qt version only)
var BWN_SHORTCUTWIN
-
the shortcuts window (Qt version only)
var BWN_SIGNS
-
signatures
var BWN_SNIPPETS
-
the 'Execute script' window
var BWN_SNIPPETS_CSR
-
the list of snippets in the 'Execute script' window
var BWN_SO_OFFSETS
-
the 'Structure offsets' dialog's offset panel
var BWN_SO_STRUCTS
-
the 'Structure offsets' dialog's 'Structures and Unions' panel
var BWN_SRCPTHMAP_CSR
-
"Source paths..."'s path mappings chooser
var BWN_SRCPTHUND_CSR
-
"Source paths..."'s undesired paths chooser
var BWN_STACK
-
Alias. Some BWN_* were confusing, and thus have been renamed. This is to ensure bw-compat.
var BWN_STKVIEW
-
the 'Stack view' debugger window
var BWN_STRINGS
-
strings
var BWN_STRUCTS
-
structures
var BWN_THREADS
-
threads
var BWN_TILS
-
type libraries
var BWN_TRACE
-
tracing view
var BWN_UNDOHIST
-
Undo history.
var BWN_UNKNOWN
-
unknown window
var BWN_WATCH
-
the 'watches' debugger window
var BWN_XREFS
-
xrefs
var CB_CANCEL
-
CB_CANCEL = -7
var CB_CLOSE
-
CB_CLOSE = -3
var CB_DESTROYING
-
CB_DESTROYING = -5
var CB_INIT
-
CB_INIT = -1
var CB_INVISIBLE
-
CB_INVISIBLE = -4
var CB_NO
-
CB_NO = -6
var CB_YES
-
CB_YES = -2
var CDVF_LINEICONS
-
icons can be drawn over the line control
var CDVF_NOLINES
-
don't show line numbers
var CDVF_STATUSBAR
-
keep the status bar in the custom viewer
var CDVH_LINES_ALIGNMENT
-
see set_code_viewer_lines_alignment()
var CDVH_LINES_CLICK
-
see code_viewer_lines_click_t
var CDVH_LINES_DBLCLICK
-
see code_viewer_lines_click_t
var CDVH_LINES_DRAWICON
-
see code_viewer_lines_icon_t
var CDVH_LINES_ICONMARGIN
-
see set_code_viewer_lines_icon_margin()
var CDVH_LINES_LINENUM
-
see code_viewer_lines_linenum_t
var CDVH_LINES_POPUP
-
see code_viewer_lines_click_t
var CDVH_LINES_RADIX
-
see set_code_viewer_lines_radix()
var CDVH_SRCVIEW
-
see set_code_viewer_is_source()
var CDVH_USERDATA
-
see set_code_viewer_user_data()
var CH2_LAZY_LOADED
-
The chooser is lazy-loaded; it receives the callback do_lazy_load_dir() (only meaningful when CH_HAS_DIRTREE is set)
var CHCOL_DEC
-
decimal number
var CHCOL_DEFHIDDEN
-
column should be hidden by default
var CHCOL_DRAGHINT
-
the column number that will be used to build hints for the dragging undo label. This should be provided for at most one column for any given chooser.
var CHCOL_EA
-
address
var CHCOL_FNAME
-
function name
var CHCOL_FORMAT
-
column format mask
var CHCOL_HEX
-
hexadecimal number
var CHCOL_INODENAME
-
if CH_HAS_DIRTREE has been specified, this instructs the chooser that this column shows the inode name. This should be provided for at most one column for any given chooser.
var CHCOL_PATH
-
file path
var CHCOL_PLAIN
-
plain string
var CHITEM_BOLD
-
display the item in bold
var CHITEM_GRAY
-
gray out the item
var CHITEM_ITALIC
-
display the item in italic
var CHITEM_STRIKE
-
strikeout the item
var CHITEM_UNDER
-
underline the item
var CHOOSER_MENU_EDIT
-
CHOOSER_MENU_EDIT = 0
var CHOOSER_MENU_JUMP
-
CHOOSER_MENU_JUMP = 1
var CHOOSER_MENU_SEARCH
-
CHOOSER_MENU_SEARCH = 2
var CHOOSER_MULTI_SELECTION
-
CHOOSER_MULTI_SELECTION = 2
var CHOOSER_NOMAINMENU
-
do not display main menu
var CHOOSER_NOSTATUSBAR
-
do not display status bar (obsolete. Use CH_NO_STATUS_BAR instead)
var CHOOSER_NO_SELECTION
-
CHOOSER_NO_SELECTION = 1
var CHOOSER_POPUP_MENU
-
CHOOSER_POPUP_MENU = 4
var CH_ATTRS
-
generate ui_get_chooser_item_attrs (gui only)
var CH_BUILTIN_MASK
-
Mask for builtin chooser numbers. Plugins should not use them.
var CH_BUILTIN_SHIFT
-
CH_BUILTIN_SHIFT = 19
var CH_CAN_DEL
-
allow to delete existing item(s)
var CH_CAN_EDIT
-
allow to edit existing item(s)
var CH_CAN_INS
-
allow to insert new items
var CH_CAN_REFRESH
-
allow to refresh chooser
var CH_FORCE_DEFAULT
-
if a non-modal chooser was already open, change selection to the default one
var CH_HAS_DIFF
-
The chooser can be used in a diffing/merging workflow.
var CH_HAS_DIRTREE
-
The chooser can provide a dirtree_t, meaning a tree-like structure can be provided to the user (instead of a flat table)
var CH_KEEP
-
The chooser instance's lifecycle is not tied to the lifecycle of the widget showing its contents. Closing the widget will not destroy the chooser structure. This allows for, e.g., static global chooser instances that don't need to be allocated on the heap. Also stack-allocated chooser instances must set this bit.
var CH_MODAL
-
Modal chooser.
var CH_MULTI
-
The chooser will allow multi-selection (only for GUI choosers). This bit is set when using the chooser_multi_t structure.
var CH_MULTI_EDIT
-
Obsolete.
var CH_NOBTNS
-
do not display ok/cancel/help/search buttons. Meaningful only for gui modal windows because non-modal windows do not have any buttons anyway. Text mode does not have them neither.
var CH_NOIDB
-
use the chooser before opening the database
var CH_NON_PERSISTED_TREE
-
the chooser tree is not persisted (it is not loaded on startup and is not saved on exit)
var CH_NO_FILTER
-
The chooser will not have filtering abilities.
var CH_NO_SORT
-
The chooser will not have sorting abilities.
var CH_NO_STATUS_BAR
-
don't show a status bar
var CH_QFLT
-
open with quick filter enabled and focused
var CH_QFTYP_DEFAULT
-
set quick filtering type to the possible existing default for this chooser
var CH_QFTYP_FUZZY
-
fuzzy search quick filter type
var CH_QFTYP_MASK
-
CH_QFTYP_MASK = 57344
var CH_QFTYP_NORMAL
-
normal (i.e., lexicographical) quick filter type
var CH_QFTYP_REGEX
-
regex quick filter type
var CH_QFTYP_SHIFT
-
CH_QFTYP_SHIFT = 13
var CH_QFTYP_WHOLE_WORDS
-
whole words quick filter type
var CH_RENAME_IS_EDIT
-
triggering a 'edit/rename' (i.e., F2 shortcut) on a cell, should call the edit() callback for the corresponding row.
var CH_RESTORE
-
restore floating position if present (equivalent of WOPN_RESTORE) (GUI version only)
var CH_TM_FOLDERS_ONLY
-
chooser will show in folders-only mode
var CH_TM_FULL_TREE
-
chooser will show in no-tree mode
var CH_TM_MASK
-
CH_TM_MASK = 201326592
var CH_TM_NO_TREE
-
chooser will show up in no-tree mode
var CH_TM_SHIFT
-
CH_TM_SHIFT = 26
var CK_EXTRA1
-
extra background overlay #1
var CK_EXTRA10
-
extra background overlay #10
var CK_EXTRA11
-
extra background overlay #11
var CK_EXTRA12
-
extra background overlay #12
var CK_EXTRA13
-
extra background overlay #13
var CK_EXTRA14
-
extra background overlay #14
var CK_EXTRA15
-
extra background overlay #15
var CK_EXTRA16
-
extra background overlay #16
var CK_EXTRA2
-
extra background overlay #2
var CK_EXTRA3
-
extra background overlay #3
var CK_EXTRA4
-
extra background overlay #4
var CK_EXTRA5
-
extra background overlay #5
var CK_EXTRA6
-
extra background overlay #6
var CK_EXTRA7
-
extra background overlay #7
var CK_EXTRA8
-
extra background overlay #8
var CK_EXTRA9
-
extra background overlay #9
var CK_TRACE
-
traced address
var CK_TRACE_OVL
-
overlay trace address
var CLNL_FINDCMT
-
Search for the comment symbol everywhere in the line, not only at the beginning.
var CLNL_LTRIM
-
Remove leading space characters.
var CLNL_RTRIM
-
Remove trailing space characters.
var CLNL_TRIM
-
CLNL_TRIM = 3
var CREATETB_ADV
-
toolbar is for 'advanced mode' only
var CVH_CLICK
-
see custom_viewer_click_t
var CVH_CLOSE
-
see custom_viewer_close_t
var CVH_CURPOS
-
see custom_viewer_curpos_t
var CVH_DBLCLICK
-
see custom_viewer_dblclick_t
var CVH_HELP
-
see custom_viewer_help_t
var CVH_KEYDOWN
-
see custom_viewer_keydown_t
var CVH_MOUSEMOVE
-
see custom_viewer_mouse_moved_t
var CVH_POPUP
-
see custom_viewer_popup_t
var CVH_QT_AWARE
-
see set_custom_viewer_qt_aware()
var CVH_USERDATA
-
CVH_USERDATA = 0
var CVNF_ACT
-
activate (i.e., switch to) the viewer. Activation is performed before the new lochist_entry_t instance is actually copied to the viewer's lochist_t (otherwise, if the viewer was invisible its on_location_changed() handler wouldn't be called.)
var CVNF_JUMP
-
push the current position in this viewer's lochist_t before going to the new location
var CVNF_LAZY
-
try and move the cursor to a line displaying the place_t if possible. This might disregard the Y position in case of success
var DEFAULT_PLACE_LNNUM
-
DEFAULT_PLACE_LNNUM = -1
var DP_BEFORE
-
Place src_form before dst_form in the tab bar instead of after; used with DP_INSIDE or DP_TAB.
var DP_BOTTOM
-
Dock src_form below dest_form.
var DP_FLOATING
-
Make src_form floating.
var DP_INSIDE
-
Create a new tab bar with both src_form and dest_form.
var DP_LEFT
-
Dock src_form to the left of dest_form.
var DP_RIGHT
-
Dock src_form to the right of dest_form.
var DP_SZHINT
-
When floating or in a splitter (i.e., not tabbed), use the widget's size hint to determine the best geometry (Qt only)
var DP_TAB
-
Place src_form into a tab next to dest_form, if dest_form is in a tab bar (otherwise the same as DP_INSIDE)
var DP_TOP
-
Dock src_form above dest_form.
var HIF_IDENTIFIER
-
text is an identifier (i.e., when searching for the current highlight, SEARCH_IDENT will be used)
var HIF_LOCKED
-
locked; clicking/moving the cursor around doesn't change the highlight
var HIF_NOCASE
-
case insensitive
var HIF_REGISTER
-
text represents a register (aliases/subregisters will be highlit as well)
var HIF_SLOT_0
-
operate on slot 0
var HIF_SLOT_1
-
operate on slot 1
var HIF_SLOT_2
-
operate on slot 2
var HIF_SLOT_3
-
operate on slot 3
var HIF_SLOT_4
-
operate on slot 4
var HIF_SLOT_5
-
operate on slot 5
var HIF_SLOT_6
-
operate on slot 6
var HIF_SLOT_7
-
operate on slot 7
var HIF_SLOT_SHIFT
-
position of the 3 top bits specifying which highlight to use
var HIF_USE_SLOT
-
use the given number, or just use the "floating" highlight
var HIST_CMD
-
commands
var HIST_CMT
-
comments
var HIST_DIR
-
directory names (text version only)
var HIST_FILE
-
file names
var HIST_IDENT
-
names
var HIST_SEG
-
segment names
var HIST_SRCH
-
search substrings
var HIST_TYPE
-
type declarations
var IDCHK_ARG
-
bad argument(s)
var IDCHK_KEY
-
bad hotkey name
var IDCHK_MAX
-
too many IDC hotkeys
var IDCHK_OK
-
ok
var IK_ADD
-
IK_ADD = 107
var IK_APPS
-
IK_APPS = 93
var IK_BACK
-
IK_BACK = 8
var IK_BROWSER_BACK
-
IK_BROWSER_BACK = 166
var IK_BROWSER_FAVORITES
-
IK_BROWSER_FAVORITES = 171
var IK_BROWSER_FORWARD
-
IK_BROWSER_FORWARD = 167
var IK_BROWSER_HOME
-
IK_BROWSER_HOME = 172
var IK_BROWSER_REFRESH
-
IK_BROWSER_REFRESH = 168
var IK_BROWSER_SEARCH
-
IK_BROWSER_SEARCH = 170
var IK_BROWSER_STOP
-
IK_BROWSER_STOP = 169
var IK_CANCEL
-
IK_CANCEL = 3
var IK_CAPITAL
-
IK_CAPITAL = 20
var IK_CLEAR
-
IK_CLEAR = 12
var IK_CONTROL
-
IK_CONTROL = 17
var IK_DECIMAL
-
IK_DECIMAL = 110
var IK_DELETE
-
IK_DELETE = 46
var IK_DIVIDE
-
IK_DIVIDE = 111
var IK_DOWN
-
IK_DOWN = 40
var IK_END
-
IK_END = 35
var IK_ESCAPE
-
IK_ESCAPE = 27
var IK_EXECUTE
-
IK_EXECUTE = 43
var IK_F1
-
IK_F1 = 112
var IK_F10
-
IK_F10 = 121
var IK_F11
-
IK_F11 = 122
var IK_F12
-
IK_F12 = 123
var IK_F13
-
IK_F13 = 124
var IK_F14
-
IK_F14 = 125
var IK_F15
-
IK_F15 = 126
var IK_F16
-
IK_F16 = 127
var IK_F17
-
IK_F17 = 128
var IK_F18
-
IK_F18 = 129
var IK_F19
-
IK_F19 = 130
var IK_F2
-
IK_F2 = 113
var IK_F20
-
IK_F20 = 131
var IK_F21
-
IK_F21 = 132
var IK_F22
-
IK_F22 = 133
var IK_F23
-
IK_F23 = 134
var IK_F24
-
IK_F24 = 135
var IK_F3
-
IK_F3 = 114
var IK_F4
-
IK_F4 = 115
var IK_F5
-
IK_F5 = 116
var IK_F6
-
IK_F6 = 117
var IK_F7
-
IK_F7 = 118
var IK_F8
-
IK_F8 = 119
var IK_F9
-
IK_F9 = 120
var IK_HELP
-
IK_HELP = 47
var IK_HOME
-
IK_HOME = 36
var IK_INSERT
-
IK_INSERT = 45
var IK_KANA
-
IK_KANA = 21
var IK_LAUNCH_APP1
-
IK_LAUNCH_APP1 = 182
var IK_LAUNCH_APP2
-
IK_LAUNCH_APP2 = 183
var IK_LAUNCH_MAIL
-
IK_LAUNCH_MAIL = 180
var IK_LAUNCH_MEDIA_SELECT
-
IK_LAUNCH_MEDIA_SELECT = 181
var IK_LCONTROL
-
IK_LCONTROL = 162
var IK_LEFT
-
IK_LEFT = 37
var IK_LMENU
-
IK_LMENU = 164
var IK_LSHIFT
-
IK_LSHIFT = 160
var IK_LWIN
-
IK_LWIN = 91
var IK_MEDIA_NEXT_TRACK
-
IK_MEDIA_NEXT_TRACK = 176
var IK_MEDIA_PLAY_PAUSE
-
IK_MEDIA_PLAY_PAUSE = 179
var IK_MEDIA_PREV_TRACK
-
IK_MEDIA_PREV_TRACK = 177
var IK_MEDIA_STOP
-
IK_MEDIA_STOP = 178
var IK_MENU
-
IK_MENU = 18
var IK_MODECHANGE
-
IK_MODECHANGE = 31
var IK_MULTIPLY
-
IK_MULTIPLY = 106
var IK_NEXT
-
IK_NEXT = 34
var IK_NUMLOCK
-
IK_NUMLOCK = 144
var IK_NUMPAD0
-
IK_NUMPAD0 = 96
var IK_NUMPAD1
-
IK_NUMPAD1 = 97
var IK_NUMPAD2
-
IK_NUMPAD2 = 98
var IK_NUMPAD3
-
IK_NUMPAD3 = 99
var IK_NUMPAD4
-
IK_NUMPAD4 = 100
var IK_NUMPAD5
-
IK_NUMPAD5 = 101
var IK_NUMPAD6
-
IK_NUMPAD6 = 102
var IK_NUMPAD7
-
IK_NUMPAD7 = 103
var IK_NUMPAD8
-
IK_NUMPAD8 = 104
var IK_NUMPAD9
-
IK_NUMPAD9 = 105
var IK_OEM_1
-
IK_OEM_1 = 186
var IK_OEM_102
-
IK_OEM_102 = 226
var IK_OEM_2
-
IK_OEM_2 = 191
var IK_OEM_3
-
IK_OEM_3 = 192
var IK_OEM_4
-
IK_OEM_4 = 219
var IK_OEM_5
-
IK_OEM_5 = 220
var IK_OEM_6
-
IK_OEM_6 = 221
var IK_OEM_7
-
IK_OEM_7 = 222
var IK_OEM_CLEAR
-
IK_OEM_CLEAR = 254
var IK_OEM_COMMA
-
IK_OEM_COMMA = 188
var IK_OEM_FJ_MASSHOU
-
IK_OEM_FJ_MASSHOU = 147
var IK_OEM_FJ_TOUROKU
-
IK_OEM_FJ_TOUROKU = 148
var IK_OEM_MINUS
-
IK_OEM_MINUS = 189
var IK_OEM_PERIOD
-
IK_OEM_PERIOD = 190
var IK_OEM_PLUS
-
IK_OEM_PLUS = 187
var IK_PAUSE
-
IK_PAUSE = 19
var IK_PLAY
-
IK_PLAY = 250
var IK_PRINT
-
IK_PRINT = 42
var IK_PRIOR
-
IK_PRIOR = 33
var IK_RCONTROL
-
IK_RCONTROL = 163
var IK_RETURN
-
IK_RETURN = 13
var IK_RIGHT
-
IK_RIGHT = 39
var IK_RMENU
-
IK_RMENU = 165
var IK_RSHIFT
-
IK_RSHIFT = 161
var IK_RWIN
-
IK_RWIN = 92
var IK_SCROLL
-
IK_SCROLL = 145
var IK_SELECT
-
IK_SELECT = 41
var IK_SEPARATOR
-
IK_SEPARATOR = 108
var IK_SHIFT
-
IK_SHIFT = 16
var IK_SLEEP
-
IK_SLEEP = 95
var IK_SNAPSHOT
-
IK_SNAPSHOT = 44
var IK_SPACE
-
IK_SPACE = 32
var IK_SUBTRACT
-
IK_SUBTRACT = 109
var IK_TAB
-
IK_TAB = 9
var IK_UP
-
IK_UP = 38
var IK_VOLUME_DOWN
-
IK_VOLUME_DOWN = 174
var IK_VOLUME_MUTE
-
IK_VOLUME_MUTE = 173
var IK_VOLUME_UP
-
IK_VOLUME_UP = 175
var IK_ZOOM
-
IK_ZOOM = 251
var IWID_ADDRWATCH
-
address watches (47)
var IWID_ALL
-
mask
var IWID_BOOKMARKS
-
bookmarks list (59)
var IWID_BPTS
-
breakpoints (13)
var IWID_CALLS
-
function calls (11)
var IWID_CALLS_CALLEES
-
funcalls, callees (50)
var IWID_CALLS_CALLERS
-
funcalls, callers (49)
var IWID_CALL_STACK
-
call stack (17)
var IWID_CHOOSER
-
chooser (37)
var IWID_CLI
-
input line (33)
var IWID_CMDPALCSR
-
command palette (43)
var IWID_CMDPALWIN
-
command palette (44)
var IWID_CPUREGS
-
registers (40)
var IWID_CUSTVIEW
-
custom viewers (46)
var IWID_CV_LINE_INFOS
-
lineinfo widget (53)
var IWID_DISASM
-
disassembly views (29)
var IWID_DISASMS
-
IWID_DISASMS = 536870912
var IWID_DISASM_ARROWS
-
arrows widget (52)
var IWID_DUMP
-
hex dumps (30)
var IWID_DUMPS
-
IWID_DUMPS = 1073741824
var IWID_ENUMS
-
enumerations (27)
var IWID_EXPORTS
-
exports (0)
var IWID_FRAME
-
function frame (25)
var IWID_FUNCS
-
functions (3)
var IWID_IMPORTS
-
imports (1)
var IWID_LOCALS
-
locals (35)
var IWID_LOCTYPS
-
local types (10)
var IWID_MDVIEWCSR
-
lumina md view (51)
var IWID_MODULES
-
modules (15)
var IWID_NAMES
-
names (2)
var IWID_NAVBAND
-
navigation band (26)
var IWID_NOTEPAD
-
notepad (31)
var IWID_OUTPUT
-
output (32)
var IWID_PROBS
-
problems (12)
var IWID_PSEUDOCODE
-
decompiler (48)
var IWID_SCRIPTS_CSR
-
recent scripts (58)
var IWID_SEARCH
-
search results (19)
var IWID_SEARCHS
-
IWID_SEARCHS = 524288
var IWID_SEGREGS
-
segment registers (6)
var IWID_SEGS
-
segments (5)
var IWID_SELS
-
selectors (7)
var IWID_SHORTCUTCSR
-
shortcuts chooser (38)
var IWID_SHORTCUTWIN
-
shortcuts window (39)
var IWID_SIGNS
-
signatures (8)
var IWID_SNIPPETS
-
snippets (45)
var IWID_SNIPPETS_CSR
-
snippets chooser (57)
var IWID_SO_OFFSETS
-
stroff (42)
var IWID_SO_STRUCTS
-
stroff (41)
var IWID_SRCPTHMAP_CSR
-
mappings chooser (54)
var IWID_SRCPTHUND_CSR
-
undesired chooser (55)
var IWID_STACK
-
Alias. Some IWID_* were confusing, and thus have been renamed. This is to ensure bw-compat.
var IWID_STKVIEW
-
stack view (36)
var IWID_STRINGS
-
strings (4)
var IWID_STRUCTS
-
structures (28)
var IWID_THREADS
-
threads (14)
var IWID_TILS
-
type libraries (9)
var IWID_TRACE
-
tracing view (16)
var IWID_UNDOHIST
-
Undo history (56)
var IWID_WATCH
-
watches (34)
var IWID_XREFS
-
xrefs (18)
var LECVT_CANCELED
-
LECVT_CANCELED = -1
var LECVT_ERROR
-
LECVT_ERROR = 0
var LECVT_OK
-
LECVT_OK = 1
var LECVT_WITHIN_LISTING
-
LECVT_WITHIN_LISTING = 1
var LROEF_CPS_RANGE
-
background for range of chars
var LROEF_FULL_LINE
-
full line background
var LROEF_MASK
-
LROEF_MASK = 16777215
var MAX_SPACES_ADDED
-
MAX_SPACES_ADDED = 524288
var MFF_FAST
-
execute code as soon as possible this mode is ok call ui related functions that do not query the database.
var MFF_NOWAIT
-
Do not wait for the request to be executed. he caller should ensure that the request is not destroyed until the execution completes. if not, the request will be ignored. the return code of execute_sync() is meaningless in this case. This flag can be used to delay the code execution until the next UI loop run even from the main thread
var MFF_READ
-
execute code only when ida is idle and it is safe to query the database. this mode is recommended only for code that does not modify the database. (nb: ida may be in the middle of executing another user request, for example it may be waiting for him to enter values into a modal dialog box)
var MFF_WRITE
-
execute code only when ida is idle and it is safe to modify the database. in particular, this flag will suspend execution if there is a modal dialog box on the screen this mode can be used to call any ida api function. MFF_WRITE implies MFF_READ
var PCF_EA_CAPABLE
-
toea() implementation returns meaningful data
var PCF_MAKEPLACE_ALLOCATES
-
makeplace() returns a freshly allocated (i.e., non-static) instance. All new code should pass that flag to register_place_class(), and the corresponding makeplace() class implementation should return new instances.
var REG_HINTS_MARKER
-
REG_HINTS_MARKER = '\x01\x7f'
var REG_HINTS_MARKER_LEN
-
REG_HINTS_MARKER_LEN = 2
var RENADDR_HR
-
dialog for "Pseudocode"; additional flags:
- 0x01 Library function
- 0x02 Mark as decompiled
var RENADDR_IDA
-
dialog for "IDA View"
var SETMENU_APP
-
add menu item after the specified path
var SETMENU_ENSURE_SEP
-
make sure there is a separator before the action
var SETMENU_FIRST
-
add item to the beginning of menu
var SETMENU_IF_ENABLED
-
SETMENU_IF_ENABLED = 4
var SETMENU_INS
-
add menu item before the specified path (default)
var SETMENU_POSMASK
-
SETMENU_POSMASK = 3
var SRCDBG_HINTS_MARKER
-
SRCDBG_HINTS_MARKER = '\x01~'
var SRCDBG_HINTS_MARKER_LEN
-
SRCDBG_HINTS_MARKER_LEN = 2
var SVF_COPY_LINES
-
keep a local copy of '*lines'
var SVF_LINES_BYPTR
-
remember the 'lines' ptr. do not make a copy of '*lines'
var TCCPT_ENUMPLACE
-
enumplace_t
var TCCPT_IDAPLACE
-
idaplace_t
var TCCPT_INVALID
-
invalid
var TCCPT_PLACE
-
place_t
var TCCPT_SIMPLELINE_PLACE
-
simpleline_place_t
var TCCPT_STRUCTPLACE
-
structplace_t
var TCCRT_FLAT
-
flat view
var TCCRT_GRAPH
-
graph view
var TCCRT_INVALID
-
invalid
var TCCRT_PROXIMITY
-
proximity view
var UIJMP_ACTIVATE
-
activate the new window
var UIJMP_ANYVIEW
-
jump in any ea_t-capable view
var UIJMP_DONTPUSH
-
do not remember the current address in the navigation history
var UIJMP_IDAVIEW
-
jump in idaview
var UIJMP_IDAVIEW_NEW
-
jump in new idaview
var UIJMP_VIEWMASK
-
UIJMP_VIEWMASK = 12
var VES_ALT
-
VES_ALT = 2
var VES_CTRL
-
VES_CTRL = 4
var VES_META
-
VES_META = 128
var VES_MOUSE_LEFT
-
VES_MOUSE_LEFT = 8
var VES_MOUSE_MIDDLE
-
VES_MOUSE_MIDDLE = 32
var VES_MOUSE_RIGHT
-
VES_MOUSE_RIGHT = 16
var VES_SHIFT
-
state & 1 => Shift is pressed state & 2 => Alt is pressed state & 4 => Ctrl is pressed state & 8 => Mouse left button is pressed state & 16 => Mouse right button is pressed state & 32 => Mouse middle button is pressed state & 128 => Meta is pressed (OSX only)
var VME_LEFT_BUTTON
-
left mouse button
var VME_MID_BUTTON
-
middle mouse button
var VME_RIGHT_BUTTON
-
right mouse button
var VME_UNKNOWN
-
unknown mouse button
var WCLS_CLOSE_LATER
-
WCLS_CLOSE_LATER = 8
var WCLS_DELETE_LATER
-
assign the deletion of the widget to the UI loop ///<
var WCLS_DONT_SAVE_SIZE
-
don't save size of the window
var WCLS_NO_CONTEXT
-
don't change the current context (useful for toolbars)
var WCLS_SAVE
-
save state in desktop config
var WOPN_CLOSED_BY_ESC
-
override idagui.cfg:CLOSED_BY_ESC: esc will close
var WOPN_DP_BEFORE
-
Place widget before dst_form in the tab bar instead of after; used with WOPN_DP_INSIDE and WOPN_DP_TAB
var WOPN_DP_BOTTOM
-
Dock widget below dest_ctrl.
var WOPN_DP_FLOATING
-
Make widget floating.
var WOPN_DP_INSIDE
-
Create a new tab bar with both widget and dest_ctrl.
var WOPN_DP_INSIDE_BEFORE
-
WOPN_DP_INSIDE_BEFORE = 3145728
var WOPN_DP_LEFT
-
Dock widget to the left of dest_ctrl.
var WOPN_DP_MASK
-
WOPN_DP_MASK = 268369920
var WOPN_DP_RIGHT
-
Dock widget to the right of dest_ctrl.
var WOPN_DP_SHIFT
-
WOPN_DP_SHIFT = 16
var WOPN_DP_SZHINT
-
when floating or in a splitter (i.e., not tabbed), use the widget's size hint to determine the best geometry (Qt only)
var WOPN_DP_TAB
-
Place widget into a tab next to dest_ctrl, if dest_ctrl is in a tab bar (otherwise the same as WOPN_DP_INSIDE)
var WOPN_DP_TAB_BEFORE
-
WOPN_DP_TAB_BEFORE = 6291456
var WOPN_DP_TOP
-
Dock widget above dest_ctrl.
var WOPN_NOT_CLOSED_BY_ESC
-
override idagui.cfg:CLOSED_BY_ESC: esc will not close
var WOPN_PERSIST
-
widget will remain available when starting or stopping debugger sessions
var WOPN_RESTORE
-
if the widget was the only widget in a floating area the last time it was closed, it will be restored as floating, with the same position+size as before
var beep_default
-
beep_default = 0
var chtype_entry
-
see choose_entry()
var chtype_enum
-
see choose_enum()
var chtype_enum_by_value
-
Deprecated. See chtype_enum_by_value_and_size.
var chtype_enum_by_value_and_size
-
see choose_enum_by_value()
var chtype_func
-
see choose_func()
var chtype_generic
-
the generic choose() function
var chtype_idasgn
-
see choose_idasgn()
var chtype_idatil
-
see choose_til()
var chtype_name
-
see choose_name()
var chtype_segm
-
see choose_segm()
var chtype_srcp
-
see choose_srcp()
var chtype_stkvar_xref
-
see choose_stkvar_xref()
var chtype_strpath
-
see choose_struc_path()
var chtype_struc
-
see choose_struc()
var chtype_xref
-
see choose_xref()
var iek_key_press
-
iek_key_press = 2
var iek_key_release
-
iek_key_release = 3
-
iek_mouse_button_press = 4
-
iek_mouse_button_release = 5
var iek_mouse_wheel
-
iek_mouse_wheel = 6
var iek_shortcut
-
iek_shortcut = 1
var iek_unknown
-
iek_unknown = 0
var mbox_error
-
mbox_error = 3
var mbox_feedback
-
mbox_feedback = 5
var mbox_filestruct
-
mbox_filestruct = 8
var mbox_hide
-
mbox_hide = 10
var mbox_info
-
mbox_info = 1
var mbox_internal
-
internal error
var mbox_nomem
-
mbox_nomem = 4
var mbox_readerror
-
mbox_readerror = 6
var mbox_replace
-
mbox_replace = 11
var mbox_wait
-
mbox_wait = 9
var mbox_warning
-
mbox_warning = 2
var mbox_writeerror
-
mbox_writeerror = 7
var msg_activated
-
The message window is activated.
var msg_click
-
Click event.retval 1: handledretval 0: not handled (invoke default handler)
var msg_closed
-
View closed.
var msg_dblclick
-
Double click event.retval 1: handledretval 0: not handled (invoke default handler)
var msg_deactivated
-
The message window is deactivated.
var msg_keydown
-
Key down event.retval 1: handledretval 0: not handled (invoke default handler)
var nat_auto
-
nat_auto = 9
var nat_cod
-
nat_cod = 2
var nat_cur
-
nat_cur = 8
var nat_dat
-
nat_dat = 3
var nat_err
-
nat_err = 6
var nat_ext
-
nat_ext = 5
var nat_fun
-
nat_fun = 1
var nat_gap
-
nat_gap = 7
var nat_hlo
-
nat_hlo = 11
var nat_last
-
nat_last = 12
var nat_lib
-
nat_lib = 0
var nat_lum
-
nat_lum = 10
var nat_und
-
nat_und = 4
var view_activated
-
A view is activated
var view_click
-
Click event
var view_close
-
View closed
var view_created
-
A view is being created.
var view_curpos
-
Cursor position changed
var view_dblclick
-
Double click event
var view_deactivated
-
A view is deactivated
var view_keydown
-
Key down event
var view_loc_changed
-
The location for the view has changed (can be either the place_t, the renderer_info_t, or both.)
var view_mouse_moved
-
The mouse moved on the view
var view_mouse_over
-
The user moved the mouse over (or out of) a node or an edge. This is only relevant in a graph view.
var view_switched
-
A view's renderer has changed.
Functions
def TWidget__from_ptrval__(*args) ‑> TWidget *
-
TWidget__from_ptrval__(ptrval) -> TWidget *ptrval: size_t
def activate_widget(*args) ‑> void
-
activate_widget(widget, take_focus)Activate widget (only gui version) (ui_activate_widget).widget: (C++: TWidget *) existing widget to displaytake_focus: (C++: bool) give focus to given widget
def add_hotkey(*args) ‑> PyObject *
-
add_hotkey(hotkey, pyfunc) -> PyCapsuleAssociates a function call with a hotkey. Callable pyfunc will be called each time the hotkey is pressedhotkey: The hotkeypyfunc: Callablereturn: Context object on success or None on failure.
def add_idc_hotkey(*args) ‑> int
-
add_idc_hotkey(hotkey, idcfunc) -> intAdd hotkey for IDC function (ui_add_idckey).hotkey: (C++: const char *) hotkey nameidcfunc: (C++: const char *) IDC function namereturn: IDC hotkey error codes
def add_spaces(*args) ‑> PyObject *
-
add_spaces(s, len) -> strAdd space characters to the colored string so that its length will be at least 'len' characters. Don't trim the string if it is longer than 'len'.str: (C++: char *) pointer to colored string to modify (may not be nullptr)len: (C++: ssize_t) the desired length of the stringreturn: pointer to the end of input string
def addon_count(*args) ‑> int
-
addon_count() -> intGet number of installed addons.
def analyzer_options(*args) ‑> void
-
analyzer_options()Allow the user to set analyzer options. (show a dialog box) (ui_analyzer_options)
def ask_addr(defval, format)
-
Output a formatted string to the output window (msg) preprended with "**DATABASE IS CORRUPTED: " Display a dialog box and wait for the user to input an address (ui_ask_addr).retval 0: the user pressed Esc.retval 1: ok, the user entered an address
-
ask_buttons(Yes, No, Cancel, deflt, format) -> intDisplay a dialog box and get choice from maximum three possibilities (ui_ask_buttons).note: for all buttons:
- use "" or nullptr to take the default name for the button.
- prepend "HIDECANCEL\n" in 'format' to hide the Cancel button
Yes: (C++: const char *) text for the first buttonNo: (C++: const char *) text for the second buttonCancel: (C++: const char *) text for the third buttondeflt: (C++: int) default choice: one of Button IDsformat: (C++: const char *) printf-style format string for question. It may have someprefixes, see below.return: one of Button IDs specifying the selected button (Esc key returnsCancel/3rd button value) def ask_file(*args) ‑> char *
-
ask_file(for_saving, defval, format) -> char *for_saving: booldefval: char const *format: char const *
def ask_for_feedback(*args) ‑> void
-
ask_for_feedback(format)Show a message box asking to send the input file to support@hex-rays.com .format: (C++: const char *) the reason why the input file is bad
def ask_form(*args)
-
Display a dialog box and wait for the user. If the form contains the "BUTTON NO <title>" keyword, then the return values are the same as in the ask_yn() function (Button IDs)retval 0: no memory to display or form syntax error (a warning is displayed inthis case). the user pressed the 'No' button (if the form has it) or the user cancelled the dialog otherwise. all variables retain their original values.retval 1: ok, all input fields are filled and validated.retval -1: the form has the 'No' button and the user cancelled the dialog
def ask_ident(defval, format)
-
Display a dialog box and wait for the user to input an identifier. If the user enters a non-valid identifier, this function displays a warning and allows the user to correct it.return: false if the user cancelled the dialog, otherwise returns true.
def ask_long(defval, format)
-
Display a dialog box and wait for the user to input an number (ui_ask_long). The number is represented in C-style. This function allows to enter any IDC expression and properly calculates it.retval 0: if the user pressed Esc.retval 1: ok, the user entered a valid number.
def ask_seg(defval, format)
-
Display a dialog box and wait for the user to input an segment name (ui_ask_seg). This function allows to enter segment register names, segment base paragraphs, segment names to denote a segment.retval 0: if the user pressed Esc.retval 1: ok, the user entered an segment name
def ask_str(*args) ‑> PyObject *
-
ask_str(defval, hist, prompt) -> str or NoneAsks for a long textdefval: The default valuehist: history idprompt: The prompt valuereturn: None or the entered string
def ask_text(*args) ‑> PyObject *
-
ask_text(max_size, defval, prompt) -> strAsks for a long textmax_size: Maximum text length, 0 for unlimiteddefval: The default valueprompt: The prompt valuereturn: None or the entered string
def ask_yn(*args) ‑> int
-
ask_yn(deflt, format) -> intDisplay a dialog box and get choice from "Yes", "No", "Cancel".deflt: (C++: int) default choice: one of Button IDsformat: (C++: const char *) The question in printf() style formatreturn: the selected button (one of Button IDs). Esc key returns ASKBTN_CANCEL.
-
attach_action_to_menu(menupath, name, flags=0) -> boolAttach a previously-registered action to the menu (ui_attach_action_to_menu).note: You should not change top level menu, or the Edit,Plugins submenus If youwant to modify the debugger menu, do it at the ui_debugger_menu_change event (ida might destroy your menu item if you do it elsewhere).menupath: (C++: const char *) path to the menu item after or before which the insertion willtake place.
- Example: Debug/StartProcess
- Whitespace, punctuation are ignored.
- It is allowed to specify only the prefix of the menu item.
- Comparison is case insensitive.
- menupath may start with the following prefixes:
- [S] - modify the main menu of the structure window
- [E] - modify the main menu of the enum window
name: (C++: const char *) the action nameflags: (C++: int) a combination of Set menu flags, to determine menu item positionreturn: success def attach_action_to_popup(*args) ‑> bool
-
attach_action_to_popup(widget, popup_handle, name, popuppath=None, flags=0) -> boolInsert a previously-registered action into the widget's popup menu (ui_attach_action_to_popup). This function has two "modes": 'single-shot', and 'permanent'.widget: (C++: TWidget *) target widgetpopup_handle: (C++: TPopupMenu *) target popup menu
- if non-nullptr, the action is added to this popup menu invocation (i.e., 'single-shot')
- if nullptr, the action is added to a list of actions that should always be present in context menus for this widget (i.e., 'permanent'.)
name: (C++: const char *) action namepopuppath: (C++: const char *) can be nullptrflags: (C++: int) a combination of SETMENU_ flags (see Set menu flags)return: success def attach_action_to_toolbar(*args) ‑> bool
-
attach_action_to_toolbar(toolbar_name, name) -> boolAttach an action to an existing toolbar (ui_attach_action_to_toolbar).toolbar_name: (C++: const char *) the name of the toolbarname: (C++: const char *) the action namereturn: success
def attach_dynamic_action_to_popup(*args) ‑> bool
-
attach_dynamic_action_to_popup(unused, popup_handle, desc, popuppath=None, flags=0) -> boolCreate & insert an action into the widget's popup menu (::ui_attach_dynamic_action_to_popup). Note: The action description in the 'desc' parameter is modified bythis call so you should prepare a new description for each call.For example:desc = idaapi.action_desc_t(None, 'Dynamic popup action', Handler()) idaapi.attach_dynamic_action_to_popup(form, popup, desc)unused: deprecated; should be Nonepopup_handle: target popupdesc: action description of type action_desc_tpopuppath: can be Noneflags: a combination of SETMENU_ constantsreturn: success
-
banner(wait) -> boolShow a banner dialog box (ui_banner).wait: (C++: int) time to wait before closingretval 1: okretval 0: esc was pressed
def beep(*args) ‑> void
-
beep(beep_type=beep_default)Issue a beeping sound (ui_beep).beep_type: (C++: beep_t)
-
call_nav_colorizer(dict, ea, nbytes) -> uint32To be used with the IDA-provided colorizer, that is returned as result of the first call to set_nav_colorizer().dict: PyObject *ea: ea_tnbytes: asize_t
def cancel_exec_request(*args) ‑> bool
-
cancel_exec_request(req_id) -> boolTry to cancel an asynchronous exec request (ui_cancel_exec_request).req_id: (C++: int) request idretval true: successfully canceledretval false: request has already been processed.
def cancel_thread_exec_requests(*args) ‑> int
-
cancel_thread_exec_requests(tid) -> intTry to cancel asynchronous exec requests created by the specified thread.tid: (C++: qthread_t) thread idreturn: number of the canceled requests.
def choose_activate(*args) ‑> void
-
choose_activate(_self)self: PyObject *
def choose_choose(*args) ‑> PyObject *
-
choose_choose(_self) -> PyObject *self: PyObject *
def choose_close(*args) ‑> void
-
choose_close(_self)self: PyObject *
def choose_create_embedded_chobj(*args) ‑> PyObject *
-
choose_create_embedded_chobj(_self) -> PyObject *self: PyObject *
def choose_entry(*args) ‑> ea_t
-
choose_entry(title) -> ea_tChoose an entry point (ui_choose, chtype_entry).title: (C++: const char *) chooser titlereturn: ea of selected entry point, BADADDR if none selected
def choose_enum(*args) ‑> enum_t
-
choose_enum(title, default_id) -> enum_tChoose an enum (ui_choose, chtype_enum).title: (C++: const char *) chooser titledefault_id: (C++: enum_t) id of enum to select by defaultreturn: enum id of selected enum, BADNODE if none selected
def choose_enum_by_value(*args) ‑> uchar *
-
choose_enum_by_value(title, default_id, value, nbytes) -> enum_tChoose an enum, restricted by value & size (ui_choose, chtype_enum_by_value_and_size). If the given value cannot be found initially, this function will ask if the user would like to import a standard enum.title: (C++: const char *) chooser titledefault_id: (C++: enum_t) id of enum to select by defaultvalue: (C++: uint64) value to search fornbytes: (C++: int) size of valuereturn: enum id of selected (or imported) enum, BADNODE if none was found
def choose_find(*args) ‑> PyObject *
-
choose_find(title) -> MyChoose or Nonetitle: char const *
def choose_func(*args) ‑> func_t *
-
choose_func(title, default_ea) -> func_t *Choose a function (ui_choose, chtype_func).title: (C++: const char *) chooser titledefault_ea: (C++: ea_t) ea of function to select by defaultreturn: pointer to function that was selected, nullptr if none selected
def choose_get_widget(*args) ‑> TWidget *
-
choose_get_widget(_self) -> TWidget *self: PyObject *
def choose_idasgn(*args) ‑> PyObject *
-
choose_idasgn() -> PyObject *Opens the signature chooserreturn: None or the selected signature name
def choose_name(*args) ‑> ea_t
-
choose_name(title) -> ea_tChoose a name (ui_choose, chtype_name).title: (C++: const char *) chooser titlereturn: ea of selected name, BADADDR if none selected
def choose_refresh(*args) ‑> void
-
choose_refresh(_self)self: PyObject *
def choose_segm(*args) ‑> segment_t *
-
choose_segm(title, default_ea) -> segment_t *Choose a segment (ui_choose, chtype_segm).title: (C++: const char *) chooser titledefault_ea: (C++: ea_t) ea of segment to select by defaultreturn: pointer to segment that was selected, nullptr if none selected
def choose_srcp(*args) ‑> sreg_range_t *
-
choose_srcp(title) -> sreg_range_t *Choose a segment register change point (ui_choose, chtype_srcp).title: (C++: const char *) chooser titlereturn: pointer to segment register range of selected change point, nullptr ifnone selected
def choose_stkvar_xref(*args) ‑> ea_t
-
choose_stkvar_xref(pfn, mptr) -> ea_tChoose an xref to a stack variable (ui_choose, chtype_name).pfn: (C++: func_t *) functionmptr: (C++: member_t *) variablereturn: ea of the selected xref, BADADDR if none selected
def choose_struc(*args) ‑> struc_t *
-
choose_struc(title) -> struc_t *Choose a structure (ui_choose, chtype_segm).title: (C++: const char *) chooser title;return: pointer to structure that was selected, nullptr if none selected
def choose_til(*args) ‑> qstring *
-
choose_til() -> strChoose a type library (ui_choose, chtype_idatil).retval true: 'buf' was filled with the name of the selected tilretval false: otherwise
def choose_xref(*args) ‑> ea_t
-
choose_xref(to) -> ea_tChoose an xref to an address (ui_choose, chtype_xref).to: (C++: ea_t) referenced addressreturn: ea of selected xref, BADADDR if none selected
def clear_refresh_request(*args) ‑> void
-
clear_refresh_request(mask)mask: uint64
def close_chooser(*args) ‑> bool
-
close_chooser(title) -> boolClose a non-modal chooser (ui_close_chooser).title: (C++: const char *) window title of chooser to closereturn: success
def close_widget(*args) ‑> void
-
close_widget(widget, options)Close widget (ui_close_widget, only gui version).widget: (C++: TWidget *) pointer to the widget to closeoptions: (C++: int) Form close flags
def clr_cancelled(*args) ‑> void
-
clr_cancelled()Clear "Cancelled" flag (ui_clr_cancelled)
def create_code_viewer(*args) ‑> TWidget *
-
create_code_viewer(custview, flags=0, parent=None) -> TWidget *Create a code viewer (ui_create_code_viewer). A code viewer contains on the left side a widget representing the line numbers, and on the right side, the child widget passed as parameter. It will inherit its title from the child widget.custview: (C++: TWidget *) the custom view to be addedflags: (C++: int) Code viewer flagsparent: (C++: TWidget *) widget to contain the new code viewer
def create_empty_widget(*args) ‑> TWidget *
-
create_empty_widget(title, icon=-1) -> TWidget *Create an empty widget, serving as a container for custom user widgetstitle: (C++: const char *) char const *icon: (C++: int)
-
create_menu(name, label, menupath=None) -> boolCreate a menu with the given name, label and optional position, either in the menubar, or as a submenu. If 'menupath' is non-nullptr, it provides information about where the menu should be positioned. First, IDA will try and resolve the corresponding menu by its name. If such an existing menu is found and is present in the menubar, then the new menu will be inserted in the menubar before it. Otherwise, IDA will try to resolve 'menupath' as it would for attach_action_to_menu() and, if found, add the new menu like so: // The new 'My menu' submenu will appear in the 'Comments' submenu // before the 'Enter comment..." command create_menu("(...)", "My menu", "Edit/Comments/Enter comment..."); or // The new 'My menu' submenu will appear at the end of the // 'Comments' submenu. create_menu("(...)", "My menu", "Edit/Comments/"); If the above fails, the new menu will be appended to the menubar.name: (C++: const char *) name of menu (must be unique)label: (C++: const char *) label of menumenupath: (C++: const char *) where should the menu be insertedreturn: success
def create_toolbar(*args) ‑> bool
-
create_toolbar(name, label, before=None, flags=0) -> boolCreate a toolbar with the given name, label and optional positionname: (C++: const char *) name of toolbar (must be unique)label: (C++: const char *) label of toolbarbefore: (C++: const char *) if non-nullptr, the toolbar before which the new toolbar will beinsertedflags: (C++: int) a combination of create toolbar flags, to determine toolbarpositionreturn: success
def custom_viewer_jump(*args) ‑> bool
-
custom_viewer_jump(v, loc, flags=0) -> boolAppend 'loc' to the viewer's history, and cause the viewer to display it.v: (C++: TWidget *) (TWidget *)loc: (C++: const lochist_entry_t &) (const lochist_entry_t &)flags: (C++: uint32) (uint32) or'ed combination of CVNF_* valuesreturn: success
def del_hotkey(*args) ‑> bool
-
del_hotkey(pyctx) -> boolDeletes a previously registered function hotkeyctx: Hotkey context previously returned by add_hotkey()return: Boolean.
def del_idc_hotkey(*args) ‑> bool
-
del_idc_hotkey(hotkey) -> boolhotkey: char const *
-
delete_menu(name) -> boolDelete an existing menuname: (C++: const char *) name of menureturn: success
def delete_toolbar(*args) ‑> bool
-
delete_toolbar(name) -> boolDelete an existing toolbarname: (C++: const char *) name of toolbarreturn: success
-
detach_action_from_menu(menupath, name) -> boolDetach an action from the menu (ui_detach_action_from_menu).menupath: (C++: const char *) path to the menu itemname: (C++: const char *) the action namereturn: success
def detach_action_from_popup(*args) ‑> bool
-
detach_action_from_popup(widget, name) -> boolRemove a previously-registered action, from the list of 'permanent' context menu actions for this widget (ui_detach_action_from_popup). This only makes sense if the action has been added to 'widget's list of permanent popup actions by calling attach_action_to_popup in 'permanent' mode.widget: (C++: TWidget *) target widgetname: (C++: const char *) action name
def detach_action_from_toolbar(*args) ‑> bool
-
detach_action_from_toolbar(toolbar_name, name) -> boolDetach an action from the toolbar (ui_detach_action_from_toolbar).toolbar_name: (C++: const char *) the name of the toolbarname: (C++: const char *) the action namereturn: success
def display_copyright_warning(*args) ‑> bool
-
display_copyright_warning() -> boolDisplay copyright warning (ui_copywarn).return: yes/no
def display_widget(*args) ‑> void
-
display_widget(widget, options, dest_ctrl=None)Display a widget, dock it if not done beforewidget: (C++: TWidget *) widget to displayoptions: (C++: uint32) Widget open flagsdest_ctrl: (C++: const char *) where to dock: if nullptr or invalid then use the activedocker if there is not create a new tab relative to current active tab
def ea2str(*args) ‑> size_t
-
ea2str(ea) -> strConvert linear address to UTF-8 string.ea: (C++: ea_t)
def ea_viewer_history_push_and_jump(*args) ‑> bool
-
ea_viewer_history_push_and_jump(v, ea, x, y, lnnum) -> boolPush current location in the history and jump to the given location (ui_ea_viewer_history_push_and_jump). This will jump in the given ea viewer and also in other synchronized views.v: (C++: TWidget *) ea viewerea: (C++: ea_t) jump destinationx: (C++: int) ,y: coords on screenlnnum: (C++: int) desired line number of given addresslnnum: (C++: int) desired line number of given address
def enable_chooser_item_attrs(*args) ‑> bool
-
enable_chooser_item_attrs(chooser_caption, enable) -> boolEnable item-specific attributes for chooser items (ui_enable_chooser_item_attrs). For example: color list items differently depending on a criterium. If enabled, the chooser will generate ui_get_chooser_item_attrs events that can be intercepted by a plugin to modify the item attributes. This event is generated only in the GUI version of IDA. Specifying CH_ATTRS bit at the chooser creation time has the same effect.chooser_caption: (C++: const char *) char const *enable: (C++: bool)return: success
def error(*args) ‑> void
-
error(format)Display a fatal message in a message box and quit IDAformat: message to print
def execute_sync(*args) ‑> int
-
execute_sync(py_callable, reqf) -> intExecutes a function in the context of the main thread. If the current thread not the main thread, then the call is queued and executed afterwards.py_callable: A python callable object, must return an integer valuereqf: one of MFF_ flagsreturn: -1 or the return value of the callable
def execute_ui_requests(*args) ‑> bool
-
execute_ui_requests(py_list) -> boolInserts a list of callables into the UI message processing queue. When the UI is ready it will call one callable. A callable can request to be called more than once if it returns True.callable_list: A list of python callable objects.note: A callable should return True if it wants to be called more than once.return: Boolean. False if the list contains a non callable item
def find_widget(*args) ‑> TWidget *
-
find_widget(caption) -> TWidget *Find widget with the specified caption (only gui version) (ui_find_widget). NB: this callback works only with the tabbed widgets!caption: (C++: const char *) title of tab, or window title if widget is not tabbedreturn: pointer to the TWidget, nullptr if none is found
def formchgcbfa_close(*args) ‑> void
-
formchgcbfa_close(p_fa, close_normally)p_fa: size_tclose_normally: int
def formchgcbfa_enable_field(*args) ‑> bool
-
formchgcbfa_enable_field(p_fa, fid, enable) -> boolp_fa: size_tfid: intenable: bool
def formchgcbfa_get_field_value(*args) ‑> PyObject *
-
formchgcbfa_get_field_value(p_fa, fid, ft, sz) -> PyObject *p_fa: size_tfid: intft: intsz: size_t
def formchgcbfa_get_focused_field(*args) ‑> int
-
formchgcbfa_get_focused_field(p_fa) -> intp_fa: size_t
def formchgcbfa_move_field(*args) ‑> bool
-
formchgcbfa_move_field(p_fa, fid, x, y, w, h) -> boolp_fa: size_tfid: intx: inty: intw: inth: int
def formchgcbfa_refresh_field(*args) ‑> void
-
formchgcbfa_refresh_field(p_fa, fid)p_fa: size_tfid: int
def formchgcbfa_set_field_value(*args) ‑> bool
-
formchgcbfa_set_field_value(p_fa, fid, ft, py_val) -> boolp_fa: size_tfid: intft: intpy_val: PyObject *
def formchgcbfa_set_focused_field(*args) ‑> bool
-
formchgcbfa_set_focused_field(p_fa, fid) -> boolp_fa: size_tfid: int
def formchgcbfa_show_field(*args) ‑> bool
-
formchgcbfa_show_field(p_fa, fid, show) -> boolp_fa: size_tfid: intshow: bool
def free_custom_icon(*args) ‑> void
-
free_custom_icon(icon_id)Frees an icon loaded with load_custom_icon()icon_id: int
def gen_disasm_text(*args) ‑> void
-
gen_disasm_text(text, ea1, ea2, truncate_lines)Generate disassembly text for a range.text: (C++: text_t &) resultea1: (C++: ea_t) start addressea2: (C++: ea_t) end addresstruncate_lines: (C++: bool) (on idainfo::margin)
def get_action_checkable(*args) ‑> bool *
-
get_action_checkable(name) -> boolGet an action's checkability (ui_get_action_attr).name: (C++: const char *) the action namereturn: success
def get_action_checked(*args) ‑> bool *
-
get_action_checked(name) -> boolGet an action's checked state (ui_get_action_attr).name: (C++: const char *) the action namereturn: success
def get_action_icon(*args) ‑> int *
-
get_action_icon(name) -> boolGet an action's icon (ui_get_action_attr).name: (C++: const char *) the action namereturn: success
def get_action_label(*args) ‑> qstring *
-
get_action_label(name) -> strGet an action's label (ui_get_action_attr).name: (C++: const char *) the action namereturn: success
def get_action_shortcut(*args) ‑> qstring *
-
get_action_shortcut(name) -> strGet an action's shortcut (ui_get_action_attr).name: (C++: const char *) the action namereturn: success
def get_action_state(*args) ‑> action_state_t *
-
get_action_state(name) -> boolGet an action's state (ui_get_action_attr).name: (C++: const char *) the action namereturn: success
def get_action_tooltip(*args) ‑> qstring *
-
get_action_tooltip(name) -> strGet an action's tooltip (ui_get_action_attr).name: (C++: const char *) the action namereturn: success
def get_action_visibility(*args) ‑> bool *
-
get_action_visibility(name) -> boolGet an action's visibility (ui_get_action_attr).name: (C++: const char *) the action namereturn: success
def get_active_modal_widget(*args) ‑> TWidget *
-
get_active_modal_widget() -> TWidget *Get the current, active modal TWidget instance. Note that in this context, the "wait dialog" is not considered: this function will return nullptr even if it is currently shown.return: TWidget * the active modal widget, or nullptr
def get_addon_info(*args) ‑> bool
-
get_addon_info(id, info) -> boolGet info about a registered addon with a given product code. info->cb must be valid! NB: all pointers are invalidated by next call to register_addon or get_addon_infoid: (C++: const char *) char const *info: (C++: addon_info_t *)return: false if not found
def get_addon_info_idx(*args) ‑> bool
-
get_addon_info_idx(index, info) -> boolGet info about a registered addon with specific index. info->cb must be valid! NB: all pointers are invalidated by next call to register_addon or get_addon_infoindex: (C++: int)info: (C++: addon_info_t *)return: false if index is out of range
def get_chooser_data(*args) ‑> PyObject *
-
get_chooser_data(chooser_caption, n) -> [str, ...]Get the text corresponding to the index N in the chooser data. Use -1 to get the header.chooser_caption: (C++: const char *) char const *n: (C++: int)
def get_chooser_obj(*args) ‑> void *
-
get_chooser_obj(chooser_caption) -> void *Get the underlying object of the specified chooser (ui_get_chooser_obj).This attemps to find the choser by its title and, if found, returns the result of calling its chooser_base_t::get_chooser_obj() method.note: This is object is chooser-specific.chooser_caption: (C++: const char *) char const *return: the object that was used to create the chooser
def get_curline(*args) ‑> char const *
-
get_curline() -> char const *Get current line from the disassemble window (ui_get_curline).return: cptr current line with the color codes (use tag_remove() to remove thecolor codes)
def get_current_viewer(*args) ‑> TWidget *
-
get_current_viewer() -> TWidget *Get current ida viewer (idaview or custom viewer) (ui_get_current_viewer)
def get_current_widget(*args) ‑> TWidget *
-
get_current_widget() -> TWidget *Get a pointer to the current widget (ui_get_current_widget).
def get_cursor(*args) ‑> int *, int *
-
get_cursor() -> boolGet the cursor position on the screen (ui_get_cursor).note: coordinates are 0-basedretval true: pointers are filledretval false: no disassembly window open
def get_custom_viewer_curline(*args) ‑> char const *
-
get_custom_viewer_curline(custom_viewer, mouse) -> char const *Get current line of custom viewer (ui_get_custom_viewer_curline). The returned line contains color codescustom_viewer: (C++: TWidget *) viewmouse: (C++: bool) mouse position (otherwise cursor position)return: pointer to contents of current line
def get_custom_viewer_location(*args) ‑> bool
-
get_custom_viewer_location(out, custom_viewer, mouse=False) -> boolGet the current location in a custom viewer (ui_get_custom_viewer_location).out: (C++: lochist_entry_t *)custom_viewer: (C++: TWidget *)mouse: (C++: bool)
def get_custom_viewer_place(*args) ‑> int *, int *
-
get_custom_viewer_place(custom_viewer, mouse) -> place_tGet current place in a custom viewer (ui_get_curplace).See also the more complete get_custom_viewer_location()custom_viewer: (C++: TWidget *) viewmouse: (C++: bool) mouse position (otherwise cursor position)
def get_custom_viewer_place_xcoord(*args) ‑> int
-
get_custom_viewer_place_xcoord(custom_viewer, pline, pitem) -> intGet the X position of the item, in the linecustom_viewer: (C++: TWidget *) the widgetpline: (C++: const place_t *) a place corresponding to the linepitem: (C++: const place_t *) a place corresponding to the itemreturn: -1 if 'pitem' is not included in the line -2 if 'pitem' points at the entire line >= 0 for the X coordinate within the pline, where pitem points
def get_ea_viewer_history_info(*args) ‑> bool
-
get_ea_viewer_history_info(nback, nfwd, v) -> boolGet information about what's in the history (ui_ea_viewer_history_info).nback: (C++: int *) number of available back stepsnfwd: (C++: int *) number of available forward stepsv: (C++: TWidget *) ea viewerretval false: if the given ea viewer does not existretval true: otherwise
def get_hexdump_ea(*args) ‑> ea_t
-
get_hexdump_ea(hexdump_num) -> ea_tGet the current address in a hex view.hexdump_num: (C++: int) number of hexview window
def get_highlight(*args) ‑> PyObject *
-
get_highlight(v, in_flags=0) -> (str, int) or NoneReturns the currently highlighted identifier and flagsv: The UI widget to operate onflags: Optionally specify a slot (see kernwin.hpp), current otherwisereturn: a tuple (text, flags), or None if nothingis highlighted or in case of error.
def get_kernel_version(*args) ‑> size_t
-
get_kernel_version() -> strGet IDA kernel version (in a string like "5.1").
def get_key_code(*args) ‑> ushort
-
get_key_code(keyname) -> ushortGet keyboard key code by its name (ui_get_key_code)keyname: (C++: const char *) char const *
-
get_navband_ea(pixel) -> ea_tTranslate the pixel position on the navigation band, into an address.pixel: (C++: int)
-
get_navband_pixel(ea) -> intMaps an address, onto a pixel coordinate within the navbandea: The address to mapreturn: a list [pixel, is_vertical]
def get_opnum(*args) ‑> int
-
get_opnum() -> intGet current operand number, -1 means no operand (ui_get_opnum)
def get_output_curline(*args) ‑> qstring *
-
get_output_curline(mouse) -> strGet current line of output window (ui_get_output_curline).mouse: (C++: bool) current for mouse pointer?return: false if output contains no text
def get_output_cursor(*args) ‑> int *, int *
-
get_output_cursor() -> boolGet coordinates of the output window's cursor (ui_get_output_cursor).note: coordinates are 0-basednote: this function will succeed even if the output window is not visibleretval false: the output window has been destroyed.retval true: pointers are filled
def get_output_selected_text(*args) ‑> qstring *
-
get_output_selected_text() -> strReturns selected text from output window (ui_get_output_selected_text).return: true if there is a selection
def get_place_class(*args) ‑> place_t const *
-
get_place_class(out_flags, out_sdk_version, id) -> place_tGet information about a previously-registered place_t class. See also register_place_class().out_flags: (C++: int *) output flags (can be nullptr)out_sdk_version: (C++: int *) sdk version the place was created with (can be nullptr)id: (C++: int) place class IDreturn: the place_t template, or nullptr if not found
def get_place_class_id(*args) ‑> int
-
get_place_class_id(name) -> intGet the place class ID for the place that has been registered as 'name'.name: (C++: const char *) the class namereturn: the place class ID, or -1 if not found
def get_place_class_template(*args) ‑> place_t const *
-
get_place_class_template(id) -> place_tSee get_place_class()id: (C++: int)
def get_registered_actions(*args) ‑> PyObject *
-
get_registered_actions() -> [str, ...]Get a list of all currently-registered actions
def get_screen_ea(*args) ‑> ea_t
-
get_screen_ea() -> ea_tGet the address at the screen cursor (ui_screenea)
def get_synced_group(*args) ‑> synced_group_t const *
-
get_synced_group(w) -> synced_group_tGet the group of widgets/registers this view is synchronized withw: (C++: const TWidget *) the widgetreturn: the group of widgets/registers, or nullptr
def get_tab_size(*args) ‑> int
-
get_tab_size(path) -> intGet the size of a tab in spaces (ui_get_tab_size).path: (C++: const char *) the path of the source view for which the tab size is requested.
- if nullptr, the default size is returned.
def get_user_input_event(*args) ‑> bool
-
get_user_input_event(out) -> boolGet the current user input event (mouse button press, key press, ...) It is sometimes desirable to be able to tell when a certain situation happens (e.g., 'view_curpos' gets triggered); this function exists to provide that context (GUI version only)out: (C++: input_event_t *) the input event datareturn: false if we are not currently processing a user input event
def get_user_strlist_options(*args) ‑> void
-
get_user_strlist_options(out)out: strwinsetup_t *
def get_view_renderer_type(*args) ‑> tcc_renderer_type_t
-
get_view_renderer_type(v) -> tcc_renderer_type_tGet the type of renderer currently in use in the given view (ui_get_renderer_type)v: (C++: TWidget *)
def get_viewer_place_type(*args) ‑> tcc_place_type_t
-
get_viewer_place_type(viewer) -> tcc_place_type_tGet the type of place_t instances a viewer uses & creates (ui_get_viewer_place_type).viewer: (C++: TWidget *)
def get_viewer_user_data(*args) ‑> void *
-
get_viewer_user_data(viewer) -> void *Get the user data from a custom viewer (ui_get_viewer_user_data)viewer: (C++: TWidget *)
def get_widget_title(*args) ‑> qstring *
-
get_widget_title(widget) -> strGet the TWidget's title (ui_get_widget_title).widget: (C++: TWidget *)
def get_widget_type(*args) ‑> twidget_type_t
-
get_widget_type(widget) -> twidget_type_tGet the type of the TWidget * (ui_get_widget_type).widget: (C++: TWidget *)
def get_window_id(*args) ‑> void *
-
get_window_id(name=None) -> void *Get the system-specific window ID (GUI version only)name: (C++: const char *) name of the window (nullptr means the main IDA window)return: the low-level window ID
def hide_wait_box(*args) ‑> void
-
hide_wait_box()Hide the "Please wait dialog box".
def info(*args) ‑> void
-
info(format)format: char const *
def install_command_interpreter(*args) ‑> int
-
install_command_interpreter(py_obj) -> intInstall command line interpreter (ui_install_cli)py_obj: PyObject *
def internal_register_place_class(*args) ‑> int
-
internal_register_place_class(tmplate, flags, owner, sdk_version) -> inttmplate: place_t const *flags: intowner: plugin_t const *sdk_version: int
def is_action_enabled(*args) ‑> bool
-
is_action_enabled(s) -> boolCheck if the given action state is one of AST_ENABLE*.s: (C++: action_state_t) enum action_state_t
def is_chooser_widget(*args) ‑> bool
-
is_chooser_widget(t) -> boolDoes the given widget type specify a chooser widget?t: (C++: twidget_type_t)
def is_idaq(*args) ‑> bool
-
is_idaq() -> boolReturns True or False depending if IDAPython is hosted by IDAQ
def is_idaview(*args) ‑> bool
-
is_idaview(v) -> boolIs the given custom view an idaview? (ui_is_idaview)v: (C++: TWidget *)
def is_msg_inited(*args) ‑> bool
-
is_msg_inited() -> boolCan we use msg() functions?
def is_place_class_ea_capable(*args) ‑> bool
-
is_place_class_ea_capable(id) -> boolSee get_place_class()id: (C++: int)
def is_refresh_requested(*args) ‑> bool
-
is_refresh_requested(mask) -> boolGet a refresh request statemask: (C++: uint64) Window refresh flagsreturn: the state (set or cleared)
def jumpto(*args) ‑> bool
-
jumpto(ea, opnum=-1, uijmp_flags=0x0001) -> boolSet cursor position in custom ida viewer.custom_viewer: (C++: TWidget *) viewplace: (C++: place_t *) target positionuijmp_flags: intreturn: successjumpto(custom_viewer, place, x, y) -> boolcustom_viewer: TWidget *place: place_t *x: int
def l_compare2(*args) ‑> int
-
l_compare2(t1, t2, ud) -> intt1: place_t const *t2: place_t const *ud: void *
def load_custom_icon(file_name=None, data=None, format=None)
-
Loads a custom icon and returns an identifier that can be used with other APIsIf file_name is passed then the other two arguments are ignored.Load an icon and return its id (ui_load_custom_icon).return: icon id
def load_dbg_dbginfo(*args) ‑> bool
-
load_dbg_dbginfo(path, li=None, base=BADADDR, verbose=False) -> boolLoad debugging information from a file.path: (C++: const char *) path to fileli: (C++: linput_t *) loader input. if nullptr, check DBG_NAME_KEYbase: (C++: ea_t) loading addressverbose: (C++: bool) dump status to message window
def lookup_key_code(*args) ‑> ushort
-
lookup_key_code(key, shift, is_qt) -> ushortGet shortcut code previously created by ui_get_key_code.key: (C++: int) key constantshift: (C++: int) modifiersis_qt: (C++: bool) are we using gui version?
def msg(*args) ‑> PyObject *
-
msg(o) -> intDisplay an UTF-8 string in the message windowThe result of the stringification of the arguments will be treated as an UTF-8 string.message: message to print (formatting is done in Python)This function can be used to debug IDAPython scripts
def msg_clear(*args) ‑> void
-
msg_clear()Clear the "Output" window.
def msg_get_lines(*args) ‑> PyObject *
-
msg_get_lines(count=-1) -> [str, ...]Retrieve the last 'count' lines from the output window, in reverse order (from most recent, to least recent)count: (C++: int) The number of lines to retrieve. -1 means: all
def msg_save(*args) ‑> bool
-
msg_save(path) -> boolSave the "Output" window contents into a filepath: (C++: qstring &) The path of the file to save the contents into. An empty path meansthat the user will be prompted for the destination and, if the file already exists, the user will be asked to confirm before overriding its contents. Upon return, 'path' will contain the path that the user chose.return: success
def nomem(*args) ‑> void
-
nomem(format)format: char const *
def open_bookmarks_window(*args) ‑> TWidget *
-
open_bookmarks_window(w) -> TWidget *Open the bookmarks window (ui_open_builtin).w: (C++: TWidget *) The widget for which the bookmarks will open. For example, this can bean IDAView, or Enums view, etc.return: pointer to resulting window
def open_bpts_window(*args) ‑> TWidget *
-
open_bpts_window(ea) -> TWidget *Open the breakpoints window (ui_open_builtin).ea: (C++: ea_t) index of entry to select by defaultreturn: pointer to resulting window
def open_calls_window(*args) ‑> TWidget *
-
open_calls_window(ea) -> TWidget *Open the function calls window (ui_open_builtin).ea: (C++: ea_t)return: pointer to resulting window
def open_disasm_window(*args) ‑> TWidget *
-
open_disasm_window(window_title, ranges=None) -> TWidget *Open a disassembly view (ui_open_builtin).window_title: (C++: const char *) title of view to openranges: (C++: const rangevec_t *) if != nullptr, then display a flow chart with the specifiedrangesreturn: pointer to resulting window
def open_enums_window(*args) ‑> TWidget *
-
open_enums_window(const_id=BADADDR) -> TWidget *Open the enums window (ui_open_builtin).const_id: (C++: tid_t) index of entry to select by defaultreturn: pointer to resulting window
def open_exports_window(*args) ‑> TWidget *
-
open_exports_window(ea) -> TWidget *Open the exports window (ui_open_builtin).ea: (C++: ea_t) index of entry to select by defaultreturn: pointer to resulting window
def open_form(*args)
-
Display a dockable modeless dialog box and return a handle to it. The modeless form can be closed in the following ways:
- by pressing the small 'x' in the window title
- by calling form_actions_t::close() from the form callback (form_actions_t)
note: pressing the 'Yes/No/Cancel' buttons does not close the modeless form,except if the form callback explicitly calls close().return: handle to the form or nullptr. the handle can be used with TWidget def open_frame_window(*args) ‑> TWidget *
-
open_frame_window(pfn, offset) -> TWidget *Open the frame window for the given function (ui_open_builtin).pfn: (C++: func_t *) function to analyzeoffset: (C++: uval_t) offset where the cursor is placedreturn: pointer to resulting window if 'pfn' is a valid function and the windowwas displayed,nullptr otherwise
def open_funcs_window(*args) ‑> TWidget *
-
open_funcs_window(ea) -> TWidget *Open the 'Functions' window (ui_open_builtin).ea: (C++: ea_t) index of entry to select by defaultreturn: pointer to resulting window
def open_hexdump_window(*args) ‑> TWidget *
-
open_hexdump_window(window_title) -> TWidget *Open a hexdump view (ui_open_builtin).window_title: (C++: const char *) title of view to openreturn: pointer to resulting window
def open_imports_window(*args) ‑> TWidget *
-
open_imports_window(ea) -> TWidget *Open the exports window (ui_open_builtin).ea: (C++: ea_t) index of entry to select by defaultreturn: pointer to resulting window
def open_loctypes_window(*args) ‑> TWidget *
-
open_loctypes_window(ordinal) -> TWidget *Open the local types window (ui_open_builtin).ordinal: (C++: int) ordinal of type to select by defaultreturn: pointer to resulting window
def open_modules_window(*args) ‑> TWidget *
-
open_modules_window() -> TWidget *Open the modules window (ui_open_builtin).return: pointer to resulting window
def open_names_window(*args) ‑> TWidget *
-
open_names_window(ea) -> TWidget *Open the names window (ui_open_builtin).ea: (C++: ea_t) index of entry to select by defaultreturn: pointer to resulting window
-
open_navband_window(ea, zoom) -> TWidget *Open the navigation band window (ui_open_builtin).ea: (C++: ea_t) sets the address of the navband arrowzoom: (C++: int) sets the navband zoom levelreturn: pointer to resulting window
def open_notepad_window(*args) ‑> TWidget *
-
open_notepad_window() -> TWidget *Open the notepad window (ui_open_builtin).return: pointer to resulting window
def open_problems_window(*args) ‑> TWidget *
-
open_problems_window(ea) -> TWidget *Open the problems window (ui_open_builtin).ea: (C++: ea_t) index of entry to select by defaultreturn: pointer to resulting window
def open_segments_window(*args) ‑> TWidget *
-
open_segments_window(ea) -> TWidget *Open the segments window (ui_open_builtin).ea: (C++: ea_t) index of entry to select by defaultreturn: pointer to resulting window
def open_segregs_window(*args) ‑> TWidget *
-
open_segregs_window(ea) -> TWidget *Open the segment registers window (ui_open_builtin).ea: (C++: ea_t) index of entry to select by defaultreturn: pointer to resulting window
def open_selectors_window(*args) ‑> TWidget *
-
open_selectors_window() -> TWidget *Open the selectors window (ui_open_builtin).return: pointer to resulting window
def open_signatures_window(*args) ‑> TWidget *
-
open_signatures_window() -> TWidget *Open the signatures window (ui_open_builtin).return: pointer to resulting window
def open_stack_window(*args) ‑> TWidget *
-
open_stack_window() -> TWidget *Open the call stack window (ui_open_builtin).return: pointer to resulting window
def open_strings_window(*args) ‑> TWidget *
-
open_strings_window(ea, selstart=BADADDR, selend=BADADDR) -> TWidget *Open the 'Strings' window (ui_open_builtin).ea: (C++: ea_t) index of entry to select by defaultselstart: (C++: ea_t) ,selend: only display strings that occur within this rangeselend: (C++: ea_t)return: pointer to resulting window
def open_structs_window(*args) ‑> TWidget *
-
open_structs_window(id=BADADDR, offset=0) -> TWidget *Open the structs window (ui_open_builtin).id: (C++: tid_t) index of entry to select by defaultoffset: (C++: uval_t) offset where the cursor is placedreturn: pointer to resulting window
def open_threads_window(*args) ‑> TWidget *
-
open_threads_window() -> TWidget *Open the threads window (ui_open_builtin).return: pointer to resulting window
def open_tils_window(*args) ‑> TWidget *
-
open_tils_window() -> TWidget *Open the type libraries window (ui_open_builtin).return: pointer to resulting window
def open_trace_window(*args) ‑> TWidget *
-
open_trace_window() -> TWidget *Open the tracing window (ui_open_builtin).return: pointer to resulting window
def open_url(*args) ‑> void
-
open_url(url)Open the given url (ui_open_url)url: (C++: const char *) char const *
def open_xrefs_window(*args) ‑> TWidget *
-
open_xrefs_window(ea) -> TWidget *Open the cross references window (ui_open_builtin).ea: (C++: ea_t) index of entry to select by defaultreturn: pointer to resulting window
def place_t_as_enumplace_t(*args) ‑> enumplace_t *
-
place_t_as_enumplace_t(p) -> enumplace_tp: place_t *
def place_t_as_idaplace_t(*args) ‑> idaplace_t *
-
place_t_as_idaplace_t(p) -> idaplace_tp: place_t *
def place_t_as_simpleline_place_t(*args) ‑> simpleline_place_t *
-
place_t_as_simpleline_place_t(p) -> simpleline_place_tp: place_t *
def place_t_as_structplace_t(*args) ‑> structplace_t *
-
place_t_as_structplace_t(p) -> structplace_tp: place_t *
def plgform_close(*args) ‑> void
-
plgform_close(py_link, options)py_link: PyObject *options: int
def plgform_get_widget(*args) ‑> TWidget *
-
plgform_get_widget(py_link) -> TWidget *py_link: PyObject *
def plgform_new(*args) ‑> PyObject *
-
plgform_new() -> PyObject *
def plgform_show(*args) ‑> bool
-
plgform_show(py_link, py_obj, caption, options=(0x0040 << 16)|0x00000004u) -> boolpy_link: PyObject *py_obj: PyObject *caption: char const *options: int
def process_ui_action(*args) ‑> bool
-
process_ui_action(name, flags=0) -> boolInvokes an IDA UI action by namename: action nameflags: intreturn: Boolean
def py_chooser_base_t_get_row(*args) ‑> PyObject *
-
py_chooser_base_t_get_row(chobj, n) -> PyObject *chobj: chooser_base_t const *n: size_t
def py_get_ask_form(*args) ‑> size_t
-
py_get_ask_form() -> size_t
def py_get_open_form(*args) ‑> size_t
-
py_get_open_form() -> size_t
def py_load_custom_icon_data(*args) ‑> int
-
py_load_custom_icon_data(data, format) -> intdata: PyObject *format: char const *
def py_load_custom_icon_fn(*args) ‑> int
-
py_load_custom_icon_fn(filename) -> intfilename: char const *
def py_register_compiled_form(*args) ‑> void
-
py_register_compiled_form(py_form)py_form: PyObject *
def py_unregister_compiled_form(*args) ‑> void
-
py_unregister_compiled_form(py_form)py_form: PyObject *
def pyidag_bind(*args) ‑> bool
-
pyidag_bind(_self) -> boolself: PyObject *
def pyidag_unbind(*args) ‑> bool
-
pyidag_unbind(_self) -> boolself: PyObject *
def pyscv_add_line(*args) ‑> bool
-
pyscv_add_line(py_this, py_sl) -> boolpy_this: PyObject *py_sl: PyObject *
def pyscv_clear_lines(*args) ‑> PyObject *
-
pyscv_clear_lines(py_this) -> PyObject *py_this: PyObject *
def pyscv_close(*args) ‑> void
-
pyscv_close(py_this)py_this: PyObject *
def pyscv_count(*args) ‑> size_t
-
pyscv_count(py_this) -> size_tpy_this: PyObject *
def pyscv_del_line(*args) ‑> bool
-
pyscv_del_line(py_this, nline) -> boolpy_this: PyObject *nline: size_t
def pyscv_edit_line(*args) ‑> bool
-
pyscv_edit_line(py_this, nline, py_sl) -> boolpy_this: PyObject *nline: size_tpy_sl: PyObject *
def pyscv_get_current_line(*args) ‑> PyObject *
-
pyscv_get_current_line(py_this, mouse, notags) -> PyObject *py_this: PyObject *mouse: boolnotags: bool
def pyscv_get_current_word(*args) ‑> PyObject *
-
pyscv_get_current_word(py_this, mouse) -> PyObject *py_this: PyObject *mouse: bool
def pyscv_get_line(*args) ‑> PyObject *
-
pyscv_get_line(py_this, nline) -> PyObject *py_this: PyObject *nline: size_t
def pyscv_get_pos(*args) ‑> PyObject *
-
pyscv_get_pos(py_this, mouse) -> PyObject *py_this: PyObject *mouse: bool
def pyscv_get_selection(*args) ‑> PyObject *
-
pyscv_get_selection(py_this) -> PyObject *py_this: PyObject *
def pyscv_get_widget(*args) ‑> TWidget *
-
pyscv_get_widget(py_this) -> TWidget *py_this: PyObject *
def pyscv_init(*args) ‑> PyObject *
-
pyscv_init(py_link, title) -> PyObject *py_link: PyObject *title: char const *
def pyscv_insert_line(*args) ‑> bool
-
pyscv_insert_line(py_this, nline, py_sl) -> boolpy_this: PyObject *nline: size_tpy_sl: PyObject *
def pyscv_is_focused(*args) ‑> bool
-
pyscv_is_focused(py_this) -> boolpy_this: PyObject *
def pyscv_jumpto(*args) ‑> bool
-
pyscv_jumpto(py_this, ln, x, y) -> boolpy_this: PyObject *ln: size_tx: inty: int
def pyscv_patch_line(*args) ‑> bool
-
pyscv_patch_line(py_this, nline, offs, value) -> boolpy_this: PyObject *nline: size_toffs: size_tvalue: int
def pyscv_refresh(*args) ‑> bool
-
pyscv_refresh(py_this) -> boolpy_this: PyObject *
def pyscv_show(*args) ‑> bool
-
pyscv_show(py_this) -> boolpy_this: PyObject *
def qcleanline(*args) ‑> qstring *
-
qcleanline(cmt_char='\0', flags=((1 << 0)|(1 << 1))|(1 << 2)) -> str Performs some cleanup operations to a line.cmt_char: (C++: char) character that denotes the start of a comment:
- the entire text is removed if the line begins with this character (ignoring leading spaces)
- all text after (and including) this character is removed if flag CLNL_FINDCMT is set
flags: (C++: uint32) a combination of line cleanup flags. defaults to CLNL_TRIMreturn: length of line def read_range_selection(*args) ‑> ea_t *, ea_t *
-
read_range_selection(v) -> boolGet the address range for the selected range boundaries, this is the convenient function for read_selection()v: (C++: TWidget *) view, nullptr means the last active window containing addressesretval 0: no range is selectedretval 1: ok, start ea and end ea are filled
def read_selection(*args) ‑> bool
-
read_selection(v, p1, p2) -> boolRead the user selection, and store its information in p0 (from) and p1 (to).This can be used as follows:>>> p0 = idaapi.twinpos_t() p1 = idaapi.twinpos_t() view = idaapi.get_current_viewer() idaapi.read_selection(view, p0, p1)At that point, p0 and p1 hold information for the selection. But, the 'at' property of p0 and p1 is not properly typed. To specialize it, call #place() on it, passing it the view they were retrieved from. Like so:>>> place0 = p0.place(view) place1 = p1.place(view)This will effectively "cast" the place into a specialized type, holding proper information, depending on the view type (e.g., disassembly, structures, enums, ...)view: The view to retrieve the selection for.p1: Storage for the "to" part of the selection.p1: Storage for the "to" part of the selection.return: a bool value indicating success.
def refresh_chooser(*args) ‑> bool
-
refresh_chooser(title) -> boolMark a non-modal custom chooser for a refresh (ui_refresh_chooser).title: (C++: const char *) title of chooserreturn: success
def refresh_choosers(*args) ‑> void
-
refresh_choosers()
def refresh_custom_viewer(*args) ‑> void
-
refresh_custom_viewer(custom_viewer)Refresh custom ida viewer (ui_refresh_custom_viewer)custom_viewer: (C++: TWidget *)
def refresh_idaview(*args) ‑> void
-
refresh_idaview()Refresh marked windows (ui_refreshmarked)
def refresh_idaview_anyway(*args) ‑> void
-
refresh_idaview_anyway()Refresh all disassembly views (ui_refresh), forces an immediate refresh. Please consider request_refresh() instead
-
refresh_navband(force)Refresh navigation band if changed (ui_refresh_navband).force: (C++: bool) refresh regardless
def register_action(*args) ‑> bool
-
register_action(desc) -> boolCreate a new action (ui_register_action). After an action has been created, it is possible to attach it to menu items (attach_action_to_menu()), or to popup menus (attach_action_to_popup()).Because the actions will need to call the handler's activate() and update() methods at any time, you shouldn't build your action handler on the stack.Please see the SDK's "ht_view" plugin for an example how to register actions.desc: (C++: const action_desc_t &) action to registerreturn: success
def register_addon(*args) ‑> int
-
register_addon(info) -> intRegister an add-on. Show its info in the About box. For plugins, should be called from init() function (repeated calls with the same product code overwrite previous entries) returns: index of the add-on in the list, or -1 on errorinfo: (C++: const addon_info_t *) addon_info_t const *
-
register_and_attach_to_menu(menupath, name, label, shortcut, flags, handler, owner, action_desc_t_flags) -> boolHelper.You are not encouraged to use this, as it mixes flags for both register_action(), and attach_action_to_menu().The only reason for its existence is to make it simpler to port existing plugins to the new actions API.menupath: (C++: const char *) char const *name: (C++: const char *) char const *label: (C++: const char *) char const *shortcut: (C++: const char *) char const *flags: (C++: int)handler: (C++: action_handler_t *)owner: (C++: void *)action_desc_t_flags: (C++: int)
def register_timer(*args) ‑> PyObject *
-
register_timer(interval, py_callback) -> PyCapsuleRegister a timerinterval: Interval in millisecondspy_callback: A Python callable that takes no parameters and returns an integer.The callback may return: -1 : to unregister the timer >= 0 : the new or same timer intervalreturn: None or a timer object
def remove_command_interpreter(*args) ‑> void
-
remove_command_interpreter(cli_idx)Remove command line interpreter (ui_install_cli)cli_idx: int
def repaint_custom_viewer(*args) ‑> void
-
repaint_custom_viewer(custom_viewer)Repaint the given widget immediately (ui_repaint_qwidget)custom_viewer: (C++: TWidget *)
def replace_wait_box(*args) ‑> void
-
replace_wait_box(format)Replace the label of "Please wait dialog box".format: (C++: const char *) char const *
def request_refresh(*args) ‑> void
-
request_refresh(mask, cnd=True)Request a refresh of a builtin window.mask: (C++: uint64) Window refresh flagscnd: (C++: bool) set if true or clear flag otherwise
def restore_database_snapshot(*args) ‑> PyObject *
-
restore_database_snapshot(ss, pyfunc_or_none, pytuple_or_none) -> boolRestore a database snapshot. Note: This call is asynchronous. When it is completed, the callback will be triggered.ss: (C++: const snapshot_t *) snapshot instance (see build_snapshot_tree())pyfunc_or_none: PyObject *pytuple_or_none: PyObject *return: false if restoration could not be started (snapshot file was notfound).If the returned value is True then check if the operation succeeded from the callback.
def set_cancelled(*args) ‑> void
-
set_cancelled()Set "Cancelled" flag (ui_set_cancelled)
def set_code_viewer_handler(*args) ‑> void *
-
set_code_viewer_handler(code_viewer, handler_id, handler_or_data) -> void *Set a handler for a code viewer event (ui_set_custom_viewer_handler).code_viewer: (C++: TWidget *) the code viewerhandler_id: (C++: custom_viewer_handler_id_t) one of CDVH_ in custom_viewer_handler_id_thandler_or_data: (C++: void *) can be a handler or data. see examples in Functions:custom viewer handlersreturn: old value of the handler or data
def set_code_viewer_is_source(*args) ‑> bool
-
set_code_viewer_is_source(code_viewer) -> boolSpecify that the given code viewer is used to display source code (ui_set_custom_viewer_handler).code_viewer: (C++: TWidget *)
def set_code_viewer_line_handlers(*args) ‑> void
-
set_code_viewer_line_handlers(code_viewer, click_handler, popup_handler, dblclick_handler, drawicon_handler, linenum_handler)Set handlers for code viewer line events. Any of these handlers may be nullptrcode_viewer: (C++: TWidget *)click_handler: (C++: code_viewer_lines_click_t *)popup_handler: (C++: code_viewer_lines_click_t *)dblclick_handler: (C++: code_viewer_lines_click_t *)drawicon_handler: (C++: code_viewer_lines_icon_t *)linenum_handler: (C++: code_viewer_lines_linenum_t *)
def set_code_viewer_lines_alignment(*args) ‑> bool
-
set_code_viewer_lines_alignment(code_viewer, align) -> boolSet alignment for lines in a code viewer (ui_set_custom_viewer_handler).code_viewer: (C++: TWidget *)align: (C++: int)
def set_code_viewer_lines_icon_margin(*args) ‑> bool
-
set_code_viewer_lines_icon_margin(code_viewer, margin) -> boolSet space allowed for icons in the margin of a code viewer (ui_set_custom_viewer_handler).code_viewer: (C++: TWidget *)margin: (C++: int)
def set_code_viewer_lines_radix(*args) ‑> bool
-
set_code_viewer_lines_radix(code_viewer, radix) -> boolSet radix for values displayed in a code viewer (ui_set_custom_viewer_handler).code_viewer: (C++: TWidget *)radix: (C++: int)
def set_code_viewer_user_data(*args) ‑> bool
-
set_code_viewer_user_data(code_viewer, ud) -> boolSet the user data on a code viewer (ui_set_custom_viewer_handler).code_viewer: (C++: TWidget *)ud: (C++: void *)
def set_custom_viewer_qt_aware(*args) ‑> bool
-
set_custom_viewer_qt_aware(custom_viewer) -> boolAllow the given viewer to interpret Qt events (ui_set_custom_viewer_handler)custom_viewer: (C++: TWidget *)
def set_dock_pos(*args) ‑> bool
-
set_dock_pos(src_ctrl, dest_ctrl, orient, left=0, top=0, right=0, bottom=0) -> boolSets the dock orientation of a window relatively to another window.Use the left, top, right, bottom parameters if DP_FLOATING is used, or if you want to specify the width of docked windows.src_ctrl: char const *dest_ctrl: char const *orient: One of DP_XXXX constantsleft: inttop: intright: intbottom: intreturn: BooleanExample:set_dock_pos('Structures', 'Enums', DP_RIGHT) <- docks the Structures window to the right of Enums window
def set_highlight(*args) ‑> bool
-
set_highlight(viewer, str, flags) -> boolSet the highlighted identifier in the viewer (ui_set_highlight).viewer: (C++: TWidget *) the viewerstr: (C++: const char *) the text to match, or nullptr to remove currentflags: (C++: int) combination of HIF_... bits (see set_highlight flags)return: false if an error occurred
-
set_nav_colorizer(new_py_colorizer) -> dict or NoneSet a new colorizer for the navigation band.The 'callback' is a function of 2 arguments:
- ea (the EA to colorize for)
- nbytes (the number of bytes at that EA)
and must return a 'long' value.The previous colorizer is returned, allowing the new 'callback' to use 'call_nav_colorizer' with it.Note that the previous colorizer is returned only the first time set_nav_colorizer() is called: due to the way the colorizers API is defined in C, it is impossible to chain more than 2 colorizers in IDAPython: the original, IDA-provided colorizer, and a user-provided one.Example: colorizer inverting the color provided by the IDA colorizer:def my_colorizer(ea, nbytes):global ida_colorizer orig = idaapi.call_nav_colorizer(ida_colorizer, ea, nbytes) return long(~orig)ida_colorizer = idaapi.set_nav_colorizer(my_colorizer)new_py_colorizer: PyObject * def set_view_renderer_type(*args) ‑> void
-
set_view_renderer_type(v, rt)Set the type of renderer to use in a view (ui_set_renderer_type)v: (C++: TWidget *)rt: (C++: tcc_renderer_type_t) enum tcc_renderer_type_t
def show_wait_box(*args) ‑> void
-
show_wait_box(message)Display a dialog box with "Please wait...". The behavior of the dialog box can be configured with well-known tokens, that should be placed at the start of the format string: "HIDECANCEL\n": the cancel button won't be added to the dialog box and user_cancelled() will always return false (but can be caled to refresh UI). "NODELAY\n": the dialog will show immediately, instead of appearing after usual grace threshold Plugins must call hide_wait_box() to close the dialog box, otherwise the user interface will remain disabled. Note that, if the wait dialog is already visible, show_wait_box() will 1) push the currently-displayed text on a stack 2) display the new text Then, when hide_wait_box() is called, if that stack isn't empty its top label will be popped and restored in the wait dialog. This implies that a plugin should call hide_wait_box() exactly as many times as it called show_wait_box(), or the wait dialog might remain visible and block the UI. Also, in case the plugin knows the wait dialog is currently displayed, alternatively it can call replace_wait_box(), to replace the text of the dialog without pushing the currently-displayed text on the stack.message: char const *
def str2ea(*args) ‑> ea_t
-
str2ea(str, screenEA=BADADDR) -> ea_tConverts a string express to EA. The expression evaluator may be called as well.str: char const *screenEA: ea_treturn: BADADDR or address value
def strarray(*args) ‑> char const *
-
strarray(array, array_size, code) -> char const *Find a line with the specified code in the strarray_t array. If the last element of the array has code==0 then it is considered as the default entry. If no default entry exists and the code is not found, strarray() returns "".array: (C++: const strarray_t *) strarray_t const *array_size: (C++: size_t)code: (C++: int)
def sync_sources(*args) ‑> bool
-
sync_sources(what, _with, sync) -> bool[Un]synchronize sourceswhat: (C++: const sync_source_t &)with: (C++: const sync_source_t &)sync: (C++: bool)return: success
def take_database_snapshot(*args) ‑> PyObject *
-
take_database_snapshot(ss) -> (bool, NoneType)Take a database snapshot (ui_take_database_snapshot).ss: (C++: snapshot_t *) in/out parameter.
- in: description, flags
- out: filename, id
return: success def textctrl_info_t_assign(*args) ‑> bool
-
textctrl_info_t_assign(_self, other) -> boolself: PyObject *other: PyObject *
def textctrl_info_t_create(*args) ‑> PyObject *
-
textctrl_info_t_create() -> PyObject *
def textctrl_info_t_destroy(*args) ‑> bool
-
textctrl_info_t_destroy(py_obj) -> boolpy_obj: PyObject *
def textctrl_info_t_get_clink(*args) ‑> textctrl_info_t *
-
textctrl_info_t_get_clink(_self) -> textctrl_info_t *self: PyObject *
def textctrl_info_t_get_clink_ptr(*args) ‑> PyObject *
-
textctrl_info_t_get_clink_ptr(_self) -> PyObject *self: PyObject *
def textctrl_info_t_get_flags(*args) ‑> unsigned int
-
textctrl_info_t_get_flags(_self) -> unsigned intself: PyObject *
def textctrl_info_t_get_tabsize(*args) ‑> unsigned int
-
textctrl_info_t_get_tabsize(_self) -> unsigned intself: PyObject *
def textctrl_info_t_get_text(*args) ‑> char const *
-
textctrl_info_t_get_text(_self) -> char const *self: PyObject *
def textctrl_info_t_set_flags(*args) ‑> bool
-
textctrl_info_t_set_flags(_self, flags) -> boolself: PyObject *flags: unsigned int
def textctrl_info_t_set_tabsize(*args) ‑> bool
-
textctrl_info_t_set_tabsize(_self, tabsize) -> boolself: PyObject *tabsize: unsigned int
def textctrl_info_t_set_text(*args) ‑> bool
-
textctrl_info_t_set_text(_self, s) -> boolself: PyObject *s: char const *
def ui_load_new_file(*args) ‑> bool
-
ui_load_new_file(temp_file, filename, pli, neflags, ploaders) -> boolDisplay a load file dialog and load file (ui_load_file).temp_file: (C++: qstring *) name of the file with the extracted archive member.filename: (C++: qstring *) the name of input file as is, library or archive namepli: (C++: linput_t **) loader input source, may be changed to point to temp_fileneflags: (C++: ushort) combination of NEF_... bits (see Load file flags)ploaders: (C++: load_info_t **) list of loaders which accept file, may be changed for loadersof temp_fileretval true: file was successfully loadedretval false: otherwise
def ui_run_debugger(*args) ‑> bool
-
ui_run_debugger(dbgopts, exename, argc, argv) -> boolLoad a debugger plugin and run the specified program (ui_run_dbg).dbgopts: (C++: const char *) value of the -r command line switchexename: (C++: const char *) name of the file to runargc: (C++: int) number of arguments for the executableargv: (C++: const char *const *) argument vectorreturn: success
def unmark_selection(*args) ‑> void
-
unmark_selection()Unmark selection (ui_unmarksel)
def unregister_action(*args) ‑> bool
-
unregister_action(name) -> boolDelete a previously-registered action (ui_unregister_action).name: (C++: const char *) name of actionreturn: success
def unregister_timer(*args) ‑> bool
-
unregister_timer(py_timerctx) -> boolUnregister a timertimer_obj: a timer object previously returned by a register_timer()return: Booleannote: After the timer has been deleted, the timer_obj will become invalid.
def update_action_checkable(*args) ‑> bool
-
update_action_checkable(name, checkable) -> boolUpdate an action's checkability (ui_update_action_attr).name: (C++: const char *) action namecheckable: (C++: bool) new checkabilityreturn: success
def update_action_checked(*args) ‑> bool
-
update_action_checked(name, checked) -> boolUpdate an action's checked state (ui_update_action_attr).name: (C++: const char *) action namechecked: (C++: bool) new checked statereturn: success
def update_action_icon(*args) ‑> bool
-
update_action_icon(name, icon) -> boolUpdate an action's icon (ui_update_action_attr).name: (C++: const char *) action nameicon: (C++: int) new icon idreturn: success
def update_action_label(*args) ‑> bool
-
update_action_label(name, label) -> boolUpdate an action's label (ui_update_action_attr).name: (C++: const char *) action namelabel: (C++: const char *) new labelreturn: success
def update_action_shortcut(*args) ‑> bool
-
update_action_shortcut(name, shortcut) -> boolUpdate an action's shortcut (ui_update_action_attr).name: (C++: const char *) action nameshortcut: (C++: const char *) new shortcutreturn: success
def update_action_state(*args) ‑> bool
-
update_action_state(name, state) -> boolUpdate an action's state (ui_update_action_attr).name: (C++: const char *) action namestate: (C++: action_state_t) new statereturn: success
def update_action_tooltip(*args) ‑> bool
-
update_action_tooltip(name, tooltip) -> boolUpdate an action's tooltip (ui_update_action_attr).name: (C++: const char *) action nametooltip: (C++: const char *) new tooltipreturn: success
def update_action_visibility(*args) ‑> bool
-
update_action_visibility(name, visible) -> boolUpdate an action's visibility (ui_update_action_attr).name: (C++: const char *) action namevisible: (C++: bool) new visibilityreturn: success
def user_cancelled(*args) ‑> bool
-
user_cancelled() -> boolTest the ctrl-break flag (ui_test_cancelled).retval 1: Ctrl-Break is detected, a message is displayedretval 2: Ctrl-Break is detected again, a message is not displayedretval 0: Ctrl-Break is not detected
def warning(*args) ‑> void
-
warning(format)Display a message in a message boxmessage: message to print (formatting is done in Python)This function can be used to debug IDAPython scripts The user will be able to hide messages if they appear twice in a row on the screen
Classes
class Choose (title, cols, flags=0, popup_names=None, icon=-1, x1=-1, y1=-1, x2=-1, y2=-1, deflt=None, embedded=False, width=None, height=None, forbidden_cb=0, flags2=0)
-
Chooser wrapper class.Some constants are defined in this class. Please refer to kernwin.hpp for more information.Constructs a chooser window.title: The chooser titlecols: a list of colums; each list item is a list of two itemsexample: [ ["Address", 10 | Choose.CHCOL_HEX],["Name", 30 | Choose.CHCOL_PLAIN] ]flags: One of CH_XXXX constantsflags2: One of CH2_XXXX constantsdeflt: The index of the default item (0-based) for singleselection choosers or the list of indexes for multi selection chooserpopup_names: List of new captions to replace this list["Insert", "Delete", "Edit", "Refresh"]icon: Icon index (the icon should exist in ida resources oran index to a custom loaded icon)x1: , y1, x2, y2: The default location (for txt-version)embedded: Create as embedded chooserwidth: Embedded chooser widthheight: Embedded chooser heightforbidden_cb: Explicitly forbidden callbacks
Class variables
var ALL_CHANGED
var ALREADY_EXISTS
-
the non-modal chooser with the same data is already open
var CHCOL_DEC
var CHCOL_DEFHIDDEN
var CHCOL_DRAGHINT
var CHCOL_EA
var CHCOL_FNAME
var CHCOL_FORMAT
var CHCOL_HEX
var CHCOL_INODENAME
var CHCOL_PATH
var CHCOL_PLAIN
var CHOOSE_HAVE_DEL
var CHOOSE_HAVE_EDIT
var CHOOSE_HAVE_ENTER
var CHOOSE_HAVE_GETATTR
var CHOOSE_HAVE_GETICON
var CHOOSE_HAVE_INIT
var CHOOSE_HAVE_INS
var CHOOSE_HAVE_ONCLOSE
var CHOOSE_HAVE_REFRESH
var CHOOSE_HAVE_SELECT
var CH_ATTRS
var CH_BUILTIN_MASK
-
The chooser can provide a dirtree_t, meaning a tree-like structure can be provided to the user (instead of a flat table)
var CH_BUILTIN_SHIFT
var CH_CAN_DEL
-
allow to delete existing item(s)
var CH_CAN_EDIT
-
allow to edit existing item(s)
var CH_CAN_INS
-
allow to insert new items
var CH_CAN_REFRESH
-
allow to refresh chooser
var CH_FORCE_DEFAULT
-
If a non-modal chooser was already open, change selection to the given default one
var CH_HAS_DIFF
var CH_HAS_DIRTREE
-
The chooser can be used in a diffing/merging workflow
var CH_MODAL
-
Modal chooser
var CH_MULTI
-
Allow multi selection. Refer the description of the OnInsertLine(), OnDeleteLine(), OnEditLine(), OnSelectLine(), OnRefresh(), OnSelectionChange() to see a difference between single and multi selection callbacks.
var CH_NOBTNS
var CH_NOIDB
-
use the chooser even without an open database, same as x0=-2
var CH_NO_STATUS_BAR
-
don't show a status bar
var CH_QFLT
-
open with quick filter enabled and focused
var CH_QFTYP_DEFAULT
var CH_QFTYP_FUZZY
var CH_QFTYP_MASK
var CH_QFTYP_NORMAL
var CH_QFTYP_REGEX
var CH_QFTYP_SHIFT
var CH_QFTYP_WHOLE_WORDS
var CH_RENAME_IS_EDIT
-
triggering a 'edit/rename' (i.e., F2 shortcut) on a cell, should call the edit() callback for the corresponding row.
var CH_RESTORE
-
restore floating position if present (equivalent of WOPN_RESTORE) (GUI version only)
var EMPTY_CHOOSER
-
the chooser is initialized
var NOTHING_CHANGED
var NO_ATTR
-
some mandatory attribute is missing
var NO_SELECTION
-
there is no selected item
var SELECTION_CHANGED
var UI_Hooks_Trampoline
-
Proxy of C++ UI_Hooks class.
Methods
def Activate(self)
-
Activates a visible chooser
def AddCommand(self, caption, flags=4, menu_index=-1, icon=-1, emb=None, shortcut=None)
def Close(self)
-
Closes the chooser
def Embedded(self, create_chobj=False)
-
Creates an embedded chooser (as opposed to Show())return: Returns 0 on success or NO_ATTR
def GetEmbSelection(self)
-
Deprecated. For embedded choosers, the selection is available through 'Form.EmbeddedChooserControl.selection'
def GetWidget(self)
-
Return the TWidget underlying this view.return: The TWidget underlying this view, or None.
def OnClose(self)
-
The chooser window is closed.
def OnDeleteLine(self, sel)
-
User deleted an elementsel: the current selectionreturn: a tuple (changed, selection)
def OnEditLine(self, sel)
-
User asked to edit an element.sel: the current selectionreturn: a tuple (changed, selection)
def OnGetDirTree(self)
-
Get the dirtree_t that will be used to present a tree-like structure to the user (see CH_HAS_DIRTREE)return: the dirtree_t, or None
def OnGetIcon(self, n)
-
Get an icon to associate with the first cell of an elementn: index of the elementreturn: an icon ID
def OnGetLine(self, n)
-
Get data for an elementThis callback is mandatoryn: the index to fetch data forreturn: a list of strings
def OnGetLineAttr(self, n)
-
Get attributes for an elementn: index of the elementreturn: a tuple (color, flags)
def OnGetSize(self)
-
Get the number of elements in the chooser.This callback is mandatoryreturn: the number of elements
def OnIndexToDiffpos(self, n)
-
Map an element index to a diffpos_tThis callback is mandatory if CH_HAS_DIFF is specifiedn: index of the elementreturn: the diffpos
def OnIndexToInode(self, n)
-
Map an element index to a dirtree_t inodeThis callback is mandatory if CH_HAS_DIRTREE is specifiedn: index of the elementreturn: the inode number
def OnInit(self)
-
Initialize the chooser and populate it.This callback is optional
def OnInsertLine(self, sel)
-
User asked to insert an elementsel: the current selectionreturn: a tuple (changed, selection)
def OnLazyLoadDir(self, path)
-
Callback for lazy-loaded, dirtree-based choosers; the function will be called when a folder is expanded and it has not been loaded before. The implementation should use the given dirtree's link() or mkdir() methods to add the folder contents.path: an absolute dirtree path to the directory that is being expandedreturn: success
def OnPopup(self, widget, popup_handle)
def OnRefresh(self, sel)
-
The chooser needs to be refreshed. It returns the new positions of the selected items.sel: the current selectionreturn: a tuple (changed, selection)
def OnSelectLine(self, sel)
-
User pressed the enter key, or double-clicked a selectionsel: the current selectionreturn: a tuple (changed, selection)
def OnSelectionChange(self, sel)
-
Selection changedsel: the new selection
def Refresh(self)
-
Causes the refresh callback to trigger
def Show(self, modal=False)
-
Activates or creates a chooser windowmodal: Display as modal dialogreturn: For all choosers it will return NO_ATTR if some mandatoryattribute is missing. The mandatory attributes are: flags, title, cols, OnGetSize(), OnGetLine(); For modal choosers it will return the selected item index (0-based), or NO_SELECTION if no selection, or EMPTY_CHOOSER if the OnRefresh() callback returns EMPTY_CHOOSER; For non-modal choosers it will return 0 or ALREADY_EXISTS if the chooser was already open and is active now;
def adjust_last_item(self, n)
-
Helper for OnDeleteLine() and OnRefresh() callbacks. They can be finished by the following line: return [Choose.ALL_CHANGED] + self.adjust_last_item(n)line: number of the remaining select itemreturn: list of selected lines numbers (one element or empty)
class CustomIDAMemo
-
Proxy of C++ View_Hooks class.__init__(self, _flags=0, _hkcb_flags=0x0001) -> View_Hooks_flags: uint32_hkcb_flags: uint32
Ancestors
Subclasses
Methods
def 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}groups_infos: A list of objects that describe those groups.return: A [<int>, <int>, ...] list of group nodes, or None (failure).
def DelNodesInfos(self, *nodes)
-
Delete the properties for the given node(s).nodes: A list of node IDs
def DeleteGroups(self, groups, new_current=-1)
-
Send a request to delete the specified groups in the graph, and perform an animation.groups: A list of group node numbers.new_current: A node to focus on after the groups have been deletedreturn: True on success, False otherwise.
def GetCurrentRendererType(self)
def GetNodeInfo(self, *args)
-
Get the properties for the given node.ni: A node_info_t instancenode: The index of the node.return: success
def GetWidget(self)
-
Return the TWidget underlying this view.return: The TWidget underlying this view, or None.
def GetWidgetAsGraphViewer(self)
-
Return the graph_viewer_t underlying this view.return: The graph_viewer_t underlying this view, or None.
def Refresh(self)
-
Refreshes the view. This causes the OnRefresh() to be called
def SetCurrentRendererType(self, rtype)
-
Set the current view's renderer.rtype: The renderer type. Should be one of the idaapi.TCCRT_* values.
def SetGroupsVisibility(self, groups, expand, new_current=-1)
-
Send a request to expand/collapse the specified groups in the graph, and perform an animation.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.return: True on success, False otherwise.
def 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)node_index: The node index.node_info: An idaapi.node_info_t instance.flags: An OR'ed value of NIF_* values.
def 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})values: A dictionary of 'int -> node_info_t' objects.
Inherited members
class Form (form, controls)
-
Contruct a Form class. This class wraps around ask_form() or open_form() and provides an easier / alternative syntax for describing forms. The form control names are wrapped inside the opening and closing curly braces and the control themselves are defined and instantiated via various form controls (subclasses of Form).form: The form stringcontrols: A dictionary containing the control name as a _key_ and control object as _value_
Class variables
var ButtonInput
-
Button control. A handler along with a 'code' (numeric value) can be associated with the button. This way one handler can handle many buttons based on the button code (or in other terms id or tag)
var ChkGroupControl
-
Checkbox group control class. It holds a set of checkbox controls
var ChkGroupItemControl
-
Checkbox group item control
var ColorInput
-
Color button input control
var Control
var DirInput
-
Directory browsing control
var DropdownListControl
-
Dropdown control This control allows manipulating a dropdown control
var EmbeddedChooserControl
-
Embedded chooser control. This control links to a Chooser2 control created with the 'embedded=True'
var FT_ADDR
-
Address - ea_t *
var FT_ASCII
-
Ascii string - char *
var FT_BIN
-
Binary number, 0b prefix - sval_t *
var FT_BUTTON
-
Button - def handler(code)
var FT_CHAR
-
Char value -- sval_t *
var FT_CHKGRP
var FT_CHKGRP2
var FT_COLOR
-
Color button - bgcolor_t *
var FT_DEC
-
Decimal number - sval_t *
var FT_DIR
-
Path to directory - char * at least QMAXPATH
var FT_DROPDOWN_LIST
-
Dropdown list control - Form.DropdownControl
var FT_ECHOOSER
-
Embedded chooser - idaapi.Choose
var FT_FILE
-
File browse - char * at least QMAXPATH
var FT_FORMCHG
-
Form change callback - formchgcb_t
var FT_HEX
-
Hex number - uval_t *
var FT_HTML_LABEL
-
HTML label to display (only for GUI version, and for dynamic labels; no input)
var FT_IDENT
-
Identifier - char * at least MAXNAMELEN
var FT_INT64
-
default base int64 - int64
var FT_MULTI_LINE_TEXT
-
Multi text control - textctrl_info_t
var FT_OCT
-
Octal number, C notation - sval_t *
var FT_RADGRP
var FT_RADGRP2
var FT_RAWHEX
-
Hex number, no 0x prefix - uval_t *
var FT_SEG
-
Segment - sel_t *
var FT_SHEX
-
Signed hex number - sval_t *
var FT_TYPE
-
Type declaration - char * at least MAXSTR
var FT_UINT64
-
default base uint64 - uint64
var FileInput
-
File Open/Save input control
var FormChangeCb
-
Form change handler. This can be thought of like a dialog procedure. Everytime a form action occurs, this handler will be called along with the control id. The programmer can then call various form actions accordingly:
- EnableField
- ShowField
- MoveField
- GetFieldValue
- etc...
Special control IDs: -1 (The form is initialized) and -2 (Ok has been clicked) var GroupControl
-
Base class for group controls
var GroupItemControl
-
Base class for group control items
var InputControl
-
Generic form input control. It could be numeric control, string control, directory/file browsing, etc...
var LabelControl
-
Base class for static label control
var MultiLineTextControl
-
Multi line text control. This class inherits from textctrl_info_t. Thus the attributes are also inherited This control allows manipulating a multilinetext control
var NumericArgument
-
Argument representing various integer arguments (ushort, uint32, uint64, etc...)tp: One of Form.FT_XXX
var NumericInput
-
A composite class serving as a base numeric input control class
var NumericLabel
-
Numeric label control
var RadGroupControl
-
Radiobox group control class. It holds a set of radiobox controls
var RadGroupItemControl
-
Radiobox group item control
var StringArgument
-
Argument representing a character buffer
var StringInput
-
Base string input control class. This class also constructs a StringArgument
var StringLabel
-
String label control
Static methods
def ControlToFieldTypeIdAndSize(ctrl)
-
Converts a control object to a tuple containing the field id and the associated buffer size
def create_string_buffer(value, size=None)
def fieldtype_to_ctype(tp, i64=False)
-
Factory method returning a ctype class corresponding to the field type string
Instance variables
var controls
-
Dictionary of controls
var form
-
Form string
var modal
-
By default, forms are modal
var openform_flags
-
If non-modal, these flags will be passed to open_form. This is an OR'ed combination of the PluginForm.FORM_* values.
var title
-
The Form title. It will be filled when the form is compiled
Methods
def Add(self, name, ctrl, mkattr=True)
-
Low level function. Prefer AddControls() to this function. This function adds one control to the form.name: Control namectrl: Control objectmkattr: Create control name / control object as a form attribute
def AddControls(self, controls, mkattr=True)
-
Adds controls from a dictionary. The dictionary key is the control name and the value is a Form.Control objectcontrols: The control dictionary
def Close(self, close_normally)
-
Close the formclose_normally1: form is closed normally as if the user pressed Enter 0: form is closed abnormally as if the user pressed Escreturn: None
def Compile(self)
-
Compiles a form and returns the form object (self) and the argument list. The form object will contain object names corresponding to the form elementsreturn: It will raise an exception on failure. Otherwise the return value is ignored
def CompileEx(self, form)
-
Low level function. Compiles (parses the form syntax and adds the control) the form string and returns the argument list to be passed the argument list to ask_form().The form controls are wrapped inside curly braces: {ControlName}.A special operator can be used to return the index of a given control by its name: {id:ControlName}. This is useful when you use the STARTITEM form keyword to set the initially focused control. (note that, technically, the index is not the same as the ID; that's because STARTITEM uses raw, 0-based indexes rather than control IDs to determine the focused widget.)form: Compiles the form and returns the arguments needed to be passed to ask_form()
def Compiled(self)
-
Checks if the form has already been compiledreturn: Boolean
def EnableField(self, ctrl, enable)
-
Enable or disable an input fieldreturn: False - no such control
def Execute(self)
-
Displays a modal dialog containing the compiled form.return: 1 - ok ; 0 - cancel
def FindControlById(self, id)
-
Finds a control instance given its id
def Free(self)
-
Frees all resources associated with a compiled form. Make sure you call this function when you finish using the form.
def GetControlValue(self, ctrl)
-
Returns the control's value depending on its typectrl: Form control instancereturn: - color button, radio controls: integer
- file/dir input, string input and string label: string
- embedded chooser control (0-based indices of selected items): integer list
- for multilinetext control: textctrl_info_t
- dropdown list controls: string (when editable) or index (when readonly)
- None: on failure
def GetFocusedField(self)
-
Get currently focused input field.return: None if no field is selected otherwise the control ID
def MoveField(self, ctrl, x, y, w, h)
-
Move/resize an input fieldreturn: False - no such fiel
def Open(self)
-
Opens a widget containing the compiled form.
def RefreshField(self, ctrl)
-
Refresh a fieldreturn: False - no such control
def SetControlValue(self, ctrl, value)
-
Set the control's value depending on its typectrl: Form control instancevalue
- embedded chooser: a 0-base indices list to select embedded chooser items
- multilinetext: a textctrl_info_t
-
dropdown list: an integer designating the selection index if readonlya string designating the edit control value if not readonly
return: Boolean true on success def SetFocusedField(self, ctrl)
-
Set currently focused input fieldreturn: False - no such control
def ShowField(self, ctrl, show)
-
Show or hide an input fieldreturn: False - no such control
class IDAViewWrapper (title)
-
Deprecated. Use View_Hooks instead.Because the lifecycle of an IDAView is not trivial to track (e.g., a user might close, then re-open the same disassembly view), this wrapper doesn't bring anything superior to the View_Hooks: quite the contrary, as the latter is much more generic (and better maps IDA's internal model.)__init__(self, _flags=0, _hkcb_flags=0x0001) -> View_Hooks_flags: uint32_hkcb_flags: uint32
Ancestors
Methods
def Bind(self)
def Unbind(self)
Inherited members
CustomIDAMemo
:CreateGroups
DelNodesInfos
DeleteGroups
GetNodeInfo
GetWidget
GetWidgetAsGraphViewer
Refresh
SetCurrentRendererType
SetGroupsVisibility
SetNodeInfo
SetNodesInfos
hook
unhook
view_activated
view_click
view_close
view_created
view_curpos
view_dblclick
view_deactivated
view_keydown
view_loc_changed
view_mouse_moved
view_mouse_over
view_switched
class PluginForm
-
PluginForm class.This form can be used to host additional controls. Please check the PyQt example.
Class variables
var VALID_CAPSULE_NAME
var WCLS_CLOSE_LATER
var WCLS_DELETE_LATER
-
This flag should be used when Close() is called from an event handler
var WCLS_DONT_SAVE_SIZE
-
Don't save size of the window
var WCLS_NO_CONTEXT
-
Don't change the current context (useful for toolbars)
var WCLS_SAVE
-
Save state in desktop config
var WOPN_CENTERED
var WOPN_CREATE_ONLY
var WOPN_DP_BEFORE
-
place widget before dst_form in the tab bar instead of after used with #WOPN_DP_INSIDE and #WOPN_DP_TAB
var WOPN_DP_BOTTOM
-
Dock widget below dest_ctrl
var WOPN_DP_FLOATING
-
When floating or in a splitter (i.e., not tabbed), use the widget's size hint to determine the best geometry (Qt only)
var WOPN_DP_INSIDE
-
Create a new tab bar with both widget and dest_ctrl
var WOPN_DP_INSIDE_BEFORE
var WOPN_DP_LEFT
-
Dock widget to the left of dest_ctrl
var WOPN_DP_RIGHT
-
Dock widget to the right of dest_ctrl
var WOPN_DP_SZHINT
-
Make widget floating
var WOPN_DP_TAB
-
Place widget into a tab next to dest_ctrl, if dest_ctrl is in a tab bar (otherwise the same as #WOPN_DP_INSIDE)
var WOPN_DP_TAB_BEFORE
var WOPN_DP_TOP
-
Dock widget above dest_ctrl
var WOPN_MDI
var WOPN_MENU
var WOPN_ONTOP
var WOPN_PERSIST
-
form will persist until explicitly closed with Close()
var WOPN_RESTORE
-
if the widget is the only widget in a floating area when it is closed, remember that area's geometry. The next time that widget is created as floating (i.e., WOPN_DP_FLOATING) its geometry will be restored (e.g., "Execute script"
var WOPN_TAB
Static methods
def FormToPyQtWidget(tw, ctx=<module '__main__' (built-in)>)
-
Convert a TWidget* to a QWidget to be used by PyQtctx: Context. Reference to a module that already imported SIP and QtWidgets modules
def FormToPySideWidget(tw, ctx=<module '__main__' (built-in)>)
-
Use this method to convert a TWidget* to a QWidget to be used by PySidectx: Context. Reference to a module that already imported QtWidgets module
def QtWidgetToTWidget(w, ctx=<module '__main__' (built-in)>)
-
Convert a QWidget to a TWidget* to be used by IDActx: Context. Reference to a module that already imported SIP and QtWidgets modules
def TWidgetToPyQtWidget(tw, ctx=<module '__main__' (built-in)>)
-
Convert a TWidget* to a QWidget to be used by PyQtctx: Context. Reference to a module that already imported SIP and QtWidgets modules
def TWidgetToPySideWidget(tw, ctx=<module '__main__' (built-in)>)
-
Use this method to convert a TWidget* to a QWidget to be used by PySidectx: Context. Reference to a module that already imported QtWidgets module
Methods
def Close(self, options)
-
Closes the form.options: Close options (WCLS_SAVE, WCLS_NO_CONTEXT, ...)return: None
def GetWidget(self)
-
Return the TWidget underlying this view.return: The TWidget underlying this view, or None.
def OnClose(self, form)
-
Called when the plugin form is closedreturn: None
def OnCreate(self, form)
-
This event is called when the plugin form is created. The programmer should populate the form when this event is triggered.return: None
def Show(self, caption, options=0)
-
Creates the form if not was not created or brings to front if it was already createdcaption: The form captionoptions: One of PluginForm.WOPN_ constants
class UI_Hooks (*args)
-
Proxy of C++ UI_Hooks class.__init__(self, _flags=0, _hkcb_flags=0x0001) -> UI_Hooks_flags: uint32_hkcb_flags: uint32
Subclasses
Methods
def create_desktop_widget(self, *args) ‑> PyObject *
-
create_desktop_widget(self, title, cfg) -> PyObject *create a widget, to be placed in the widget tree (at desktop-creation time.)title: (const char *)cfg: (const jobj_t *)return: TWidget * the created widget, or null
def current_widget_changed(self, *args) ‑> void
-
current_widget_changed(self, widget, prev_widget)The currently-active TWidget changed.widget: (TWidget *)prev_widget: (TWidget *)
def database_closed(self, *args)
-
database_closed(self)The database has been closed. See also processor_t::closebase, it occurs earlier. See also ui_initing_database. This is not the same as IDA exiting. If you need to perform cleanup at the exiting time, use qatexit().
def database_inited(self, *args) ‑> void
-
database_inited(self, is_new_database, idc_script)database initialization has completed. the kernel is about to run idc scriptsis_new_database: (int)idc_script: (const char *) - may be nullptrreturn: void See also ui_initing_database. This event is called for both newand old databases.
-
debugger_menu_change(self, enable)debugger menu modification detectedenable: (bool) true: debugger menu has been added, or a differentdebugger has been selected false: debugger menu will be removed (user switched to "No debugger")
def desktop_applied(self, *args) ‑> void
-
desktop_applied(self, name, from_idb, type)a desktop has been appliedname: (const char *) the desktop namefrom_idb: (bool) the desktop was stored in the IDB (false if it comesfrom the registry)type: (int) the desktop type (1-disassembly, 2-debugger, 3-merge)
def destroying_plugmod(self, *args) ‑> void
-
destroying_plugmod(self, plugmod, entry)The plugin object is about to be destroyedplugmod: (const plugmod_t *)entry: (const plugin_t *)
def destroying_procmod(self, *args) ‑> void
-
destroying_procmod(self, procmod)The processor module is about to be destroyedprocmod: (const procmod_t *)
def finish_populating_widget_popup(self, *args) ‑> void
-
finish_populating_widget_popup(self, widget, popup_handle, ctx=None)IDA is about to be done populating the context menu for a widget. This is your chance to attach_action_to_popup().widget: (TWidget *)popup_handle: (TPopupMenu *)ctx: (const action_activation_ctx_t *)
def get_chooser_item_attrs(self, *args) ‑> void
-
get_chooser_item_attrs(self, chooser, n, attrs)get item-specific attributes for a chooser. This callback is generated only after enable_chooser_attrs()chooser: (const chooser_base_t *)n: (::size_t)attrs: (chooser_item_attrs_t *)
def get_custom_viewer_hint(self, *args) ‑> PyObject *
-
get_custom_viewer_hint(self, viewer, place) -> PyObject *ui wants to display a hint for a viewer (idaview or custom). Every subscriber is supposed to append the hint lines to HINT and increment IMPORTANT_LINES accordingly. Completely overwriting the existing lines in HINT is possible but not recommended. If the REG_HINTS_MARKER sequence is found in the returned hints string, it will be replaced with the contents of the "regular" hints. If the SRCDBG_HINTS_MARKER sequence is found in the returned hints string, it will be replaced with the contents of the source-level debugger-generated hints. The following keywords might appear at the beginning of the returned hints: HIGHLIGHT text where text will be highlighted CAPTION caption caption for the hint widgetviewer: (TWidget*) viewerplace: (place_t *) current position in the viewerretval 0: continue collecting hints with other subscribersretval 1: stop collecting hints
def get_ea_hint(self, *args) ‑> PyObject *
-
get_ea_hint(self, ea) -> PyObject *ui wants to display a simple hint for an address. Use this event to generate a custom hint See also more generic ui_get_item_hintea: (::ea_t)return: true if generated a hint
def get_item_hint(self, *args) ‑> PyObject *
-
get_item_hint(self, ea, max_lines) -> PyObject *ui wants to display multiline hint for an item. See also more generic ui_get_custom_viewer_hintea: (ea_t) or item id like a structure or enum membermax_lines: (int) maximal number of linesreturn: true if generated a hint
def get_lines_rendering_info(self, *args) ‑> void
-
get_lines_rendering_info(self, out, widget, info)get lines rendering informationout: (lines_rendering_output_t *)widget: (const TWidget *)info: (const lines_rendering_input_t *)
def get_widget_config(self, *args) ‑> PyObject *
-
get_widget_config(self, widget, cfg) -> PyObject *retrieve the widget configuration (it will be passed back at ui_create_desktop_widget-, and ui_set_widget_config-time)widget: (const TWidget *)cfg: (jobj_t *)
def hook(self, *args) ‑> bool
-
hook(self) -> bool
def idcstart(self, *args) ‑> void
-
idcstart(self)Start of IDC engine work.
def idcstop(self, *args) ‑> void
-
idcstop(self)Stop of IDC engine work.
def initing_database(self, *args) ‑> void
-
initing_database(self)database initialization has started.return: void See also ui_database_inited. This event is called for both new andold databases.
def plugin_loaded(self, *args) ‑> void
-
plugin_loaded(self, plugin_info)The plugin was loaded in memory.plugin_info: (const plugin_info_t *)
def plugin_unloading(self, *args) ‑> void
-
plugin_unloading(self, plugin_info)The plugin is about to be unloadedplugin_info: (const plugin_info_t *)
def populating_widget_popup(self, *args) ‑> void
-
populating_widget_popup(self, widget, popup_handle, ctx=None)IDA is populating the context menu for a widget. This is your chance to attach_action_to_popup().Have a look at ui_finish_populating_widget_popup, if you want to augment the context menu with your own actions after the menu has had a chance to be properly populated by the owning component or plugin (which typically does it on ui_populating_widget_popup.)widget: (TWidget *)popup_handle: (TPopupMenu *)ctx: (const action_activation_ctx_t *)
def postprocess_action(self, *args) ‑> void
-
postprocess_action(self)an ida ui action has been handled
def preprocess_action(self, *args) ‑> int
-
preprocess_action(self, name) -> intida ui is about to handle a user action.name: (const char *) ui action name. these names can be looked up inida[tg]ui.cfgretval 0: okretval nonzero: a plugin has handled the command
def range(self, *args) ‑> void
-
range(self)The disassembly range has been changed ( idainfo::min_ea ... idainfo::max_ea). UI should redraw the scrollbars. See also: ui_lock_range_refresh
def ready_to_run(self, *args) ‑> void
-
ready_to_run(self)all UI elements have been initialized. Automatic plugins may hook to this event to perform their tasks.
def resume(self, *args) ‑> void
-
resume(self)Resume the suspended graphical interface. Only the text version. Interface should respond to it
def saved(self, *args) ‑> void
-
saved(self, path)The kernel has saved the database. This callback just informs the interface. Note that at the time this notification is sent, the internal paths are not updated yet, and calling get_path(PATH_TYPE_IDB) will return the previous path.path: (const char *) the database path
def saving(self, *args) ‑> void
-
saving(self)The kernel is flushing its buffers to the disk. The user interface should save its state. Parameters: none Returns: none
def screen_ea_changed(self, *args) ‑> void
-
screen_ea_changed(self, ea, prev_ea)The "current address" changedea: (ea_t)prev_ea: (ea_t)
def set_widget_config(self, *args) ‑> void
-
set_widget_config(self, widget, cfg)set the widget configurationwidget: (const TWidget *)cfg: (const jobj_t *)
def suspend(self, *args) ‑> void
-
suspend(self)Suspend graphical interface. Only the text version. Interface should respond to it.
def unhook(self, *args) ‑> bool
-
unhook(self) -> bool
def updated_actions(self, *args) ‑> void
-
updated_actions(self)IDA is done updating actions.
def updating_actions(self, *args) ‑> void
-
updating_actions(self, ctx)IDA is about to update all actions. If your plugin needs to perform expensive operations more than once (e.g., once per action it registers), you should do them only once, right away.ctx: (action_update_ctx_t *)
def widget_closing(self, *args) ‑> void
-
widget_closing(self, widget)TWidget is about to close. This event precedes ui_widget_invisible. Use this to perform some possible actions relevant to the lifecycle of this widgetwidget: (TWidget *)
def widget_invisible(self, *args) ‑> void
-
widget_invisible(self, widget)TWidget is being closed. Use this event to destroy the window controlswidget: (TWidget *)
def widget_visible(self, *args) ‑> void
-
widget_visible(self, widget)TWidget is displayed on the screen. Use this event to populate the window with controlswidget: (TWidget *)
class View_Hooks (*args)
-
Proxy of C++ View_Hooks class.__init__(self, _flags=0, _hkcb_flags=0x0001) -> View_Hooks_flags: uint32_hkcb_flags: uint32
Subclasses
Methods
def hook(self, *args) ‑> bool
-
hook(self) -> bool
def unhook(self, *args) ‑> bool
-
unhook(self) -> bool
def view_activated(self, *args) ‑> void
-
view_activated(self, view)A view is activatedview: (TWidget *)
def view_click(self, *args) ‑> void
-
view_click(self, view, event)Click eventview: (TWidget *)event: (const view_mouse_event_t *)
def view_close(self, *args) ‑> void
-
view_close(self, view)View closedview: (TWidget *)
def view_created(self, *args) ‑> void
-
view_created(self, view)A view is being created.view: (TWidget *)
def view_curpos(self, *args) ‑> void
-
view_curpos(self, view)Cursor position changedview: (TWidget *)
def view_dblclick(self, *args) ‑> void
-
view_dblclick(self, view, event)Double click eventview: (TWidget *)event: (const view_mouse_event_t *)
def view_deactivated(self, *args) ‑> void
-
view_deactivated(self, view)A view is deactivatedview: (TWidget *)
def view_keydown(self, *args) ‑> void
-
view_keydown(self, view, key, state)Key down eventview: (TWidget *)key: (int)state: (::view_event_state_t)
def view_loc_changed(self, *args) ‑> void
-
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: (TWidget *)now: (const lochist_entry_t *)was: (const lochist_entry_t *)
def view_mouse_moved(self, *args) ‑> void
-
view_mouse_moved(self, view, event)The mouse moved on the viewview: (TWidget *)event: (const view_mouse_event_t *)
def view_mouse_over(self, *args) ‑> void
-
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.view: (TWidget *)event: (const view_mouse_event_t *)
def view_switched(self, *args) ‑> void
-
view_switched(self, view, rt)A view's renderer has changed.view: (TWidget *)rt: (tcc_renderer_type_t)
class action_ctx_base_cur_sel_t (*args)
-
Proxy of C++ action_ctx_base_cur_sel_t class.__init__(self) -> action_ctx_base_cur_sel_t
Instance variables
var to
-
end of selection
Methods
def reset(self, *args) ‑> void
-
reset(self)
class action_ctx_base_source_t (*args)
-
Proxy of C++ action_ctx_base_source_t class.__init__(self) -> action_ctx_base_source_t
Instance variables
var chooser
-
chooser
Methods
def reset(self, *args) ‑> void
-
reset(self)
class action_ctx_base_t (*args)
-
Proxy of C++ action_ctx_base_t class.__init__(self) -> action_ctx_base_t
Instance variables
var action
-
action name
var chooser_selection
-
current chooser selection (0-based)
var cur_ea
-
the current EA of the position in the view
var cur_enum
-
the current enum
var cur_enum_member
-
cur_enum_member
var cur_extracted_ea
-
cur_value
var cur_fchunk
-
the current function chunk
var cur_flags
-
Current address information. see Action context property bits.
var cur_func
-
the current function
var cur_seg
-
the current segment
var cur_sel
-
the currently selected range. also see ACF_HAS_SELECTION
var cur_strmem
-
the current structure member
var cur_struc
-
the current structure
var cur_value
-
the possible address, or value the cursor is positioned on
var dirtree_selection
-
the current dirtree_t selection (if applicable)
var focus
-
The focused widget in case it is not the 'form' itself (e.g., the 'quick filter' input in choosers.)
var form
var form_title
var form_type
var graph_selection
-
the current graph selection (if in a graph view)
var regname
-
register name (if widget_type == BWN_CPUREGS and context menu opened on register)
var source
-
the underlying chooser_base_t (if 'widget' is a chooser widget)
var widget
-
widget
var widget_title
-
title of current widget
var widget_type
-
type of current widget
Methods
def has_flag(self, *args) ‑> bool
-
has_flag(self, flag) -> boolCheck if the given flag is set.flag: (C++: uint32)
def reset(self, *args) ‑> void
-
reset(self)Invalidate all context info.
class action_desc_t (*args)
-
Proxy of C++ action_desc_t class.__init__(self, name, label, handler, shortcut=None, tooltip=None, icon=-1, flags=0) -> action_desc_tname: char const *label: char const *handler: PyObject *shortcut: char const *tooltip: char const *icon: intflags: int
Instance variables
var cb
-
size of this structure
var flags
-
See Action flags.
var icon
-
an optional icon ID to use
var label
-
the label of the action, possibly with an accelerator key definition (e.g., "~J~ump to operand")
var name
-
the internal name of the action; must be unique. a way to reduce possible conflicts is to prefix it with some specific prefix. E.g., "myplugin:doSthg".
var owner
-
either the plugin_t, or plugmod_t responsible for registering the action. Can be nullptr Please see ACTION_DESC_LITERAL_PLUGMOD
var shortcut
-
an optional shortcut definition. E.g., "Ctrl+Enter"
var tooltip
-
an optional tooltip for the action
class action_handler_t
-
Subclasses
- ida_kernwin.quick_widget_commands_t._ah_t
Methods
def activate(self, ctx)
-
Activate an action. This function implements the core behavior of an action. It is called when the action is triggered, from a menu, from a popup menu, from the toolbar, or programmatically.return: non-zero: all IDA windows will be refreshed
def update(self, ctx)
-
Update an action. This is called when the context of the UI changed, and we need to let the action update some of its properties if needed (label, icon, ...)In addition, this lets IDA know whether the action is enabled, and when it should be queried for availability again.Note: This callback is not meant to change anything in the application's state, except by calling one (or many) of the "update_action_*()" functions on this very action.
class addon_info_t (*args)
-
Proxy of C++ addon_info_t class.__init__(self) -> addon_info_t
Instance variables
var cb
-
cb
var custom_data
-
custom_data
var custom_size
-
custom_size
var freeform
-
freeform
var id
-
id
var name
-
name
var producer
-
producer
var url
-
url
var version
-
version
class chooser_base_t (*args, **kwargs)
-
Proxy of C++ chooser_base_t class.
Class variables
var NSTDPOPUPS
var POPUP_DEL
var POPUP_EDIT
var POPUP_INS
var POPUP_REFRESH
Instance variables
var columns
-
number of columns
var deflt_col
-
Column that will have focus.
var header
-
header line; contains the tooltips, and column name for each of 'columns' columns. When tooltips need to be provided, the syntax should be: "#tooltip#column-name". (Otherwise, the syntax is simply "column-name".)
var height
-
(in chars)
var icon
-
default icon
var popup_names
-
array of custom labels of the standard actions. Used to replace labels for these actions. An empty name means that the default name will be used.note: Availability of these actions is determined by the CH_CAN_... flags. Thelabel, icon and other action attributes can be overwritten in the action description returned by get_stdact_descs()
var title
-
menu title (includes ptr to help). May have chooser title prefixes (see "Choosertitle" above).
var width
-
(in chars)
var widths
-
column widths
- low 16 bits of each value hold the column width
- high 16 bits are flags (see Chooser column flags)
var x0
-
screen position, Functions: generic list choosers
var x1
-
x1
var y0
-
y0
var y1
-
y1
Methods
def ask_item_attrs(self, *args) ‑> bool
-
ask_item_attrs(self) -> boolshould chooser generate ui_get_chooser_item_attrs events?
def can_del(self, *args) ‑> bool
-
can_del(self) -> bool
def can_edit(self, *args) ‑> bool
-
can_edit(self) -> bool
def can_filter(self, *args) ‑> bool
-
can_filter(self) -> bool
def can_ins(self, *args) ‑> bool
-
can_ins(self) -> boolis an operation allowed?
def can_refresh(self, *args) ‑> bool
-
can_refresh(self) -> bool
def can_sort(self, *args) ‑> bool
-
can_sort(self) -> bool
def get_builtin_number(self, *args) ‑> uint
-
get_builtin_number(self) -> uintget number of the built-in chooser
def get_count(self, *args) ‑> size_t
-
get_count(self) -> size_tget the number of elements in the chooser
def get_ea(self, *args) ‑> ea_t
-
get_ea(self, arg2) -> ea_tget an address of an element. Used to set breakpoint in any chooser which implements this callback.arg2: size_treturn: the effective address, BADADDR if the element has no address
def get_quick_filter_initial_mode(self, *args) ‑> int
-
get_quick_filter_initial_mode(self) -> int
def get_row(self, *args) ‑> PyObject *
-
get_row(self, n) -> ([str, ...], int, chooser_item_attrs_t)get a description of an element.n: (C++: size_t) element number (0..get_count()-1)
def has_diff_capability(self, *args) ‑> bool
-
has_diff_capability(self) -> bool
def has_dirtree(self, *args) ‑> bool
-
has_dirtree(self) -> bool
def is_dirtree_persisted(self, *args) ‑> bool
-
is_dirtree_persisted(self) -> bool
def is_force_default(self, *args) ‑> bool
-
is_force_default(self) -> boolshould selection of the already opened non-modal chooser be changed?
def is_lazy_loaded(self, *args) ‑> bool
-
is_lazy_loaded(self) -> bool
def is_modal(self, *args) ‑> bool
-
is_modal(self) -> boolis choose modal?
def is_multi(self, *args) ‑> bool
-
is_multi(self) -> boolis multi-selection allowed?
def is_noidb(self, *args) ‑> bool
-
is_noidb(self) -> boolcan use the chooser before opening the database?
def is_quick_filter_visible_initially(self, *args) ‑> bool
-
is_quick_filter_visible_initially(self) -> bool
def is_same(self, *args) ‑> bool
-
is_same(self, other) -> booldo the current and the given objects hold the same data?other: (C++: const chooser_base_t *) chooser_base_t const *
-
is_status_bar_hidden(self) -> bool
def popup_allowed(self, *args) ‑> bool
-
popup_allowed(self, stdact_idx) -> boolis a standard action allowed?stdact_idx: (C++: int)
def should_rename_trigger_edit(self, *args) ‑> bool
-
should_rename_trigger_edit(self) -> bool
def should_restore_geometry(self, *args) ‑> bool
-
should_restore_geometry(self) -> bool
class chooser_item_attrs_t (*args)
-
Proxy of C++ chooser_item_attrs_t class.__init__(self) -> chooser_item_attrs_t
Instance variables
var color
-
item color
var flags
-
Chooser item property bits
Methods
def reset(self, *args) ‑> void
-
reset(self)
class chooser_stdact_desc_t (*args)
-
Proxy of C++ chooser_stdact_desc_t class.__init__(self, _label=None, _tooltip=None, _icon=-1) -> chooser_stdact_desc_t_label: char const *_tooltip: char const *_icon: int
Instance variables
var icon
-
icon
var label
-
see action_desc_t
var tooltip
-
tooltip
var version
-
to support the backward compatibility
Methods
def ucb(self, *args) ‑> action_state_t
-
ucb(self, arg0) -> action_state_tthe update callback, see action_handler_t::update() When the update callback is called from the chooser UI engine, it can be sure that ctx.source.chooser is a valid pointer to chooser_base_t and that there are selected items for the Delete and Edit actions.arg0: action_update_ctx_t *
class cli_t
-
cli_t wrapper class.This class allows you to implement your own command line interface handlers.
Ancestors
Methods
def OnCompleteLine(self, prefix, n, line, prefix_start)
-
The user pressed Tab. Find a completion number N for prefix PREFIXThis callback is optional.prefix: Line prefix at prefix_start (string)n: completion number (int)line: the current line (string)prefix_start: the index where PREFIX starts in LINE (int)return: None if no completion could be generated otherwise a String with the completion suggestion
def OnExecuteLine(self, line)
-
The user pressed Enter. The CLI is free to execute the line immediately or ask for more lines.This callback is mandatory.line: typed line(s)return: Boolean: True-executed line, False-ask for more lines
def OnKeydown(self, line, x, sellen, vkey, shift)
-
A keyboard key has been pressed This is a generic callback and the CLI is free to do whatever it wants.This callback is optional.line: current input linex: current x coordinate of the cursorsellen: current selection length (usually 0)vkey: virtual key code. if the key has been handled, it should be returned as zeroshift: shift statereturn: None - Nothing was changedtuple(line, x, sellen, vkey): if either of the input line or the x coordinate or the selection length has been modified. It is possible to return a tuple with None elements to preserve old values. Example: tuple(new_line, None, None, None) or tuple(new_line)
def register(self, flags=0, sname=None, lname=None, hint=None)
-
Registers the CLI.flags: Feature bits. No bits are defined yet, must be 0sname: Short name (displayed on the button)lname: Long name (displayed in the menu)hint: Hint for the input linereturn: Boolean: True-Success, False-Failed
def unregister(self)
-
Unregisters the CLI (if it was registered)
class disabled_script_timeout_t
class disasm_line_t (*args)
-
Proxy of C++ disasm_line_t class.__init__(self) -> disasm_line_t__init__(self, other) -> disasm_line_tother: disasm_line_t const &
Instance variables
var at
-
at
var bg_color
-
bg_color
var is_default
-
is_default
var line
-
line
var prefix_color
-
prefix_color
class disasm_text_t (*args)
-
Proxy of C++ qvector< disasm_line_t > class.__init__(self) -> disasm_text_t__init__(self, x) -> disasm_text_tx: qvector< disasm_line_t > const &
Methods
def at(self, *args) ‑> disasm_line_t const &
-
at(self, _idx) -> disasm_line_t_idx: size_t
def back(self)
def begin(self, *args) ‑> qvector< disasm_line_t >::const_iterator
-
begin(self) -> disasm_line_t
def capacity(self, *args) ‑> size_t
-
capacity(self) -> size_t
def clear(self, *args) ‑> void
-
clear(self)
def empty(self, *args) ‑> bool
-
empty(self) -> bool
def end(self, *args) ‑> qvector< disasm_line_t >::const_iterator
-
end(self) -> disasm_line_t
def erase(self, *args) ‑> qvector< disasm_line_t >::iterator
-
erase(self, it) -> disasm_line_tit: qvector< disasm_line_t >::iteratorerase(self, first, last) -> disasm_line_tfirst: qvector< disasm_line_t >::iteratorlast: qvector< disasm_line_t >::iterator
def extract(self, *args) ‑> disasm_line_t *
-
extract(self) -> disasm_line_t
def front(self)
def grow(self, *args) ‑> void
-
grow(self, x=disasm_line_t())x: disasm_line_t const &
def inject(self, *args) ‑> void
-
inject(self, s, len)s: disasm_line_t *len: size_t
def insert(self, *args) ‑> qvector< disasm_line_t >::iterator
-
insert(self, it, x) -> disasm_line_tit: qvector< disasm_line_t >::iteratorx: disasm_line_t const &
def pop_back(self, *args) ‑> void
-
pop_back(self)
def push_back(self, *args) ‑> disasm_line_t &
-
push_back(self, x)x: disasm_line_t const &push_back(self) -> disasm_line_t
def qclear(self, *args) ‑> void
-
qclear(self)
def reserve(self, *args) ‑> void
-
reserve(self, cnt)cnt: size_t
def resize(self, *args) ‑> void
-
resize(self, _newsize, x)_newsize: size_tx: disasm_line_t const &resize(self, _newsize)_newsize: size_t
def size(self, *args) ‑> size_t
-
size(self) -> size_t
def swap(self, *args) ‑> void
-
swap(self, r)r: qvector< disasm_line_t > &
def truncate(self, *args) ‑> void
-
truncate(self)
class enumplace_t (*args, **kwargs)
-
Proxy of C++ enumplace_t class.
Ancestors
Instance variables
var bmask
-
enum member bitmask
var idx
-
enum serial number
var serial
-
enum member serial number
var value
-
enum member value
Inherited members
class idaplace_t (*args, **kwargs)
-
Proxy of C++ idaplace_t class.
Ancestors
Instance variables
var ea
-
address
Inherited members
class input_event_keyboard_data_t (*args)
-
Proxy of C++ input_event_t::input_event_keyboard_data_t class.__init__(self) -> input_event_keyboard_data_t
Instance variables
var key
-
key
var text
-
text
class input_event_mouse_data_t (*args)
-
Proxy of C++ input_event_t::input_event_mouse_data_t class.__init__(self) -> input_event_mouse_data_t
Instance variables
-
button
var x
-
x
var y
-
y
-
class input_event_shortcut_data_t (*args)
-
Proxy of C++ input_event_t::input_event_shortcut_data_t class.__init__(self) -> input_event_shortcut_data_t
Instance variables
var action_name
-
action_name
class input_event_t (*args)
-
Proxy of C++ input_event_t class.__init__(self) -> input_event_t
Instance variables
var cb
-
size marker
var keyboard
-
keyboard
var kind
-
the kind of event
var modifiers
-
current keyboard (and mouse) modifiers
var mouse
-
mouse
var shortcut
-
shortcut
var source
-
the source event, should it be required for detailed inform (e.g., a QEvent in the GUI version of IDA)
var target
-
the target widget
Methods
def get_source_QEvent(self)
def get_target_QWidget(self)
class jobj_wrapper_t (*args, **kwargs)
-
Proxy of C++ jobj_wrapper_t class.
Methods
def get_dict(self, *args) ‑> PyObject *
-
get_dict(self) -> dict
class line_rendering_output_entries_refs_t (*args)
-
Proxy of C++ qvector< line_rendering_output_entry_t * > class.__init__(self) -> line_rendering_output_entries_refs_t__init__(self, x) -> line_rendering_output_entries_refs_tx: qvector< line_rendering_output_entry_t * > const &
Methods
def add_unique(self, *args) ‑> bool
-
add_unique(self, x) -> boolx: line_rendering_output_entry_t *const &
def at(self, *args) ‑> line_rendering_output_entry_t *const &
-
at(self, _idx) -> line_rendering_output_entry_t_idx: size_t
def back(self)
def begin(self, *args) ‑> qvector< line_rendering_output_entry_t * >::const_iterator
-
begin(self) -> qvector< line_rendering_output_entry_t * >::iteratorbegin(self) -> qvector< line_rendering_output_entry_t * >::const_iterator
def capacity(self, *args) ‑> size_t
-
capacity(self) -> size_t
def clear(self, *args) ‑> void
-
clear(self)
def empty(self, *args) ‑> bool
-
empty(self) -> bool
def end(self, *args) ‑> qvector< line_rendering_output_entry_t * >::const_iterator
-
end(self) -> qvector< line_rendering_output_entry_t * >::iteratorend(self) -> qvector< line_rendering_output_entry_t * >::const_iterator
def erase(self, *args) ‑> qvector< line_rendering_output_entry_t * >::iterator
-
erase(self, it) -> qvector< line_rendering_output_entry_t * >::iteratorit: qvector< line_rendering_output_entry_t * >::iteratorerase(self, first, last) -> qvector< line_rendering_output_entry_t * >::iteratorfirst: qvector< line_rendering_output_entry_t * >::iteratorlast: qvector< line_rendering_output_entry_t * >::iterator
def extract(self, *args) ‑> line_rendering_output_entry_t **
-
extract(self) -> line_rendering_output_entry_t **
def find(self, *args) ‑> qvector< line_rendering_output_entry_t * >::const_iterator
-
find(self, x) -> qvector< line_rendering_output_entry_t * >::iteratorx: line_rendering_output_entry_t *const &find(self, x) -> qvector< line_rendering_output_entry_t * >::const_iteratorx: line_rendering_output_entry_t *const &
def front(self)
def has(self, *args) ‑> bool
-
has(self, x) -> boolx: line_rendering_output_entry_t *const &
def inject(self, *args) ‑> void
-
inject(self, s, len)s: line_rendering_output_entry_t **len: size_t
def insert(self, *args) ‑> qvector< line_rendering_output_entry_t * >::iterator
-
insert(self, it, x) -> qvector< line_rendering_output_entry_t * >::iteratorit: qvector< line_rendering_output_entry_t * >::iteratorx: line_rendering_output_entry_t *const &
def pop_back(self, *args) ‑> void
-
pop_back(self)
def push_back(self, e)
def qclear(self, *args) ‑> void
-
qclear(self)
def reserve(self, *args) ‑> void
-
reserve(self, cnt)cnt: size_t
def resize(self, *args) ‑> void
-
resize(self, _newsize, x)_newsize: size_tx: line_rendering_output_entry_t *const &resize(self, _newsize)_newsize: size_t
def size(self, *args) ‑> size_t
-
size(self) -> size_t
def swap(self, *args) ‑> void
-
swap(self, r)r: qvector< line_rendering_output_entry_t * > &
def truncate(self, *args) ‑> void
-
truncate(self)
class line_rendering_output_entry_t (*args)
-
Proxy of C++ line_rendering_output_entry_t class.__init__(self, _line, _flags=0, _bg_color=0) -> line_rendering_output_entry_t_line: twinline_t const *_flags: uint32_bg_color: bgcolor_t__init__(self, _line, _cpx, _nchars, _flags, _bg_color) -> line_rendering_output_entry_t_line: twinline_t const *_cpx: int_nchars: int_flags: uint32_bg_color: bgcolor_t
Instance variables
var bg_color
-
bg_color
var cpx
-
number of char to start from, valid if LROEF_CPS_RANGE
var flags
-
line_rendering_output_entry_t flags
var line
-
line
var nchars
-
chars count, valid if LROEF_CPS_RANGE
Methods
def is_bg_color_direct(self, *args) ‑> bool
-
is_bg_color_direct(self) -> bool
def is_bg_color_empty(self, *args) ‑> bool
-
is_bg_color_empty(self) -> bool
def is_bg_color_key(self, *args) ‑> bool
-
is_bg_color_key(self) -> bool
class linearray_t (*args)
-
Proxy of C++ linearray_t class.__init__(self, _ud) -> linearray_t_ud: void *
Methods
def beginning(self, *args) ‑> bool
-
beginning(self) -> boolAre we at the beginning?
def down(self, *args) ‑> qstring const *
-
down(self) -> qstring const *Get a line from down direction. place is ok BEFORE
def ending(self, *args) ‑> bool
-
ending(self) -> bool
def get_bg_color(self, *args) ‑> bgcolor_t
-
get_bg_color(self) -> bgcolor_tGet current background color. (the same behavior as with get_place(): good before down() and after up())
def get_dlnnum(self, *args) ‑> int
-
get_dlnnum(self) -> intGet default line number. (the same behavior as with get_place(): good before down() and after up())
def get_linecnt(self, *args) ‑> int
-
get_linecnt(self) -> intGet number of lines for the current place. (the same behavior as with get_place(): good before down() and after up())
def get_pfx_color(self, *args) ‑> bgcolor_t
-
get_pfx_color(self) -> bgcolor_tGet current prefix color. (the same behavior as with get_place(): good before down() and after up())
def get_place(self, *args) ‑> place_t *
-
get_place(self) -> place_tGet the current place. If called before down(), then returns place of line which will be returned by down(). If called after up(), then returns place if line returned by up().
def set_place(self, *args) ‑> int
-
set_place(self, new_at) -> intPosition the array. This function must be called before calling any other member functions.linearray_t doesn't own place_t structures. The caller must take care of place_t objects.new_at: (C++: const place_t *) new position of the arrayreturn: the delta of lines that the linearray_t had to adjust the place by. For example, if the place_t has a lnnum of 5, but it turns out, upon generating lines, that the number of lines for that particular place is only 2, then 3 will be returned.
def set_userdata(self, *args) ‑> void
-
set_userdata(self, userd)Change the user data.userd: (C++: void *)
def up(self, *args) ‑> qstring const *
-
up(self) -> qstring const *Get a line from up direction. place is ok AFTER
def userdata(self, *args) ‑> void *
-
userdata(self) -> void *Get pointer to user data.
class lines_rendering_input_t (*args)
-
Proxy of C++ lines_rendering_input_t class.__init__(self) -> lines_rendering_input_t
Instance variables
var cb
-
cb
var sections_lines
-
references to the lines that are used for rendering
var sync_group
-
the 'synced' group 'widget' (see ui_get_lines_rendering_info) belongs to, or nullptr
class lines_rendering_output_t (*args)
-
Proxy of C++ lines_rendering_output_t class.__init__(self) -> lines_rendering_output_t
Instance variables
var entries
-
entries
var flags
-
flags
Methods
def clear(self, *args) ‑> void
-
clear(self)
def swap(self, *args) ‑> void
-
swap(self, r)r: lines_rendering_output_t &
class place_t (*args, **kwargs)
-
Proxy of C++ place_t class.
Subclasses
Static methods
def as_enumplace_t(*args) ‑> enumplace_t *
-
as_enumplace_t(p) -> enumplace_tp: place_t *
def as_idaplace_t(*args) ‑> idaplace_t *
-
as_idaplace_t(p) -> idaplace_tp: place_t *
def as_simpleline_place_t(*args) ‑> simpleline_place_t *
-
as_simpleline_place_t(p) -> simpleline_place_tp: place_t *
def as_structplace_t(*args) ‑> structplace_t *
-
as_structplace_t(p) -> structplace_tp: place_t *
Instance variables
var lnnum
-
Number of line within the current object.
Methods
def adjust(self, *args) ‑> void
-
adjust(self, ud)Adjust the current location to point to a displayable object. This function validates the location and makes sure that it points to an existing object. For example, if the location points to the middle of an instruction, it will be adjusted to point to the beginning of the instruction.ud: (C++: void *) pointer to user-defined context data. Is supplied by linearray_t
def beginning(self, *args) ‑> bool
-
beginning(self, ud) -> boolAre we at the first displayable object?.ud: (C++: void *) pointer to user-defined context data. Is supplied by linearray_treturn: true if the current location points to the first displayable object
def clone(self, *args) ‑> place_t *
-
clone(self) -> place_tClone the location.return: a pointer to a copy of the current location in dynamic memory
def compare(self, *args) ‑> int
-
compare(self, t2) -> intDeprecated. Please consider compare2(const place_t *, void *) instead.t2: (C++: const place_t *) place_t const *
def compare2(self, *args) ‑> int
-
compare2(self, t2, arg3) -> intCompare two locations except line numbers (lnnum). This function is used to organize loops. For example, if the user has selected an range, its boundaries are remembered as location objects. Any operation within the selection will have the following look: for ( loc=starting_location; loc < ending_location; loc.next() ) In this loop, the comparison function is used.t2: (C++: const place_t *) the place to compare this one to.arg3: void *
def copyfrom(self, *args) ‑> void
-
copyfrom(self, _from)Copy the specified location object to the current object.from: (C++: const place_t *) place_t const *
def deserialize(self, *args) ‑> bool
-
deserialize(self, _in) -> boolDe-serialize into this instance. 'pptr' should be incremented by as many bytes as de-serialization consumed.pptr: (C++: const uchar **) pointer to a serialized representation of a place_t of this type.return: whether de-serialization was successful
def ending(self, *args) ‑> bool
-
ending(self, ud) -> boolAre we at the last displayable object?.ud: (C++: void *) pointer to user-defined context data. Is supplied by linearray_treturn: true if the current location points to the last displayable object
def enter(self, *args) ‑> place_t *
-
enter(self, arg2) -> place_tVisit this place, possibly 'unhiding' a section of text. If entering that place required some expanding, a place_t should be returned that represents that section, plus some flags for later use by 'leave()'.out_flags: flags to be used together with the place_t that is returned,in order to restore the section to its original state when leave() is called.return: a place_t corresponding to the beginning of the section of text thathad to be expanded. That place_t's leave() will be called with the flags contained in 'out_flags' when the user navigates away from it.
def generate(self, *args) ‑> PyObject *
-
generate(self, ud, maxsize) -> ([str, ...], int, int, int)Generate text lines for the current location.ud: (C++: void *) pointer to user-defined context data. Is supplied by linearray_tmaxsize: (C++: int) the maximum number of lines to generatereturn: number of generated lines
def id(self, *args) ‑> int
-
id(self) -> intGet the place's ID (i.e., the value returned by register_place_class())return: the id
def leave(self, *args) ‑> void
-
leave(self, arg2)Leave this place, possibly 'hiding' a section of text that was previously expanded (at enter()-time.)arg2: uint32
def makeplace(self, *args) ‑> place_t *
-
makeplace(self, ud, x, lnnum) -> place_tMap a number to a location. When the user clicks on the scrollbar and drags it, we need to determine the location corresponding to the new scrollbar position. This function is used to determine it. It builds a location object for the specified 'x' and returns a pointer to it.ud: (C++: void *) pointer to user-defined context data. Is supplied by linearray_tx: (C++: uval_t) number to maplnnum: (C++: int) line number to initialize 'lnnum'return: a freshly allocated object. See also PCF_MAKEPLACE_ALLOCATES
def name(self, *args) ‑> char const *
-
name(self) -> char const *Get this place type name. All instances of a given class must return the same string.return: the place type name. Please try and pick something that is not toogeneric, as it might clash w/ other plugins. A good practice is to prefix the class name with the name of your plugin. E.g., "myplugin:srcplace_t".
def next(self, *args) ‑> bool
-
next(self, ud) -> boolMove to the next displayable location.ud: (C++: void *) pointer to user-defined context data. Is supplied by linearray_treturn: success
def prev(self, *args) ‑> bool
-
prev(self, ud) -> boolMove to the previous displayable location.ud: (C++: void *) pointer to user-defined context data. Is supplied by linearray_treturn: success
def rebase(self, *args) ‑> bool
-
rebase(self, arg2) -> boolRebase the place instancearg2: segm_move_infos_t const &return: true if place was rebased, false otherwise
def serialize(self, *args) ‑> void
-
serialize(self)Serialize this instance. It is fundamental that all instances of a particular subclass of of place_t occupy the same number of bytes when serialized.
def toea(self, *args) ‑> ea_t
-
toea(self) -> ea_tMap the location to an ea_t.return: the corresponding ea_t, or BADADDR;
def touval(self, *args) ‑> uval_t
-
touval(self, ud) -> uval_tMap the location to a number. This mapping is used to draw the vertical scrollbar.ud: (C++: void *) pointer to user-defined context data. Is supplied by linearray_t
class quick_widget_commands_t (callback)
-
Methods
def add(self, caption, flags, menu_index, icon, emb, shortcut)
def populate_popup(self, widget, popup)
class renderer_pos_info_t (*args)
-
Proxy of C++ renderer_pos_info_t class.__init__(self) -> renderer_pos_info_t
Instance variables
var cx
-
the X coords of the character in the current line. When in graph mode: X coords of the character in 'node'. When in flat mode: X coords of the character in the line, w/o taking scrolling into consideration.
var cy
-
the Y coords of the character. When in graph mode: Y coords of the character in 'node'. When in flat mode: Line number, starting from the top.
var node
-
the node, or -1 if the current renderer is not a graph renderer.
var sx
-
the number of chars that are scrolled (flat mode only)
class section_lines_refs_t (*args)
-
Proxy of C++ qvector< twinline_t const * > class.__init__(self) -> section_lines_refs_t__init__(self, x) -> section_lines_refs_tx: qvector< twinline_t const * > const &
Methods
def add_unique(self, *args) ‑> bool
-
add_unique(self, x) -> boolx: twinline_t const *const &
def at(self, *args) ‑> twinline_t const *const &
-
at(self, _idx) -> twinline_t_idx: size_t
def back(self)
def begin(self, *args) ‑> qvector< twinline_t const * >::const_iterator
-
begin(self) -> qvector< twinline_t const * >::iteratorbegin(self) -> qvector< twinline_t const * >::const_iterator
def capacity(self, *args) ‑> size_t
-
capacity(self) -> size_t
def clear(self, *args) ‑> void
-
clear(self)
def empty(self, *args) ‑> bool
-
empty(self) -> bool
def end(self, *args) ‑> qvector< twinline_t const * >::const_iterator
-
end(self) -> qvector< twinline_t const * >::iteratorend(self) -> qvector< twinline_t const * >::const_iterator
def erase(self, *args) ‑> qvector< twinline_t const * >::iterator
-
erase(self, it) -> qvector< twinline_t const * >::iteratorit: qvector< twinline_t const * >::iteratorerase(self, first, last) -> qvector< twinline_t const * >::iteratorfirst: qvector< twinline_t const * >::iteratorlast: qvector< twinline_t const * >::iterator
def extract(self, *args) ‑> twinline_t const **
-
extract(self) -> twinline_t const **
def find(self, *args) ‑> qvector< twinline_t const * >::const_iterator
-
find(self, x) -> qvector< twinline_t const * >::iteratorx: twinline_t const *const &find(self, x) -> qvector< twinline_t const * >::const_iteratorx: twinline_t const *const &
def front(self)
def has(self, *args) ‑> bool
-
has(self, x) -> boolx: twinline_t const *const &
def inject(self, *args) ‑> void
-
inject(self, s, len)s: twinline_t const **len: size_t
def insert(self, *args) ‑> qvector< twinline_t const * >::iterator
-
insert(self, it, x) -> qvector< twinline_t const * >::iteratorit: qvector< twinline_t const * >::iteratorx: twinline_t const *const &
def pop_back(self, *args) ‑> void
-
pop_back(self)
def push_back(self, *args) ‑> twinline_t const *&
-
push_back(self, x)x: twinline_t const *const &push_back(self) -> twinline_t const *&
def qclear(self, *args) ‑> void
-
qclear(self)
def reserve(self, *args) ‑> void
-
reserve(self, cnt)cnt: size_t
def resize(self, *args) ‑> void
-
resize(self, _newsize, x)_newsize: size_tx: twinline_t const *const &resize(self, _newsize)_newsize: size_t
def size(self, *args) ‑> size_t
-
size(self) -> size_t
def swap(self, *args) ‑> void
-
swap(self, r)r: qvector< twinline_t const * > &
def truncate(self, *args) ‑> void
-
truncate(self)
class sections_lines_refs_t (*args)
-
Proxy of C++ qvector< section_lines_refs_t > class.__init__(self) -> sections_lines_refs_t__init__(self, x) -> sections_lines_refs_tx: qvector< section_lines_refs_t > const &
Methods
def add_unique(self, *args) ‑> bool
-
add_unique(self, x) -> boolx: section_lines_refs_t const &
def at(self, *args) ‑> section_lines_refs_t const &
-
at(self, _idx) -> section_lines_refs_t_idx: size_t
def back(self)
def begin(self, *args) ‑> qvector< section_lines_refs_t >::const_iterator
-
begin(self) -> qvector< section_lines_refs_t >::iteratorbegin(self) -> qvector< section_lines_refs_t >::const_iterator
def capacity(self, *args) ‑> size_t
-
capacity(self) -> size_t
def clear(self, *args) ‑> void
-
clear(self)
def empty(self, *args) ‑> bool
-
empty(self) -> bool
def end(self, *args) ‑> qvector< section_lines_refs_t >::const_iterator
-
end(self) -> qvector< section_lines_refs_t >::iteratorend(self) -> qvector< section_lines_refs_t >::const_iterator
def erase(self, *args) ‑> qvector< section_lines_refs_t >::iterator
-
erase(self, it) -> qvector< section_lines_refs_t >::iteratorit: qvector< section_lines_refs_t >::iteratorerase(self, first, last) -> qvector< section_lines_refs_t >::iteratorfirst: qvector< section_lines_refs_t >::iteratorlast: qvector< section_lines_refs_t >::iterator
def extract(self, *args) ‑> section_lines_refs_t *
-
extract(self) -> section_lines_refs_t
def find(self, *args) ‑> qvector< section_lines_refs_t >::const_iterator
-
find(self, x) -> qvector< section_lines_refs_t >::iteratorx: section_lines_refs_t const &find(self, x) -> qvector< section_lines_refs_t >::const_iteratorx: section_lines_refs_t const &
def front(self)
def grow(self, *args) ‑> void
-
grow(self, x=section_lines_refs_t())x: section_lines_refs_t const &
def has(self, *args) ‑> bool
-
has(self, x) -> boolx: section_lines_refs_t const &
def inject(self, *args) ‑> void
-
inject(self, s, len)s: section_lines_refs_t *len: size_t
def insert(self, *args) ‑> qvector< section_lines_refs_t >::iterator
-
insert(self, it, x) -> qvector< section_lines_refs_t >::iteratorit: qvector< section_lines_refs_t >::iteratorx: section_lines_refs_t const &
def pop_back(self, *args) ‑> void
-
pop_back(self)
def push_back(self, *args) ‑> section_lines_refs_t &
-
push_back(self, x)x: section_lines_refs_t const &push_back(self) -> section_lines_refs_t
def qclear(self, *args) ‑> void
-
qclear(self)
def reserve(self, *args) ‑> void
-
reserve(self, cnt)cnt: size_t
def resize(self, *args) ‑> void
-
resize(self, _newsize, x)_newsize: size_tx: section_lines_refs_t const &resize(self, _newsize)_newsize: size_t
def size(self, *args) ‑> size_t
-
size(self) -> size_t
def swap(self, *args) ‑> void
-
swap(self, r)r: qvector< section_lines_refs_t > &
def truncate(self, *args) ‑> void
-
truncate(self)
class simplecustviewer_t
-
The base class for implementing simple custom viewers
Class variables
var UI_Hooks_Trampoline
-
Proxy of C++ UI_Hooks class.
Methods
def AddLine(self, line, fgcolor=None, bgcolor=None)
-
Adds a colored line to the viewreturn: Boolean
def ClearLines(self)
-
Clears all the lines
def Close(self)
-
Destroys the view. One has to call Create() afterwards. Show() can be called and it will call Create() internally.return: Boolean
def Count(self)
-
Returns the number of lines in the view
def Create(self, title)
-
Creates the custom view. This should be the first method called after instantiationtitle: The title of the viewreturn: Boolean whether it succeeds or fails. It may fail if a window with the same title is already open.In this case better close existing windows
def DelLine(self, lineno)
-
Deletes an existing linereturn: Boolean
def EditLine(self, lineno, line, fgcolor=None, bgcolor=None)
-
Edits an existing line.return: Boolean
def GetCurrentLine(self, mouse=0, notags=0)
-
Returns the current line.mouse: Current line at mouse posnotags: If True then tag_remove() will be called before returning the linereturn: Returns the current line (colored or uncolored) or None on failure
def GetCurrentWord(self, mouse=0)
-
Returns the current wordmouse: Use mouse position or cursor positionreturn: None if failed or a String containing the current word at mouse or cursor
def GetLine(self, lineno)
-
Returns a linelineno: The line numberreturn: Returns a tuple (colored_line, fgcolor, bgcolor) or None
def GetLineNo(self, mouse=0)
-
Calls GetPos() and returns the current line number or -1 on failure
def GetPos(self, mouse=0)
-
Returns the current cursor or mouse position.mouse: return mouse positionreturn: Returns a tuple (lineno, x, y)
def GetSelection(self)
-
Returns the selected range or Nonereturn: - tuple(x1, y1, x2, y2)
- None if no selection
def GetWidget(self)
-
Return the TWidget underlying this view.return: The TWidget underlying this view, or None.
def InsertLine(self, lineno, line, fgcolor=None, bgcolor=None)
-
Inserts a line in the given positionreturn: Boolean
def IsFocused(self)
-
Returns True if the current view is the focused view
def Jump(self, lineno, x=0, y=0)
def OnPopup(self, form, popup_handle)
-
Context menu popup is about to be shown. Create items dynamically if you wishreturn: Boolean. True if you handled the event
def PatchLine(self, lineno, offs, value)
-
Patches an existing line character at the given offset. This is a low level function. You must know what you're doing
def Refresh(self)
def RefreshCurrent(self)
-
Refreshes the current line only
def Show(self)
-
Shows an already created view. It the view was close, then it will call Create() for youreturn: Boolean
class simpleline_place_t (*args, **kwargs)
-
Proxy of C++ simpleline_place_t class.
Ancestors
Instance variables
var n
-
line number
Inherited members
class simpleline_t (*args)
-
Proxy of C++ simpleline_t class.__init__(self) -> simpleline_t__init__(self, c, str) -> simpleline_tc: color_tstr: char const *__init__(self, str) -> simpleline_tstr: char const *
Instance variables
var bgcolor
-
line background color
var color
-
line prefix color
var line
-
line text
class strarray_t (*args)
-
Proxy of C++ strarray_t class.__init__(self) -> strarray_t
Instance variables
var code
-
code
var text
-
text
class structplace_t (*args, **kwargs)
-
Proxy of C++ structplace_t class.
Ancestors
Instance variables
var idx
-
struct serial number
var offset
-
offset within struct
Inherited members
class sync_source_t (*args)
-
Proxy of C++ sync_source_t class.__init__(self, _view) -> sync_source_t_view: TWidget const *__init__(self, _regname) -> sync_source_t_regname: char const *
Methods
def get_register(self, *args) ‑> char const *
-
get_register(self) -> char const *
def get_widget(self, *args) ‑> TWidget const *
-
get_widget(self) -> TWidget const *
def is_register(self, *args) ‑> bool
-
is_register(self) -> bool
def is_widget(self, *args) ‑> bool
-
is_widget(self) -> bool
class sync_source_vec_t (*args)
-
Proxy of C++ qvector< sync_source_t > class.__init__(self) -> sync_source_vec_t__init__(self, x) -> sync_source_vec_tx: qvector< sync_source_t > const &
Subclasses
Methods
def add_unique(self, *args) ‑> bool
-
add_unique(self, x) -> boolx: sync_source_t const &
def at(self, *args) ‑> sync_source_t const &
-
at(self, _idx) -> sync_source_t_idx: size_t
def back(self)
def begin(self, *args) ‑> qvector< sync_source_t >::const_iterator
-
begin(self) -> sync_source_t
def capacity(self, *args) ‑> size_t
-
capacity(self) -> size_t
def clear(self, *args) ‑> void
-
clear(self)
def empty(self, *args) ‑> bool
-
empty(self) -> bool
def end(self, *args) ‑> qvector< sync_source_t >::const_iterator
-
end(self) -> sync_source_t
def erase(self, *args) ‑> qvector< sync_source_t >::iterator
-
erase(self, it) -> sync_source_tit: qvector< sync_source_t >::iteratorerase(self, first, last) -> sync_source_tfirst: qvector< sync_source_t >::iteratorlast: qvector< sync_source_t >::iterator
def extract(self, *args) ‑> sync_source_t *
-
extract(self) -> sync_source_t
def find(self, *args) ‑> qvector< sync_source_t >::const_iterator
-
find(self, x) -> sync_source_tx: sync_source_t const &
def front(self)
def has(self, *args) ‑> bool
-
has(self, x) -> boolx: sync_source_t const &
def inject(self, *args) ‑> void
-
inject(self, s, len)s: sync_source_t *len: size_t
def insert(self, *args) ‑> qvector< sync_source_t >::iterator
-
insert(self, it, x) -> sync_source_tit: qvector< sync_source_t >::iteratorx: sync_source_t const &
def pop_back(self, *args) ‑> void
-
pop_back(self)
def push_back(self, *args) ‑> void
-
push_back(self, x)x: sync_source_t const &
def qclear(self, *args) ‑> void
-
qclear(self)
def reserve(self, *args) ‑> void
-
reserve(self, cnt)cnt: size_t
def size(self, *args) ‑> size_t
-
size(self) -> size_t
def swap(self, *args) ‑> void
-
swap(self, r)r: qvector< sync_source_t > &
def truncate(self, *args) ‑> void
-
truncate(self)
class synced_group_t (*args)
-
Proxy of C++ synced_group_t class.__init__(self) -> synced_group_t
Ancestors
Methods
def has(self, *args) ‑> bool
-
has(self, ss) -> boolss: sync_source_t const &
def has_register(self, *args) ‑> bool
-
has_register(self, r) -> boolr: char const *
def has_widget(self, *args) ‑> bool
-
has_widget(self, v) -> boolv: TWidget const *
Inherited members
class text_t (*args)
-
Proxy of C++ qvector< twinline_t > class.__init__(self) -> text_t__init__(self, x) -> text_tx: qvector< twinline_t > const &
Methods
def at(self, *args) ‑> twinline_t const &
-
at(self, _idx) -> twinline_t_idx: size_t
def back(self)
def begin(self, *args) ‑> qvector< twinline_t >::const_iterator
-
begin(self) -> twinline_t
def capacity(self, *args) ‑> size_t
-
capacity(self) -> size_t
def clear(self, *args) ‑> void
-
clear(self)
def empty(self, *args) ‑> bool
-
empty(self) -> bool
def end(self, *args) ‑> qvector< twinline_t >::const_iterator
-
end(self) -> twinline_t
def erase(self, *args) ‑> qvector< twinline_t >::iterator
-
erase(self, it) -> twinline_tit: qvector< twinline_t >::iteratorerase(self, first, last) -> twinline_tfirst: qvector< twinline_t >::iteratorlast: qvector< twinline_t >::iterator
def extract(self, *args) ‑> twinline_t *
-
extract(self) -> twinline_t
def front(self)
def grow(self, *args) ‑> void
-
grow(self, x=twinline_t())x: twinline_t const &
def inject(self, *args) ‑> void
-
inject(self, s, len)s: twinline_t *len: size_t
def insert(self, *args) ‑> qvector< twinline_t >::iterator
-
insert(self, it, x) -> twinline_tit: qvector< twinline_t >::iteratorx: twinline_t const &
def pop_back(self, *args) ‑> void
-
pop_back(self)
def push_back(self, *args) ‑> twinline_t &
-
push_back(self, x)x: twinline_t const &push_back(self) -> twinline_t
def qclear(self, *args) ‑> void
-
qclear(self)
def reserve(self, *args) ‑> void
-
reserve(self, cnt)cnt: size_t
def resize(self, *args) ‑> void
-
resize(self, _newsize, x)_newsize: size_tx: twinline_t const &resize(self, _newsize)_newsize: size_t
def size(self, *args) ‑> size_t
-
size(self) -> size_t
def swap(self, *args) ‑> void
-
swap(self, r)r: qvector< twinline_t > &
def truncate(self, *args) ‑> void
-
truncate(self)
class textctrl_info_t (text='', flags=0, tabsize=0)
-
Class representing textctrl_info_t
Ancestors
Subclasses
Class variables
var TXTF_ACCEPTTABS
-
Tab key inserts 'tabsize' spaces
var TXTF_AUTOINDENT
-
Auto-indent on new line
var TXTF_FIXEDFONT
-
The control uses IDA's fixed font
var TXTF_MODIFIED
-
Gets/sets the modified status
var TXTF_READONLY
-
Text cannot be edited (but can be selected and copied)
var TXTF_SELECTED
-
Shows the field with its text selected
Instance variables
var flags
-
Text control property bits
var tabsize
-
how many spaces a single tab will indent
var text
-
in, out: text control value
var value
-
Alias for the text property
Methods
def assign(self, other)
-
Copies the contents of 'other' to 'self'
Inherited members
class twinline_t (*args)
-
Proxy of C++ twinline_t class.__init__(self) -> twinline_t__init__(self, t, pc, bc) -> twinline_tt: place_t *pc: color_tbc: bgcolor_t
Instance variables
var at
-
location in view
var bg_color
-
line background color
var is_default
-
is this the default line of the current location?
var line
-
line contents
var prefix_color
-
line prefix color
class twinpos_t (*args)
-
Proxy of C++ twinpos_t class.__init__(self) -> twinpos_t__init__(self, t) -> twinpos_tt: place_t *__init__(self, t, x0) -> twinpos_tt: place_t *x0: int
Instance variables
var at
-
location in view
var x
-
cursor x
Methods
def place(self, view)
def place_as_enumplace_t(self)
def place_as_idaplace_t(self)
def place_as_simpleline_place_t(self)
def place_as_structplace_t(self)
class ui_requests_t (*args)
-
Proxy of C++ ui_requests_t class.__init__(self) -> ui_requests_t
class view_mouse_event_location_t (*args)
-
Proxy of C++ view_mouse_event_location_t class.__init__(self) -> view_mouse_event_location_t
Instance variables
var ea
-
flat view (rtype == TCCRT_FLAT)
var item
-
graph views (rtype != TCCRT_FLAT). nullptr if mouse is not currently over an item.
class view_mouse_event_t (*args)
-
Proxy of C++ view_mouse_event_t class.__init__(self) -> view_mouse_event_t
Instance variables
-
represents which mouse button was responsible for generating the event. This field does not care about the current state of the mouse.
var location
-
location where event was generated
var renderer_pos
-
position where event was generated, relative to the renderer
var rtype
-
type of renderer that received the event
var state
-
contains information about what buttons are CURRENTLY pressed on the keyboard and mouse. view_mouse_event_t instances created in functions like mouseReleaseEvent() won't contain any information about the mouse, because it has been released.
var x
-
screen x coordinate
var y
-
screen y coordinate
-