Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_screen.h
| Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | |||||
| typedef struct PanelType { | typedef struct PanelType { | ||||
| struct PanelType *next, *prev; | struct PanelType *next, *prev; | ||||
| char idname[BKE_ST_MAXNAME]; /* unique name */ | char idname[BKE_ST_MAXNAME]; /* unique name */ | ||||
| char label[BKE_ST_MAXNAME]; /* for panel header */ | char label[BKE_ST_MAXNAME]; /* for panel header */ | ||||
| char translation_context[BKE_ST_MAXNAME]; | char translation_context[BKE_ST_MAXNAME]; | ||||
| char context[BKE_ST_MAXNAME]; /* for buttons window */ | char context[BKE_ST_MAXNAME]; /* for buttons window */ | ||||
| char category[BKE_ST_MAXNAME]; /* for category tabs */ | char category[BKE_ST_MAXNAME]; /* for category tabs */ | ||||
| char ui_tag[BKE_ST_MAXNAME]; /* for work-spaces to selectively show. */ | |||||
brecht: Can we name this just `origin` and leave the `bl_` out in C code? We also don't use `bl_idname`. | |||||
| int space_type; | int space_type; | ||||
| int region_type; | int region_type; | ||||
| int flag; | int flag; | ||||
| /* verify if the panel should draw or not */ | /* verify if the panel should draw or not */ | ||||
| int (*poll)(const struct bContext *, struct PanelType *); | int (*poll)(const struct bContext *, struct PanelType *); | ||||
| /* draw header (optional) */ | /* draw header (optional) */ | ||||
| ▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
| /* menu types */ | /* menu types */ | ||||
| typedef struct MenuType { | typedef struct MenuType { | ||||
| struct MenuType *next, *prev; | struct MenuType *next, *prev; | ||||
| char idname[BKE_ST_MAXNAME]; /* unique name */ | char idname[BKE_ST_MAXNAME]; /* unique name */ | ||||
| char label[BKE_ST_MAXNAME]; /* for button text */ | char label[BKE_ST_MAXNAME]; /* for button text */ | ||||
| char translation_context[BKE_ST_MAXNAME]; | char translation_context[BKE_ST_MAXNAME]; | ||||
| char ui_tag[64]; /* optional workspace tag */ | |||||
sergeyUnsubmitted Done Inline ActionsBKE_ST_MAXNAME instead of 64? sergey: `BKE_ST_MAXNAME` instead of 64? | |||||
| const char *description; | const char *description; | ||||
| /* verify if the menu should draw or not */ | /* verify if the menu should draw or not */ | ||||
| int (*poll)(const struct bContext *, struct MenuType *); | int (*poll)(const struct bContext *, struct MenuType *); | ||||
| /* draw entirely, view changes should be handled here */ | /* draw entirely, view changes should be handled here */ | ||||
| void (*draw)(const struct bContext *, struct Menu *); | void (*draw)(const struct bContext *, struct Menu *); | ||||
| /* RNA integration */ | /* RNA integration */ | ||||
| ▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines | |||||
Can we name this just origin and leave the bl_ out in C code? We also don't use bl_idname.