Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_screen.h
| Show First 20 Lines • Show All 134 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 *, struct ARegion *); | void (*init)(struct wmWindowManager *, struct ARegion *); | ||||
| /* exit is called when the region is hidden or removed */ | /* exit is called when the region is hidden or removed */ | ||||
| void (*exit)(struct wmWindowManager *, struct ARegion *); | void (*exit)(struct wmWindowManager *, struct ARegion *); | ||||
| /* draw entirely, view changes should be handled here */ | /* draw entirely, view changes should be handled here */ | ||||
| void (*draw)(const struct bContext *, struct ARegion *); | void (*draw)(const struct bContext *, struct ARegion *); | ||||
| /* optional, refresh popup before drawing */ | |||||
| void (*refresh)(const struct bContext *, struct ARegion *); | |||||
| /* 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 *ar, int size, int axis); | int (*snap_size)(const struct ARegion *ar, int size, int axis); | ||||
| /* contextual changes should be handled here */ | /* contextual changes should be handled here */ | ||||
| void (*listener)(struct bScreen *, struct ScrArea *, struct ARegion *, | void (*listener)(struct bScreen *, struct ScrArea *, struct ARegion *, | ||||
| struct wmNotifier *, const struct Scene *scene); | struct wmNotifier *, const struct Scene *scene); | ||||
| /* Optional callback to generate subscriptions. */ | /* Optional callback to generate subscriptions. */ | ||||
| void (*message_subscribe)( | void (*message_subscribe)( | ||||
| const struct bContext *C, | const struct bContext *C, | ||||
| ▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines | |||||