Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/WM_api.h
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
| #include "WM_keymap.h" | #include "WM_keymap.h" | ||||
| #include "BLI_compiler_attrs.h" | #include "BLI_compiler_attrs.h" | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct bContext; | struct bContext; | ||||
| struct bToolRef_Runtime; | |||||
| struct GHashIterator; | struct GHashIterator; | ||||
| struct IDProperty; | struct IDProperty; | ||||
| struct wmEvent; | struct wmEvent; | ||||
| struct wmEventHandler; | struct wmEventHandler; | ||||
| struct wmGesture; | struct wmGesture; | ||||
| struct wmJob; | struct wmJob; | ||||
| struct wmMsgSubscribeKey; | struct wmMsgSubscribeKey; | ||||
| struct wmMsgSubscribeValue; | struct wmMsgSubscribeValue; | ||||
| ▲ Show 20 Lines • Show All 532 Lines • ▼ Show 20 Lines | |||||
| float WM_event_tablet_data(const struct wmEvent *event, int *pen_flip, float tilt[2]); | float WM_event_tablet_data(const struct wmEvent *event, int *pen_flip, float tilt[2]); | ||||
| bool WM_event_is_tablet(const struct wmEvent *event); | bool WM_event_is_tablet(const struct wmEvent *event); | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_INPUT_IME | ||||
| bool WM_event_is_ime_switch(const struct wmEvent *event); | bool WM_event_is_ime_switch(const struct wmEvent *event); | ||||
| #endif | #endif | ||||
| /* wm_toolsystem.c */ | /* wm_toolsystem.c */ | ||||
| void WM_toolsystem_unlink(struct bContext *C, struct WorkSpace *workspace); | |||||
| void WM_toolsystem_link(struct bContext *C, struct WorkSpace *workspace); | |||||
| void WM_toolsystem_refresh(struct bContext *C, struct WorkSpace *workspace); | |||||
| void WM_toolsystem_set(struct bContext *C, const struct bToolDef *tool); | /* Values that define a categoey of active tool. */ | ||||
| typedef struct bToolKey { int space_type; int mode; } bToolKey; | |||||
| struct bToolRef *WM_toolsystem_ref_from_context(struct bContext *C); | |||||
| struct bToolRef *WM_toolsystem_ref_find(struct WorkSpace *workspace, const bToolKey *tkey); | |||||
| bool WM_toolsystem_ref_ensure( | |||||
| struct WorkSpace *workspace, const bToolKey *tkey, | |||||
| struct bToolRef **r_tref); | |||||
| struct bToolRef_Runtime *WM_toolsystem_runtime_from_context(struct bContext *C); | |||||
| struct bToolRef_Runtime *WM_toolsystem_runtime_find(struct WorkSpace *workspace, const bToolKey *tkey); | |||||
| void WM_toolsystem_unlink(struct bContext *C, struct WorkSpace *workspace, const bToolKey *tkey); | |||||
| void WM_toolsystem_link(struct bContext *C, struct WorkSpace *workspace, const bToolKey *tkey); | |||||
| void WM_toolsystem_refresh(struct bContext *C, struct WorkSpace *workspace, const bToolKey *tkey); | |||||
| void WM_toolsystem_unlink_all(struct bContext *C, struct WorkSpace *workspace); | |||||
| void WM_toolsystem_link_all(struct bContext *C, struct WorkSpace *workspace); | |||||
| void WM_toolsystem_refresh_all(struct bContext *C, struct WorkSpace *workspace); | |||||
| void WM_toolsystem_ref_set_from_runtime( | |||||
| struct bContext *C, struct WorkSpace *workspace, struct bToolRef *tref, | |||||
| const struct bToolRef_Runtime *tool, const char *idname); | |||||
| void WM_toolsystem_init(struct bContext *C); | void WM_toolsystem_init(struct bContext *C); | ||||
| int WM_toolsystem_mode_from_spacetype( | |||||
| struct WorkSpace *workspace, struct Scene *scene, struct ScrArea *sa, | |||||
| int space_type); | |||||
| bool WM_toolsystem_key_from_context( | |||||
| struct WorkSpace *workspace, struct Scene *scene, struct ScrArea *sa, | |||||
| bToolKey *tkey); | |||||
| void WM_toolsystem_update_from_context( | |||||
| struct bContext *C, | |||||
| struct WorkSpace *workspace, struct Scene *scene, struct ScrArea *sa); | |||||
| void WM_toolsystem_update_from_context_view3d(struct bContext *C); | |||||
| bool WM_toolsystem_active_tool_is_brush(const struct bContext *C); | bool WM_toolsystem_active_tool_is_brush(const struct bContext *C); | ||||
| void WM_toolsystem_do_msg_notify_tag_refresh( | void WM_toolsystem_do_msg_notify_tag_refresh( | ||||
| struct bContext *C, struct wmMsgSubscribeKey *msg_key, struct wmMsgSubscribeValue *msg_val); | struct bContext *C, struct wmMsgSubscribeKey *msg_key, struct wmMsgSubscribeValue *msg_val); | ||||
| /* wm_tooltip.c */ | /* wm_tooltip.c */ | ||||
| typedef struct ARegion *(*wmTooltipInitFn)(struct bContext *, struct ARegion *, bool *); | typedef struct ARegion *(*wmTooltipInitFn)(struct bContext *, struct ARegion *, bool *); | ||||
| Show All 14 Lines | |||||