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
ctext_position_t Struct Reference

Cursor position in the output text (pseudocode). More...

#include <hexrays.hpp>

Inheritance diagram for ctext_position_t:
history_item_t

Public Member Functions

bool in_ctree (int hdrlines) const
 Is the cursor in the variable/type declaration area? More...
 
 DECLARE_COMPARISONS (ctext_position_t)
 Comparison operators. More...
 
 ctext_position_t (int _lnnum=-1, int _x=0, int _y=0)
 

Public Attributes

int lnnum
 Line number. More...
 
int x
 x coordinate of the cursor within the window More...
 
int y
 y coordinate of the cursor within the window More...
 

Detailed Description

Cursor position in the output text (pseudocode).

Definition at line 7551 of file hexrays.hpp.

Constructor & Destructor Documentation

◆ ctext_position_t()

ctext_position_t::ctext_position_t ( int  _lnnum = -1,
int  _x = 0,
int  _y = 0 
)

Definition at line 7568 of file hexrays.hpp.

Member Function Documentation

◆ DECLARE_COMPARISONS()

ctext_position_t::DECLARE_COMPARISONS ( ctext_position_t  )

Comparison operators.

Definition at line 7560 of file hexrays.hpp.

References lnnum, and x.

◆ in_ctree()

bool ctext_position_t::in_ctree ( int  hdrlines) const

Is the cursor in the variable/type declaration area?

Parameters
hdrlinesNumber of lines of the declaration area

Definition at line 7558 of file hexrays.hpp.

References lnnum.

Referenced by vdui_t::in_ctree().

Member Data Documentation

◆ lnnum

int ctext_position_t::lnnum

Line number.

Definition at line 7553 of file hexrays.hpp.

Referenced by DECLARE_COMPARISONS(), and in_ctree().

◆ x

int ctext_position_t::x

x coordinate of the cursor within the window

Examples
hexrays_sample17.cpp.

Definition at line 7554 of file hexrays.hpp.

Referenced by DECLARE_COMPARISONS().

◆ y

int ctext_position_t::y

y coordinate of the cursor within the window

Definition at line 7555 of file hexrays.hpp.