Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_info/textview.h
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | typedef struct TextViewContext { | ||||
| void (*end)(struct TextViewContext *tvc); | void (*end)(struct TextViewContext *tvc); | ||||
| void *arg1; | void *arg1; | ||||
| void *arg2; | void *arg2; | ||||
| /* iterator */ | /* iterator */ | ||||
| int (*step)(struct TextViewContext *tvc); | int (*step)(struct TextViewContext *tvc); | ||||
| int (*line_get)(struct TextViewContext *tvc, const char **, int *); | int (*line_get)(struct TextViewContext *tvc, const char **, int *); | ||||
| int (*line_color)(struct TextViewContext *tvc, unsigned char fg[3], unsigned char bg[3]); | int (*line_color)(struct TextViewContext *tvc, unsigned char fg[3], unsigned char bg[3]); | ||||
| void (*const_colors)(struct TextViewContext *tvc, unsigned char bg_sel[4]); /* constant theme colors */ | void (*const_colors)(struct TextViewContext *tvc, | ||||
| unsigned char bg_sel[4], unsigned char cursor[3]); /* constant theme colors */ | |||||
| void (*cursor_coords)(struct TextViewContext *tvc, int xy[2]); | |||||
| void *iter; | void *iter; | ||||
| int iter_index; | int iter_index; | ||||
| int iter_char; /* char intex, used for multi-line report display */ | int iter_char; /* char intex, used for multi-line report display */ | ||||
| int iter_char_next; /* same as above, next \n */ | int iter_char_next; /* same as above, next \n */ | ||||
| int iter_tmp; /* internal iterator use */ | int iter_tmp; /* internal iterator use */ | ||||
| } TextViewContext; | } TextViewContext; | ||||
| int textview_draw(struct TextViewContext *tvc, const int draw, int mval[2], void **mouse_pick, int *pos_pick); | int textview_draw(struct TextViewContext *tvc, const int draw, int mval[2], void **mouse_pick, int *pos_pick); | ||||
| #define TVC_LINE_FG (1<<0) | #define TVC_LINE_FG (1<<0) | ||||
| #define TVC_LINE_BG (1<<1) | #define TVC_LINE_BG (1<<1) | ||||
| #endif /* __TEXTVIEW_H__ */ | #endif /* __TEXTVIEW_H__ */ | ||||