77 tref, gzgroup->
type, &gzgt_ptr);
80 const float radius = (gzgt_ptr_is_valid ?
RNA_float_get(&gzgt_ptr,
"radius") :
92 const float radius = gzgt_ptr_is_valid ?
RNA_float_get(&gzgt_ptr,
"radius") :
102 "backdrop_fill_alpha",
103 gzgt_ptr_is_valid ?
RNA_float_get(&gzgt_ptr,
"backdrop_fill_alpha") : 0.125f);
144 .use_only_center =
true,
145 .orientation_index = orientation + 1,
175 &rna_ToolSettings_workspace_tool_type,
184 mbus, &toolsettings_ptr, props[i], &msg_sub_value_gz_tag_refresh, __func__);
189 static const char *
handle_normal_id =
"VIEW3D_GGT_tool_generic_handle_normal";
190 static const char *
handle_free_id =
"VIEW3D_GGT_tool_generic_handle_free";
194 gzgt->
name =
"Generic Tool Widget Normal";
221 gzgt->
name =
"Generic Tool Widget Free";
246 gzgt->
srna,
"backdrop_fill_alpha", 0.125, 0.0f, 1.0f,
"Backdrop Alpha",
"", 0.0f, 1.0f);
struct Scene * CTX_data_scene(const bContext *C)
struct wmWindowManager * CTX_wm_manager(const bContext *C)
struct View3D * CTX_wm_view3d(const bContext *C)
struct ARegion * CTX_wm_region(const bContext *C)
struct ToolSettings * CTX_data_tool_settings(const bContext *C)
void unit_m4(float m[4][4])
void copy_m4_m3(float m1[4][4], const float m2[3][3])
MINLINE void copy_v3_v3(float r[3], const float a[3])
MINLINE void negate_v3(float r[3])
@ SCE_WORKSPACE_TOOL_FALLBACK
@ ED_GIZMO_BUTTON_SHOW_BACKDROP
@ ED_GIZMO_BUTTON_SHOW_OUTLINE
@ ED_GIZMO_BUTTON_SHOW_HELPLINE
bool ED_gizmo_poll_or_unlink_delayed_from_tool(const struct bContext *C, struct wmGizmoGroupType *gzgt)
Read Guarded memory(de)allocation.
void UI_GetThemeColor3fv(int colorid, float col[3])
@ WM_GIZMO_OPERATOR_TOOL_INIT
@ WM_GIZMO_DRAW_OFFSET_SCALE
@ WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP
@ WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK
void *(* MEM_mallocN)(size_t len, const char *str)
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
float RNA_float_get(PointerRNA *ptr, const char *name)
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, float default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
struct ToolSettings * toolsettings
wmGizmoGroupFnMsgBusSubscribe message_subscribe
wmGizmoGroupFnRefresh refresh
eWM_GizmoFlagGroupTypeFlag flag
struct wmGizmoMapType_Params gzmap_params
struct wmGizmoGroupType * type
struct wmGizmoMap * parent_gzmap
float matrix_offset[4][4]
struct wmKeyConfig * defaultconf
void WM_gizmo_set_line_width(wmGizmo *gz, const float line_width)
void WM_gizmo_set_flag(wmGizmo *gz, const int flag, const bool enable)
wmGizmo * WM_gizmo_new(const char *idname, wmGizmoGroup *gzgroup, PointerRNA *properties)
void WM_gizmo_do_msg_notify_tag_refresh(bContext *UNUSED(C), wmMsgSubscribeKey *UNUSED(msg_key), wmMsgSubscribeValue *msg_val)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
void WM_msg_subscribe_rna(struct wmMsgBus *mbus, PointerRNA *ptr, const PropertyRNA *prop, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)