Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/gizmo/WM_gizmo_types.h
| Show First 20 Lines • Show All 365 Lines • ▼ Show 20 Lines | typedef struct wmGizmoType { | ||||
| /** Returns the final transformation which may be different from the 'matrix', | /** Returns the final transformation which may be different from the 'matrix', | ||||
| * depending on the gizmo. | * depending on the gizmo. | ||||
| * Notes: | * Notes: | ||||
| * - Scale isn't applied (wmGizmo.scale/user_scale). | * - Scale isn't applied (wmGizmo.scale/user_scale). | ||||
| * - Offset isn't applied (wmGizmo.matrix_offset). | * - Offset isn't applied (wmGizmo.matrix_offset). | ||||
| */ | */ | ||||
| wmGizmoFnMatrixBasisGet matrix_basis_get; | wmGizmoFnMatrixBasisGet matrix_basis_get; | ||||
| /** | |||||
| * Returns screen-space bounding box in the window space | |||||
| * (compatible with #wmEvent.x #wmEvent.y). | |||||
| * | |||||
| * Used for tool-tip placement (otherwise the cursor location is used). | |||||
| */ | |||||
| wmGizmoFnScreenBoundsGet screen_bounds_get; | |||||
| /** Activate a gizmo state when the user clicks on it. */ | /** Activate a gizmo state when the user clicks on it. */ | ||||
| wmGizmoFnInvoke invoke; | wmGizmoFnInvoke invoke; | ||||
| /** Called when gizmo tweaking is done - used to free data and reset property when canceling. */ | /** Called when gizmo tweaking is done - used to free data and reset property when canceling. */ | ||||
| wmGizmoFnExit exit; | wmGizmoFnExit exit; | ||||
| wmGizmoFnCursorGet cursor_get; | wmGizmoFnCursorGet cursor_get; | ||||
| ▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines | |||||