|
Blender V4.3
|
#include "BLI_compiler_attrs.h"#include "BLI_utildefines.h"#include "BLI_vector.hh"#include "DNA_listBase.h"#include "wm_gizmo_fn.hh"Go to the source code of this file.
Classes | |
| struct | wmGizmoOpElem |
| struct | wmGizmo |
| struct | wmGizmoProperty |
| struct | wmGizmoPropertyType |
| struct | wmGizmoWrapper |
| struct | wmGizmoMapType_Params |
| struct | wmGizmoType |
| struct | wmGizmoGroupTypeRef |
| struct | wmGizmoGroupType |
| struct | wmGizmoGroup |
| #define WM_GIZMOMAP_DRAWSTEP_MAX 2 |
Definition at line 513 of file WM_gizmo_types.hh.
Referenced by wm_gizmomap_highlight_find(), wm_gizmomap_modal_set(), WM_gizmomap_tag_refresh(), and WM_gizmomap_tag_refresh_drawstep().
| enum eWM_GizmoFlag |
wmGizmo.flag Flags for individual gizmos.
Definition at line 52 of file WM_gizmo_types.hh.
| Enumerator | |
|---|---|
| WM_GIZMOGROUP_INIT_SETUP | Gizmo-group has been initialized. |
| WM_GIZMOGROUP_INIT_REFRESH | |
Definition at line 162 of file WM_gizmo_types.hh.
wmGizmoGroupType.flag Flags that influence the behavior of all gizmos in the group.
| Enumerator | |
|---|---|
| WM_GIZMOGROUPTYPE_3D | Mark gizmo-group as being 3D. |
| WM_GIZMOGROUPTYPE_SCALE | Scale gizmos as 3D object that respects zoom (otherwise zoom independent draw size). NOTE: currently only for 3D views, 2D support needs adding. |
| WM_GIZMOGROUPTYPE_DEPTH_3D | Gizmos can be depth culled with scene objects (covered by other geometry - TODO). |
| WM_GIZMOGROUPTYPE_SELECT | Gizmos can be selected. |
| WM_GIZMOGROUPTYPE_PERSISTENT | The gizmo group is to be kept (not removed on loading a new file for eg). |
| WM_GIZMOGROUPTYPE_DRAW_MODAL_ALL | Show all other gizmos when interacting. Also show this group when another group is being interacted with. |
| WM_GIZMOGROUPTYPE_DRAW_MODAL_EXCLUDE | Don't draw this gizmo group when it is modal. |
| WM_GIZMOGROUPTYPE_TOOL_INIT | When used with tool, only run when activating the tool, instead of linking the gizmo while the tool is active.
|
| WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP | This gizmo type supports using the fallback tools keymap. #wmGizmoGroup.use_tool_fallback will need to be set too. Often useful in combination with WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK |
| WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK | Use this from a gizmos refresh callback so we can postpone the refresh operation until the tweak operation is finished. Only do this when the group doesn't have a highlighted gizmo. The result for the user is tweak events delay the gizmo from flashing under the users cursor, for selection operations. This means gizmos that use this check don't interfere with click-drag events by popping up under the cursor and catching the drag-drag event. |
| WM_GIZMOGROUPTYPE_VR_REDRAWS | Cause continuous redraws, i.e. set the region redraw flag on every main loop iteration. This should really be avoided by using proper region redraw tagging, notifiers and the message-bus, however for VR it's sometimes needed. |
Definition at line 97 of file WM_gizmo_types.hh.
Pass a value of this enum to WM_gizmomap_draw to tell it what to draw.
| Enumerator | |
|---|---|
| WM_GIZMOMAP_DRAWSTEP_2D | Draw 2D gizmo-groups (WM_GIZMOGROUPTYPE_3D not set). |
| WM_GIZMOMAP_DRAWSTEP_3D | Draw 3D gizmo-groups (WM_GIZMOGROUPTYPE_3D set). |
Definition at line 507 of file WM_gizmo_types.hh.
wmGizmoMapType.type_update_flag Gizmo-map type update flag
Definition at line 173 of file WM_gizmo_types.hh.
| enum eWM_GizmoFlagState |
| Enumerator | |
|---|---|
| WM_GIZMO_STATE_HIGHLIGHT | While hovered. |
| WM_GIZMO_STATE_MODAL | While dragging. |
| WM_GIZMO_STATE_SELECT | |
Definition at line 39 of file WM_gizmo_types.hh.
| enum eWM_GizmoFlagTweak |
Gizmo tweak flag. Bit-flag passed to gizmo while tweaking.
| Enumerator | |
|---|---|
| WM_GIZMO_TWEAK_PRECISE | Drag with extra precision (Shift). |
| WM_GIZMO_TWEAK_SNAP | Drag with snap enabled (Control). |
Definition at line 193 of file WM_gizmo_types.hh.
| ENUM_OPERATORS | ( | eWM_GizmoFlag | , |
| WM_GIZMO_NEEDS_UNDO | ) |
| ENUM_OPERATORS | ( | eWM_GizmoFlagGroupTypeFlag | , |
| WM_GIZMOGROUPTYPE_VR_REDRAWS | ) |