Blender
V3.3
|
Go to the source code of this file.
void GIZMOGROUP_OT_gizmo_select | ( | struct wmOperatorType * | ot | ) |
Definition at line 374 of file wm_gizmo_group.c.
References wmOperatorType::description, wmOperatorType::flag, gizmo_select_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, and WM_operator_properties_mouse_select().
Referenced by wm_operatortypes_register().
void GIZMOGROUP_OT_gizmo_tweak | ( | struct wmOperatorType * | ot | ) |
Definition at line 599 of file wm_gizmo_group.c.
References wmOperatorType::description, wmOperatorType::flag, gizmo_tweak_invoke(), gizmo_tweak_modal(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, and ot.
Referenced by wm_operatortypes_register().
bool wm_gizmogroup_is_any_selected | ( | const struct wmGizmoGroup * | gzgroup | ) |
Definition at line 168 of file wm_gizmo_group_type.c.
References BLI_ghash_free(), global_gizmogrouptype_hash, NULL, and wm_gizmogrouptype_ghash_free_cb().
Referenced by WM_exit_ex().
Called on initialize WM_init().
Definition at line 175 of file wm_gizmo_group_type.c.
References BLI_ghash_str_new_ex(), and global_gizmogrouptype_hash.
Referenced by WM_init().
struct ListBase* wm_gizmomap_groups_get | ( | wmGizmoMap * | gzmap | ) |
Definition at line 1139 of file wm_gizmo_map.c.
References wmGizmoMap::groups.
void wm_gizmomap_handler_context_gizmo | ( | bContext * | C, |
struct wmEventHandler_Gizmo * | handler | ||
) |
void wm_gizmomap_handler_context_op | ( | bContext * | C, |
struct wmEventHandler_Op * | handler | ||
) |
Prepare context for gizmo handling (but only if area/region is part of screen). Version of wm_handler_op_context for gizmos.
Definition at line 934 of file wm_gizmo_map.c.
References blender::compositor::area(), wmEventHandler_Op::area, bScreen::areabase, C, wmEventHandler_Op::context, CTX_wm_area_set(), CTX_wm_region_set(), CTX_wm_screen(), ListBase::first, ARegion::next, NULL, and wmEventHandler_Op::region.
Referenced by wm_gizmomaps_handled_modal_update().
struct wmGizmo* wm_gizmomap_highlight_find | ( | struct wmGizmoMap * | gzmap, |
bContext * | C, | ||
const struct wmEvent * | event, | ||
int * | r_part | ||
) |
Try to find a gizmo under the mouse position. 2D intersections have priority over 3D ones (could check for smallest screen-space distance but not needed right now).
struct wmGizmo* wm_gizmomap_highlight_get | ( | struct wmGizmoMap * | gzmap | ) |
Definition at line 1030 of file wm_gizmo_map.c.
References wmGizmoMap::gzmap_context, and wmGizmoMap::highlight.
Referenced by wm_event_get_keymap_from_toolsystem_ex(), WM_gizmo_group_refresh(), wm_handler_operator_call(), and wm_handlers_do_gizmo_handler().
bool wm_gizmomap_highlight_set | ( | struct wmGizmoMap * | gzmap, |
const bContext * | C, | ||
struct wmGizmo * | gz, | ||
int | part | ||
) |
Definition at line 983 of file wm_gizmo_map.c.
References C, CTX_wm_region(), CTX_wm_window(), wmWindow::cursor, wmGizmoType::cursor_get, ED_region_tag_redraw_editor_overlays(), wmGizmoMap::gzmap_context, wmGizmoMap::highlight, wmGizmo::highlight_part, wmGizmoMap::last_cursor, wmGizmo::state, wmGizmo::type, WM_cursor_set(), and WM_GIZMO_STATE_HIGHLIGHT.
Referenced by WM_gizmo_highlight_set(), wm_gizmo_select_and_highlight(), WM_gizmo_unlink(), wm_gizmogroup_free(), wm_gizmomap_select_all_intern(), wm_gizmomaps_handled_modal_update(), WM_gizmomaptype_group_init_runtime_with_region(), and wm_handlers_do_gizmo_handler().
struct wmGizmo* wm_gizmomap_modal_get | ( | struct wmGizmoMap * | gzmap | ) |
Definition at line 1128 of file wm_gizmo_map.c.
References wmGizmoMap::gzmap_context, and wmGizmoMap::modal.
Referenced by wm_gizmomaps_handled_modal_update(), and wm_handlers_do_gizmo_handler().
void wm_gizmomap_modal_set | ( | struct wmGizmoMap * | gzmap, |
bContext * | C, | ||
struct wmGizmo * | gz, | ||
const struct wmEvent * | event, | ||
bool | enable | ||
) |
Caller should call exit when (enable == False).
void wm_gizmomap_remove | ( | struct wmGizmoMap * | gzmap | ) |
Definition at line 188 of file wm_gizmo_map.c.
References MEM_freeN, and wm_gizmomap_free_data().
Referenced by WM_init().
struct wmGizmo** wm_gizmomap_selected_get | ( | wmGizmoMap * | gzmap, |
int * | r_selected_len | ||
) |
Definition at line 1133 of file wm_gizmo_map.c.
References wmGizmoMap::gzmap_context, wmGizmoMapSelectState::items, wmGizmoMapSelectState::len, and wmGizmoMap::select.
void wm_gizmomaps_handled_modal_update | ( | bContext * | C, |
struct wmEvent * | event, | ||
struct wmEventHandler_Op * | handler | ||
) |
Definition at line 808 of file wm_gizmo_map.c.
References blender::compositor::area(), BLI_assert, C, wmEventHandler_Op::context, CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region(), CTX_wm_region_set(), wmGizmo::custom_modal, wmGizmoType::exit, ARegion::gizmo_map, wmGizmo::highlight_part, wmGizmoType::modal, NULL, wmEventHandler_Op::op, OPERATOR_RUNNING_MODAL, wmEventHandler_Op::region, wmOperator::type, wmGizmoOpElem::type, wmGizmo::type, UNUSED_VARS_NDEBUG, WM_gizmo_operator_get(), wm_gizmomap_handler_context_op(), wm_gizmomap_highlight_set(), wm_gizmomap_modal_get(), and wm_gizmomap_modal_set().
Referenced by wm_handler_operator_call().
Definition at line 1228 of file wm_gizmo_map.c.
References ListBase::first, gizmomaptypes, MEM_freeN, and WM_gizmomaptype_group_free().
Referenced by WM_exit_ex().
void wm_gizmos_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Initialize key-maps for all existing gizmo-groups
Definition at line 1242 of file wm_gizmo_map.c.
References gizmomaptypes, LISTBASE_FOREACH, wm_gizmogroup_tweak_modal_keymap(), and wm_gizmogrouptype_setup_keymap().
Referenced by wm_window_keymap().
Definition at line 175 of file wm_gizmo_type.c.
References BLI_ghash_free(), global_gizmotype_hash, NULL, and wm_gizmotype_ghash_free_cb().
Referenced by WM_exit_ex().
Called on initialize WM_init().
Definition at line 181 of file wm_gizmo_type.c.
References BLI_ghash_str_new_ex(), and global_gizmotype_hash.
Referenced by WM_init().