Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_screen.h
| Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | typedef struct ARegionType { | ||||
| int regionid; /* unique identifier within this space, defines RGN_TYPE_xxxx */ | int regionid; /* unique identifier within this space, defines RGN_TYPE_xxxx */ | ||||
| /* add handlers, stuff you only do once or on area/region type/size changes */ | /* add handlers, stuff you only do once or on area/region type/size changes */ | ||||
| void (*init)(struct wmWindowManager *wm, struct ARegion *region); | void (*init)(struct wmWindowManager *wm, struct ARegion *region); | ||||
| /* exit is called when the region is hidden or removed */ | /* exit is called when the region is hidden or removed */ | ||||
| void (*exit)(struct wmWindowManager *wm, struct ARegion *region); | void (*exit)(struct wmWindowManager *wm, struct ARegion *region); | ||||
| /* draw entirely, view changes should be handled here */ | /* draw entirely, view changes should be handled here */ | ||||
| void (*draw)(const struct bContext *C, struct ARegion *region); | void (*draw)(const struct bContext *C, struct ARegion *region); | ||||
| /* Handler to draw overlays. This handler is called every draw loop. */ | /** | ||||
| * Handler to draw overlays. This handler is called every draw loop. | |||||
| * | |||||
| * \note Some editors should return early if the interface is locked | |||||
| * (check with #CTX_wm_interface_locked) to avoid accessing scene data | |||||
| * that another thread may be modifying | |||||
| */ | |||||
| void (*draw_overlay)(const struct bContext *C, struct ARegion *region); | void (*draw_overlay)(const struct bContext *C, struct ARegion *region); | ||||
| /* optional, compute button layout before drawing for dynamic size */ | /* optional, compute button layout before drawing for dynamic size */ | ||||
| void (*layout)(const struct bContext *C, struct ARegion *region); | void (*layout)(const struct bContext *C, struct ARegion *region); | ||||
| /* snap the size of the region (can be NULL for no snapping). */ | /* snap the size of the region (can be NULL for no snapping). */ | ||||
| int (*snap_size)(const struct ARegion *region, int size, int axis); | int (*snap_size)(const struct ARegion *region, int size, int axis); | ||||
| /* contextual changes should be handled here */ | /* contextual changes should be handled here */ | ||||
| void (*listener)(struct wmWindow *win, | void (*listener)(struct wmWindow *win, | ||||
| struct ScrArea *area, | struct ScrArea *area, | ||||
| ▲ Show 20 Lines • Show All 281 Lines • Show Last 20 Lines | |||||