| IDA SDK

Classes | Typedefs
Simpleline interface

## 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 s1;
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);
custom_viewer_handlers_t
Definition: kernwin.hpp:4699
qvector
Reimplementation of vector class from STL.
Definition: pro.h:2228
qvector::size
size_t size(void) const
Get the number of elements in the qvector.
Definition: pro.h:2354
simpleline_place_t
A location in a view populated by a strvec_t.
Definition: kernwin.hpp:1708
create_custom_viewer
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:5377

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

## 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_t > | strvec_t
| A collection of simple lines to populate a custom view. More...

## Typedef Documentation

## ◆ strvec_t

typedef qvector<simpleline_t> 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()