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
Simpleline interface

IDA custom viewer sample. More...

Classes

struct  simpleline_t
 Maintain basic information for a line in a custom view. More...
 
class  simpleline_place_t
 A location in a view populated by a strvec_t. More...
 

Typedefs

typedef qvector< simpleline_tstrvec_t
 A collection of simple lines to populate a custom view. More...
 

Detailed Description

IDA custom viewer sample.

It is enough to create an object of strvec_t class, put all lines into it and create a custom ida viewer (create_custom_viewer).

strvec_t lines;
// fill it with lines...
simpleline_place_t s2(lines.size()-1);
static const custom_viewer_handlers_t handlers(...);
cv = create_custom_viewer("My title", &s1, &s2, &s1, nullptr, &lines, nullptr, nullptr);
Definition: kernwin.hpp:4667
Reimplementation of vector class from STL.
Definition: pro.h:2222
size_t size(void) const
Get the number of elements in the qvector.
Definition: pro.h:2348
A location in a view populated by a strvec_t.
Definition: kernwin.hpp:1686
TWidget * create_custom_viewer(const char *title, const place_t *minplace, const place_t *maxplace, const place_t *curplace, const renderer_info_t *rinfo, void *ud, const custom_viewer_handlers_t *cvhandlers, void *cvhandlers_ud, TWidget *parent=nullptr)
Create new ida viewer based on place_t (ui_create_custom_viewer).
Definition: kernwin.hpp:5323

This will produce a nice colored text view. Also see the SDK's 'custview' and 'hexview' plugins for more complete examples.

Typedef Documentation

◆ strvec_t

A collection of simple lines to populate a custom view.

This is an example of what you would pass as the 'ud' argument to create_custom_viewer()