|
Blender V5.0
|
#include <cstdio>#include "BLI_vector_set.hh"#include "MEM_guardedalloc.h"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_prototypes.hh"#include "WM_types.hh"#include "wm_gizmo_intern.hh"#include "wm_gizmo_wmapi.hh"Go to the source code of this file.
Functions | |
GizmoGroup Type Append | |
| |
| static auto & | get_gizmo_group_type_map () |
| wmGizmoGroupType * | WM_gizmogrouptype_find (const StringRef idname, bool quiet) |
| static wmGizmoGroupType * | wm_gizmogrouptype_append__begin () |
| static void | wm_gizmogrouptype_append__end (wmGizmoGroupType *gzgt) |
| wmGizmoGroupType * | WM_gizmogrouptype_append (void(*wtfunc)(wmGizmoGroupType *)) |
| wmGizmoGroupType * | WM_gizmogrouptype_append_ptr (void(*wtfunc)(wmGizmoGroupType *, void *), void *userdata) |
| wmGizmoGroupTypeRef * | WM_gizmogrouptype_append_and_link (wmGizmoMapType *gzmap_type, void(*wtfunc)(wmGizmoGroupType *)) |
| static void | gizmogrouptype_free (wmGizmoGroupType *gzgt) |
| void | WM_gizmo_group_type_free_ptr (wmGizmoGroupType *gzgt) |
| bool | WM_gizmo_group_type_free (const StringRef idname) |
| void | wm_gizmogrouptype_free () |
| void | wm_gizmogrouptype_init () |
|
static |
Definition at line 33 of file wm_gizmo_group_type.cc.
References wmGizmoGroupType::idname, and operator()().
Referenced by WM_gizmo_group_type_free(), WM_gizmo_group_type_free_ptr(), wm_gizmogrouptype_append__end(), WM_gizmogrouptype_find(), wm_gizmogrouptype_free(), and wm_gizmogrouptype_init().
|
static |
Free but don't remove from the global list.
Definition at line 129 of file wm_gizmo_group_type.cc.
References wmGizmoGroupType::idname, MEM_freeN(), wmGizmoGroupType::rna_ext, and ExtensionRNA::srna.
Referenced by WM_gizmo_group_type_free_ptr(), and wm_gizmogrouptype_free().
| bool WM_gizmo_group_type_free | ( | const StringRef | idname | ) |
Definition at line 150 of file wm_gizmo_group_type.cc.
References get_gizmo_group_type_map(), and WM_gizmo_group_type_free_ptr().
| void WM_gizmo_group_type_free_ptr | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 139 of file wm_gizmo_group_type.cc.
References BLI_assert, get_gizmo_group_type_map(), gizmogrouptype_free(), wmGizmoGroupType::idname, and WM_gizmogrouptype_find().
Referenced by WM_gizmo_group_type_free().
| wmGizmoGroupType * WM_gizmogrouptype_append | ( | void(* | wtfunc )(wmGizmoGroupType *) | ) |
Definition at line 98 of file wm_gizmo_group_type.cc.
References wm_gizmogrouptype_append__begin(), and wm_gizmogrouptype_append__end().
Referenced by image_widgets(), MESH_OT_bisect(), MESH_OT_primitive_cube_add_gizmo(), MESH_OT_spin(), blender::ed::vse::sequencer_gizmos(), view3d_widgets(), and WM_gizmogrouptype_append_and_link().
|
static |
Definition at line 65 of file wm_gizmo_group_type.cc.
References BLENDER_RNA, BLT_I18NCONTEXT_OPERATOR_DEFAULT, MEM_callocN(), ot, RNA_def_struct_ptr(), RNA_def_struct_translation_context(), and wmGizmoGroupType::srna.
Referenced by WM_gizmogrouptype_append(), and WM_gizmogrouptype_append_ptr().
|
static |
Definition at line 76 of file wm_gizmo_group_type.cc.
References BLENDER_RNA, BLI_assert, wmGizmoGroupType::flag, get_gizmo_group_type_map(), wmGizmoGroupType::idname, wmGizmoGroupType::name, RNA_def_struct_identifier(), wmGizmoGroupType::setup_keymap, wmGizmoGroupType::srna, wmGizmoGroupType::type_update_flag, WM_gizmogroup_setup_keymap_generic(), WM_gizmogroup_setup_keymap_generic_select(), WM_GIZMOGROUPTYPE_SELECT, and WM_GIZMOMAPTYPE_KEYMAP_INIT.
Referenced by WM_gizmogrouptype_append(), and WM_gizmogrouptype_append_ptr().
| wmGizmoGroupTypeRef * WM_gizmogrouptype_append_and_link | ( | wmGizmoMapType * | gzmap_type, |
| void(* | wtfunc )(wmGizmoGroupType *) ) |
Append and insert into a gizmo type-map. This is most common for C gizmos which are enabled by default.
Definition at line 115 of file wm_gizmo_group_type.cc.
References wmGizmoGroupType::gzmap_params, wmGizmoMapType::regionid, wmGizmoMapType_Params::regionid, wmGizmoMapType::spaceid, wmGizmoMapType_Params::spaceid, WM_gizmogrouptype_append(), and WM_gizmomaptype_group_link_ptr().
Referenced by clip_gizmos(), image_widgets(), blender::ed::space_node::node_widgets(), blender::ed::vse::sequencer_gizmos(), and view3d_widgets().
| wmGizmoGroupType * WM_gizmogrouptype_append_ptr | ( | void(* | wtfunc )(wmGizmoGroupType *, void *), |
| void * | userdata ) |
Definition at line 106 of file wm_gizmo_group_type.cc.
References wm_gizmogrouptype_append__begin(), and wm_gizmogrouptype_append__end().
| wmGizmoGroupType * WM_gizmogrouptype_find | ( | const StringRef | idname, |
| bool | quiet ) |
Definition at line 45 of file wm_gizmo_group_type.cc.
References get_gizmo_group_type_map(), blender::StringRefBase::is_empty(), and printf.
Referenced by add_primitive_cube_gizmo_invoke(), edbm_spin_invoke(), toolsystem_ref_link(), toolsystem_unlink_ref(), WM_gizmo_group_type_add(), WM_gizmo_group_type_ensure(), WM_gizmo_group_type_free_ptr(), WM_gizmo_group_type_reinit(), WM_gizmo_group_type_remove(), WM_gizmo_group_type_unlink_delayed(), WM_gizmomap_group_find(), WM_gizmomaptype_group_link(), wm_handler_operator_call(), and WM_toolsystem_ref_set_from_runtime().
| void wm_gizmogrouptype_free | ( | ) |
Definition at line 162 of file wm_gizmo_group_type.cc.
References get_gizmo_group_type_map(), and gizmogrouptype_free().
Referenced by WM_exit_ex().
| void wm_gizmogrouptype_init | ( | ) |
Called on initialize WM_init().
Definition at line 170 of file wm_gizmo_group_type.cc.
References get_gizmo_group_type_map().
Referenced by WM_init().