Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/WM_toolsystem.h
| Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
| * \see #toolsystem_ref_link | * \see #toolsystem_ref_link | ||||
| */ | */ | ||||
| void WM_toolsystem_ref_sync_from_context(struct Main *bmain, | void WM_toolsystem_ref_sync_from_context(struct Main *bmain, | ||||
| struct WorkSpace *workspace, | struct WorkSpace *workspace, | ||||
| struct bToolRef *tref); | struct bToolRef *tref); | ||||
| void WM_toolsystem_init(struct bContext *C); | void WM_toolsystem_init(struct bContext *C); | ||||
| int WM_toolsystem_mode_from_spacetype(struct ViewLayer *view_layer, | int WM_toolsystem_mode_from_spacetype(const struct Scene *scene, | ||||
| struct ViewLayer *view_layer, | |||||
| struct ScrArea *area, | struct ScrArea *area, | ||||
| int space_type); | int space_type); | ||||
| bool WM_toolsystem_key_from_context(struct ViewLayer *view_layer, | bool WM_toolsystem_key_from_context(const struct Scene *scene, | ||||
| struct ViewLayer *view_layer, | |||||
| struct ScrArea *area, | struct ScrArea *area, | ||||
| bToolKey *tkey); | bToolKey *tkey); | ||||
| void WM_toolsystem_update_from_context_view3d(struct bContext *C); | void WM_toolsystem_update_from_context_view3d(struct bContext *C); | ||||
| void WM_toolsystem_update_from_context(struct bContext *C, | void WM_toolsystem_update_from_context(struct bContext *C, | ||||
| struct WorkSpace *workspace, | struct WorkSpace *workspace, | ||||
| const struct Scene *scene, | |||||
| struct ViewLayer *view_layer, | struct ViewLayer *view_layer, | ||||
| struct ScrArea *area); | struct ScrArea *area); | ||||
| /** | /** | ||||
| * For paint modes to support non-brush tools. | * For paint modes to support non-brush tools. | ||||
| */ | */ | ||||
| bool WM_toolsystem_active_tool_is_brush(const struct bContext *C); | bool WM_toolsystem_active_tool_is_brush(const struct bContext *C); | ||||
| Show All 34 Lines | |||||
| * This is a little involved since there may be multiple valid active tools | * This is a little involved since there may be multiple valid active tools | ||||
| * depending on the mode and space type. | * depending on the mode and space type. | ||||
| * | * | ||||
| * Used when undoing since the active mode may have changed. | * Used when undoing since the active mode may have changed. | ||||
| */ | */ | ||||
| void WM_toolsystem_refresh_active(struct bContext *C); | void WM_toolsystem_refresh_active(struct bContext *C); | ||||
| void WM_toolsystem_refresh_screen_area(struct WorkSpace *workspace, | void WM_toolsystem_refresh_screen_area(struct WorkSpace *workspace, | ||||
| const struct Scene *scene, | |||||
| struct ViewLayer *view_layer, | struct ViewLayer *view_layer, | ||||
| struct ScrArea *area); | struct ScrArea *area); | ||||
| void WM_toolsystem_refresh_screen_window(struct wmWindow *win); | void WM_toolsystem_refresh_screen_window(struct wmWindow *win); | ||||
| void WM_toolsystem_refresh_screen_all(struct Main *bmain); | void WM_toolsystem_refresh_screen_all(struct Main *bmain); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||