Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_screen.h
| Show First 20 Lines • Show All 434 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Gizmo-maps of a region need to be freed with the region. | * Gizmo-maps of a region need to be freed with the region. | ||||
| * Uses callback to avoid low-level call. | * Uses callback to avoid low-level call. | ||||
| */ | */ | ||||
| void BKE_region_callback_free_gizmomap_set(void (*callback)(struct wmGizmoMap *)); | void BKE_region_callback_free_gizmomap_set(void (*callback)(struct wmGizmoMap *)); | ||||
| void BKE_region_callback_refresh_tag_gizmomap_set(void (*callback)(struct wmGizmoMap *)); | void BKE_region_callback_refresh_tag_gizmomap_set(void (*callback)(struct wmGizmoMap *)); | ||||
| /** | /** | ||||
| * Find a region of type \a region_type in provided \a regionbase. | |||||
| * | |||||
| * \note this is useful for versioning where either the #Area or #SpaceLink regionbase are typical | |||||
| * inputs | |||||
| */ | |||||
| struct ARegion *BKE_region_find_in_listbase_by_type(const struct ListBase *regionbase, | |||||
| const int region_type); | |||||
| /** | |||||
| * Find a region of type \a region_type in the currently active space of \a area. | * Find a region of type \a region_type in the currently active space of \a area. | ||||
| * | * | ||||
| * \note This does _not_ work if the region to look up is not in the active space. | * \note This does _not_ work if the region to look up is not in the active space. | ||||
| * Use #BKE_spacedata_find_region_type if that may be the case. | * Use #BKE_spacedata_find_region_type if that may be the case. | ||||
| */ | */ | ||||
| struct ARegion *BKE_area_find_region_type(const struct ScrArea *area, int type); | struct ARegion *BKE_area_find_region_type(const struct ScrArea *area, int type); | ||||
| struct ARegion *BKE_area_find_region_active_win(struct ScrArea *area); | struct ARegion *BKE_area_find_region_active_win(struct ScrArea *area); | ||||
| struct ARegion *BKE_area_find_region_xy(struct ScrArea *area, int regiontype, const int xy[2]) | struct ARegion *BKE_area_find_region_xy(struct ScrArea *area, int regiontype, const int xy[2]) | ||||
| ▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines | |||||