Blender V5.3
wm_gizmo_map.cc File Reference
#include <cstring>
#include "BLI_enum_flags.hh"
#include "BLI_ghash.hh"
#include "BLI_listbase.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_rect.hh"
#include "BLI_vector.hh"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_main.hh"
#include "BKE_screen.hh"
#include "ED_screen.hh"
#include "ED_select_utils.hh"
#include "ED_view3d.hh"
#include "GPU_framebuffer.hh"
#include "GPU_matrix.hh"
#include "GPU_select.hh"
#include "GPU_state.hh"
#include "GPU_viewport.hh"
#include "MEM_guardedalloc.h"
#include "WM_api.hh"
#include "WM_types.hh"
#include "wm_event_system.hh"
#include "UI_interface.hh"
#include "DEG_depsgraph.hh"
#include "wm_gizmo_intern.hh"
#include "wm_gizmo_wmapi.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Enumerations

enum  blender::eWM_GizmoFlagGroupTypeGlobalFlag { blender::WM_GIZMOMAPTYPE_GLOBAL_UPDATE_INIT = (1 << 0) , blender::WM_GIZMOMAPTYPE_GLOBAL_UPDATE_REMOVE = (1 << 1) , blender::WM_GIZMOTYPE_GLOBAL_UPDATE_REMOVE = (1 << 2) , blender::WM_GIZMOTYPE_GLOBAL_REINIT_ALL = (1 << 3) }
enum  { blender::GIZMOMAP_IS_PREPARE_DRAW = (1 << 0) , blender::GIZMOMAP_IS_REFRESH_CALLBACK = (1 << 1) }

Functions

wmGizmoMap Selection Array API

Just handle wm_gizmomap_select_array_*, not flags or callbacks.

static void blender::wm_gizmomap_select_array_ensure_len_alloc (wmGizmoMap *gzmap, int len)
void blender::wm_gizmomap_select_array_clear (wmGizmoMap *gzmap)
void blender::wm_gizmomap_select_array_shrink (wmGizmoMap *gzmap, int len_subtract)
void blender::wm_gizmomap_select_array_push_back (wmGizmoMap *gzmap, wmGizmo *gz)
void blender::wm_gizmomap_select_array_remove (wmGizmoMap *gzmap, wmGizmo *gz)
wmGizmoMap
static wmGizmoMap * blender::wm_gizmomap_new_from_type_ex (wmGizmoMapType *gzmap_type, wmGizmoMap *gzmap)
wmGizmoMap * blender::WM_gizmomap_new_from_type (const wmGizmoMapType_Params *gzmap_params)
static void blender::wm_gizmomap_free_data (wmGizmoMap *gzmap)
void blender::wm_gizmomap_remove (wmGizmoMap *gzmap)
void blender::WM_gizmomap_reinit (wmGizmoMap *gzmap)
wmGizmoGroup * blender::WM_gizmomap_group_find (wmGizmoMap *gzmap, const char *idname)
wmGizmoGroup * blender::WM_gizmomap_group_find_ptr (wmGizmoMap *gzmap, const wmGizmoGroupType *gzgt)
const ListBaseT< wmGizmoGroup > * blender::WM_gizmomap_group_list (wmGizmoMap *gzmap)
bool blender::WM_gizmomap_is_any_selected (const wmGizmoMap *gzmap)
wmGizmo * blender::WM_gizmomap_get_modal (const wmGizmoMap *gzmap)
bool blender::WM_gizmomap_minmax (const wmGizmoMap *gzmap, bool, bool use_select, float r_min[3], float r_max[3])
static Set< wmGizmo * > blender::WM_gizmomap_gizmo_hash_new (const bContext *C, wmGizmoMap *gzmap, bool(*poll)(const wmGizmo *, void *), void *data, const eWM_GizmoFlag flag_exclude)
eWM_GizmoFlagMapDrawStep blender::WM_gizmomap_drawstep_from_gizmo_group (const wmGizmoGroup *gzgroup)
void blender::WM_gizmomap_tag_refresh_drawstep (wmGizmoMap *gzmap, const eWM_GizmoFlagMapDrawStep drawstep)
void blender::WM_gizmomap_tag_refresh (wmGizmoMap *gzmap)
bool blender::WM_gizmomap_tag_delay_refresh_for_tweak_check (wmGizmoMap *gzmap)
static bool blender::gizmo_prepare_drawing (wmGizmoMap *gzmap, wmGizmo *gz, const bContext *C, ListBaseT< LinkData > *draw_gizmos, const eWM_GizmoFlagMapDrawStep drawstep)
static void blender::gizmomap_prepare_drawing (wmGizmoMap *gzmap, const bContext *C, ListBaseT< LinkData > *draw_gizmos, const eWM_GizmoFlagMapDrawStep drawstep)
static void blender::gizmos_draw_list (const wmGizmoMap *gzmap, const bContext *C, ListBaseT< LinkData > *draw_gizmos)
void blender::WM_gizmomap_draw (wmGizmoMap *gzmap, const bContext *C, const eWM_GizmoFlagMapDrawStep drawstep)
static void blender::gizmo_draw_select_3d_loop (const bContext *C, wmGizmo **visible_gizmos, const int visible_gizmos_len, bool *r_use_select_bias)
static int blender::gizmo_find_intersected_3d_intern (wmGizmo **visible_gizmos, const int visible_gizmos_len, const bContext *C, const int co[2], const int hotspot)
static wmGizmo * blender::gizmo_find_intersected_3d (bContext *C, const int co[2], wmGizmo **visible_gizmos, const int visible_gizmos_len, int *r_part)
bool blender::wm_gizmomap_highlight_pending (const wmGizmoMap *gzmap)
bool blender::wm_gizmomap_highlight_handled (wmGizmoMap *gzmap)
wmGizmo * blender::wm_gizmomap_highlight_find (wmGizmoMap *gzmap, bContext *C, const wmEvent *event, int *r_part)
void blender::WM_gizmomap_add_handlers (ARegion *region, wmGizmoMap *gzmap)
void blender::wm_gizmomaps_handled_modal_update (bContext *C, wmEvent *event, wmEventHandler_Op *handler)
bool blender::wm_gizmomap_deselect_all (wmGizmoMap *gzmap)
static bool blender::gizmo_selectable_poll (const wmGizmo *gz, void *)
static bool blender::wm_gizmomap_select_all_intern (bContext *C, wmGizmoMap *gzmap)
bool blender::WM_gizmomap_select_all (bContext *C, wmGizmoMap *gzmap, const int action)
void blender::wm_gizmomap_handler_context_op (bContext *C, wmEventHandler_Op *handler)
void blender::wm_gizmomap_handler_context_gizmo (bContext *, wmEventHandler_Gizmo *)
bool blender::WM_gizmomap_cursor_set (const wmGizmoMap *gzmap, wmWindow *win)
bool blender::wm_gizmomap_highlight_set (wmGizmoMap *gzmap, const bContext *C, wmGizmo *gz, int part)
wmGizmo * blender::wm_gizmomap_highlight_get (wmGizmoMap *gzmap)
void blender::wm_gizmomap_modal_set (wmGizmoMap *gzmap, bContext *C, wmGizmo *gz, const wmEvent *event, bool enable)
wmGizmo * blender::wm_gizmomap_modal_get (wmGizmoMap *gzmap)
wmGizmo ** blender::wm_gizmomap_selected_get (wmGizmoMap *gzmap, int *r_selected_len)
ListBaseT< wmGizmoGroup > * blender::wm_gizmomap_groups_get (wmGizmoMap *gzmap)
void blender::WM_gizmomap_message_subscribe (const bContext *C, wmGizmoMap *gzmap, ARegion *region, wmMsgBus *mbus)
Tooltip Handling
ARegion * blender::WM_gizmomap_tooltip_init (bContext *C, ARegion *region, int *, double *, bool *r_exit_on_event)
wmGizmoMapType
wmGizmoMapType * blender::WM_gizmomaptype_find (const wmGizmoMapType_Params *gzmap_params)
wmGizmoMapType * blender::WM_gizmomaptype_ensure (const wmGizmoMapType_Params *gzmap_params)
void blender::wm_gizmomaptypes_free ()
void blender::wm_gizmos_keymap (wmKeyConfig *keyconf)
Updates for Dynamic Type Registration
void blender::WM_gizmoconfig_update_tag_group_type_init (wmGizmoMapType *gzmap_type, wmGizmoGroupType *gzgt)
void blender::WM_gizmoconfig_update_tag_group_type_remove (wmGizmoMapType *gzmap_type, wmGizmoGroupType *gzgt)
void blender::WM_gizmoconfig_update_tag_group_remove (wmGizmoMap *gzmap)
void blender::WM_gizmoconfig_update_tag_reinit_all ()
void blender::WM_gizmoconfig_update (Main *bmain)
Recreate All Gizmos

Use when adjusting themes.

void blender::WM_reinit_gizmomap_all (Main *bmain)

Variables

static ListBaseT< wmGizmoMapType > blender::gizmomaptypes = {nullptr, nullptr}
static eWM_GizmoFlagGroupTypeGlobalFlag blender::wm_gzmap_type_update_flag