Rizin
unix-like reverse engineering framework and cli tools
rz_panels.h
Go to the documentation of this file.
1 #ifndef RZ_PANELS_H
2 #define RZ_PANELS_H
3 
4 #include <rz_types.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 typedef enum {
13  NONE
15 
16 typedef enum {
18  PANEL_TYPE_MENU = 1
20 
21 typedef enum {
26 
27 typedef void (*RzPanelMenuUpdateCallback)(void *user, const char *parent);
28 typedef void (*RzPanelDirectionCallback)(void *user, int direction);
29 typedef void (*RzPanelRotateCallback)(void *user, bool rev);
30 typedef void (*RzPanelPrintCallback)(void *user, void *p);
31 
32 typedef struct rz_panel_pos_t {
33  int x;
34  int y;
35  int w;
36  int h;
38 
39 typedef struct rz_panel_model_t {
44  char *cmd;
45  char *title;
48  bool cache;
49  char *cmdStrCache;
50  char *readOnly;
51  char *funcName;
52  char **filter;
53  int n_filter;
54  int rotate;
56 
57 typedef struct rz_panel_view_t {
60  int sx;
61  int sy;
62  int curpos;
63  bool refresh;
64  int edge;
66 
67 typedef struct rz_panel_t {
71 
72 typedef void (*RzPanelAlmightyCallback)(void *user, RzPanel *panel, const RzPanelLayout dir, RZ_NULLABLE const char *title);
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif // RZ_PANELS_H
static RzILOpEffect * rev(cs_insn *insn, bool is_thumb)
Definition: arm_il32.c:1590
void * p
Definition: libc.cpp:67
struct rz_panel_pos_t RzPanelPos
RzPanelEdge
Definition: rz_panels.h:21
@ PANEL_EDGE_NONE
Definition: rz_panels.h:22
@ PANEL_EDGE_RIGHT
Definition: rz_panels.h:24
@ PANEL_EDGE_BOTTOM
Definition: rz_panels.h:23
struct rz_panel_model_t RzPanelModel
struct rz_panel_view_t RzPanelView
RzPanelType
Definition: rz_panels.h:16
@ PANEL_TYPE_MENU
Definition: rz_panels.h:18
@ PANEL_TYPE_DEFAULT
Definition: rz_panels.h:17
void(* RzPanelRotateCallback)(void *user, bool rev)
Definition: rz_panels.h:29
void(* RzPanelDirectionCallback)(void *user, int direction)
Definition: rz_panels.h:28
void(* RzPanelPrintCallback)(void *user, void *p)
Definition: rz_panels.h:30
void(* RzPanelAlmightyCallback)(void *user, RzPanel *panel, const RzPanelLayout dir, RZ_NULLABLE const char *title)
Definition: rz_panels.h:72
RzPanelLayout
Definition: rz_panels.h:10
@ VERTICAL
Definition: rz_panels.h:11
@ HORIZONTAL
Definition: rz_panels.h:12
@ NONE
Definition: rz_panels.h:13
struct rz_panel_t RzPanel
void(* RzPanelMenuUpdateCallback)(void *user, const char *parent)
Definition: rz_panels.h:27
#define RZ_NULLABLE
Definition: rz_types.h:65
char * funcName
Definition: rz_panels.h:51
char * cmdStrCache
Definition: rz_panels.h:49
RzPanelRotateCallback rotateCb
Definition: rz_panels.h:41
RzPanelDirectionCallback directionCb
Definition: rz_panels.h:40
char ** filter
Definition: rz_panels.h:52
RzPanelType type
Definition: rz_panels.h:43
char * readOnly
Definition: rz_panels.h:50
RzPanelPrintCallback print_cb
Definition: rz_panels.h:42
RzPanelModel * model
Definition: rz_panels.h:68
RzPanelView * view
Definition: rz_panels.h:69
RzPanelPos pos
Definition: rz_panels.h:58
RzPanelPos prevPos
Definition: rz_panels.h:59
ut64(WINAPI *w32_GetEnabledXStateFeatures)()