Blender V5.3
blender::wmGizmoType Struct Reference

#include <WM_gizmo_types.hh>

Public Attributes

const char * idname
uint struct_size
wmGizmoFnSetup setup
wmGizmoFnDraw draw
wmGizmoFnDrawSelect draw_select
wmGizmoFnTestSelect test_select
wmGizmoFnModal modal
wmGizmoFnPropertyUpdate property_update
wmGizmoFnMatrixBasisGet matrix_basis_get
wmGizmoFnScreenBoundsGet screen_bounds_get
wmGizmoFnInvoke invoke
wmGizmoFnExit exit
wmGizmoFnCursorGet cursor_get
wmGizmoFnSelectRefresh select_refresh
wmGizmoFnFree free
StructRNA * srna
ExtensionRNA rna_ext
ListBaseT< wmGizmoPropertyType > target_property_defs
int target_property_defs_len

Detailed Description

Definition at line 371 of file WM_gizmo_types.hh.

Member Data Documentation

◆ cursor_get

◆ draw

◆ draw_select

◆ exit

wmGizmoFnExit blender::wmGizmoType::exit

◆ free

wmGizmoFnFree blender::wmGizmoType::free

Free data (not the gizmo itself), use when the gizmo allocates its own members.

Definition at line 431 of file WM_gizmo_types.hh.

Referenced by blender::GIZMO_GT_button_2d(), blender::GIZMO_GT_mesh_preselect_edgering_3d(), blender::GIZMO_GT_mesh_preselect_elem_3d(), blender::GIZMO_GT_snap_3d(), and blender::WM_gizmo_free().

◆ idname

◆ invoke

◆ matrix_basis_get

wmGizmoFnMatrixBasisGet blender::wmGizmoType::matrix_basis_get

Returns the final transformation which may be different from the 'matrix', depending on the gizmo. Notes:

Definition at line 409 of file WM_gizmo_types.hh.

Referenced by blender::GIZMO_GT_arrow_3d(), blender::GIZMO_GT_move_3d(), blender::WM_gizmo_calc_matrix_final_params(), and blender::wm_gizmo_calculate_scale().

◆ modal

◆ property_update

◆ rna_ext

ExtensionRNA blender::wmGizmoType::rna_ext

RNA integration.

Definition at line 437 of file WM_gizmo_types.hh.

Referenced by blender::gizmo_properties_init(), and blender::WM_gizmotype_free_ptr().

◆ screen_bounds_get

wmGizmoFnScreenBoundsGet blender::wmGizmoType::screen_bounds_get

Returns screen-space bounding box in the window space (compatible with #wmEvent.xy).

Used for tool-tip placement (otherwise the cursor location is used).

Definition at line 417 of file WM_gizmo_types.hh.

Referenced by blender::ED_gizmo_button2d_group_background(), blender::GIZMO_GT_button_2d(), blender::ui::tooltip_create_from_gizmo(), and blender::VIEW3D_GT_navigate_rotate().

◆ select_refresh

wmGizmoFnSelectRefresh blender::wmGizmoType::select_refresh

Called when gizmo selection state changes.

Definition at line 428 of file WM_gizmo_types.hh.

Referenced by blender::wm_gizmo_select_set_ex().

◆ setup

◆ srna

◆ struct_size

◆ target_property_defs

◆ target_property_defs_len

int blender::wmGizmoType::target_property_defs_len

◆ test_select


The documentation for this struct was generated from the following file: