Latest available version: IDA and decompilers v8.4.240320sp1 see all releases
Hex-Rays logo State-of-the-art binary code analysis tools
email icon
action_ctx_base_t Struct Reference

Maintain information about the current state of the UI. More...

#include <kernwin.hpp>

Public Member Functions

 action_ctx_base_t ()
 Constructor.
 
void reset ()
 Invalidate all context info.
 
bool has_flag (uint32 flag) const
 Check if the given flag is set.
 

Public Attributes

TWidget * widget
 
twidget_type_t widget_type
 type of current widget
 
qstring widget_title
 title of current widget
 
sizevec_t chooser_selection
 current chooser selection (0-based)
 
const char * action
 action name
 
uint32 cur_flags
 Current address information. see Action context property bits.
 
ea_t cur_ea
 the current EA of the position in the view
 
uval_t cur_value
 the possible address, or value the cursor is positioned on
 
func_tcur_func
 the current function
 
func_tcur_fchunk
 the current function chunk
 
struc_tcur_struc
 the current structure
 
member_tcur_strmem
 the current structure member
 
enum_t cur_enum
 the current enum
 
segment_tcur_seg
 the current segment
 
action_ctx_base_cur_sel_t cur_sel
 the currently selected range. also see ACF_HAS_SELECTION
 
const char * regname
 register name (if widget_type == BWN_CPUREGS and context menu opened on register)
 
TWidget * focus
 The focused widget in case it is not the 'form' itself (e.g., the 'quick filter' input in choosers.)
 
screen_graph_selection_tgraph_selection
 the current graph selection (if in a graph view)
 
const_t cur_enum_member
 
dirtree_selection_tdirtree_selection
 the current dirtree_t selection (if applicable)
 
action_ctx_base_source_t source
 the underlying chooser_base_t (if 'widget' is a chooser widget)
 
til_type_ref_t * type_ref
 a reference to the current type (if 'widget' is a types listing widget; nullptr otherwise)
 

Detailed Description

Maintain information about the current state of the UI.

This allows actions to behave appropriately (see action_handler_t)


The documentation for this struct was generated from the following file: