IDA C++ SDK 9.2
Loading...
Searching...
No Matches
Simpleline interface

IDA custom viewer sample.

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:4727
size_t size(void) const
Get the number of elements in the qvector.
Definition pro.h:2423
A location in a view populated by a strvec_t.
Definition kernwin.hpp:1736
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:5408
qvector< simpleline_t > strvec_t
A collection of simple lines to populate a custom view.
Definition kernwin.hpp:1732

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