Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_screen.h
| Show All 20 Lines | |||||
| /** \file | /** \file | ||||
| * \ingroup bke | * \ingroup bke | ||||
| */ | */ | ||||
| #include "BLI_compiler_attrs.h" | #include "BLI_compiler_attrs.h" | ||||
| #include "RNA_types.h" | #include "RNA_types.h" | ||||
| #include "BKE_context.h" | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct ARegion; | struct ARegion; | ||||
| struct Header; | struct Header; | ||||
| struct ID; | struct ID; | ||||
| struct LibraryForeachIDData; | struct LibraryForeachIDData; | ||||
| ▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | typedef struct SpaceType { | ||||
| void (*keymap)(struct wmKeyConfig *keyconf); | void (*keymap)(struct wmKeyConfig *keyconf); | ||||
| /* on startup, define dropboxes for spacetype+regions */ | /* on startup, define dropboxes for spacetype+regions */ | ||||
| void (*dropboxes)(void); | void (*dropboxes)(void); | ||||
| /* initialize gizmo-map-types and gizmo-group-types with the region */ | /* initialize gizmo-map-types and gizmo-group-types with the region */ | ||||
| void (*gizmos)(void); | void (*gizmos)(void); | ||||
| /* return context data */ | /* return context data */ | ||||
| int (*context)(const struct bContext *C, const char *member, struct bContextDataResult *result); | bContextDataCallback context; | ||||
| /* Used when we want to replace an ID by another (or NULL). */ | /* Used when we want to replace an ID by another (or NULL). */ | ||||
| void (*id_remap)(struct ScrArea *area, | void (*id_remap)(struct ScrArea *area, | ||||
| struct SpaceLink *sl, | struct SpaceLink *sl, | ||||
| struct ID *old_id, | struct ID *old_id, | ||||
| struct ID *new_id); | struct ID *new_id); | ||||
| int (*space_subtype_get)(struct ScrArea *area); | int (*space_subtype_get)(struct ScrArea *area); | ||||
| ▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | typedef struct ARegionType { | ||||
| /* register operator types on startup */ | /* register operator types on startup */ | ||||
| void (*operatortypes)(void); | void (*operatortypes)(void); | ||||
| /* add own items to keymap */ | /* add own items to keymap */ | ||||
| void (*keymap)(struct wmKeyConfig *keyconf); | void (*keymap)(struct wmKeyConfig *keyconf); | ||||
| /* allows default cursor per region */ | /* allows default cursor per region */ | ||||
| void (*cursor)(struct wmWindow *win, struct ScrArea *area, struct ARegion *region); | void (*cursor)(struct wmWindow *win, struct ScrArea *area, struct ARegion *region); | ||||
| /* return context data */ | /* return context data */ | ||||
| int (*context)(const struct bContext *C, const char *member, struct bContextDataResult *result); | bContextDataCallback context; | ||||
| /* Is called whenever the current visible View2D's region changes. | /* Is called whenever the current visible View2D's region changes. | ||||
| * | * | ||||
| * Used from user code such as view navigation/zoom operators to inform region about changes. | * Used from user code such as view navigation/zoom operators to inform region about changes. | ||||
| * The goal is to support zoom-to-fit features which gets disabled when manual navigation is | * The goal is to support zoom-to-fit features which gets disabled when manual navigation is | ||||
| * performed. | * performed. | ||||
| * | * | ||||
| * This callback is not called on indirect changes of the current viewport (which could happen | * This callback is not called on indirect changes of the current viewport (which could happen | ||||
| ▲ Show 20 Lines • Show All 260 Lines • Show Last 20 Lines | |||||