Blender
V3.3
|
#include "BLI_compiler_attrs.h"
#include "BLI_utildefines.h"
#include "DNA_listBase.h"
#include "wm_gizmo_fn.h"
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 512 of file WM_gizmo_types.h.
typedef enum eWM_GizmoFlag eWM_GizmoFlag |
wmGizmo.flag Flags for individual gizmos.
typedef enum eWM_GizmoFlagGroupTypeFlag eWM_GizmoFlagGroupTypeFlag |
wmGizmoGroupType.flag Flags that influence the behavior of all gizmos in the group.
typedef enum eWM_GizmoFlagMapDrawStep eWM_GizmoFlagMapDrawStep |
Pass a value of this enum to WM_gizmomap_draw to tell it what to draw.
wmGizmoMapType.type_update_flag Gizmo-map type update flag
typedef enum eWM_GizmoFlagState eWM_GizmoFlagState |
typedef struct wmGizmoGroup wmGizmoGroup |
typedef struct wmGizmoGroupType wmGizmoGroupType |
typedef struct wmGizmoGroupTypeRef wmGizmoGroupTypeRef |
Factory class for a gizmo-group type, gets called every time a new area is spawned.
typedef struct wmGizmoOpElem wmGizmoOpElem |
typedef struct wmGizmoProperty wmGizmoProperty |
Similar to PropertyElemRNA, but has an identifier.
typedef struct wmGizmoPropertyType wmGizmoPropertyType |
typedef struct wmGizmoType wmGizmoType |
typedef struct wmGizmoWrapper wmGizmoWrapper |
Simple utility wrapper for storing a single gizmo as wmGizmoGroup.customdata (which gets freed).
enum eWM_GizmoFlag |
wmGizmo.flag Flags for individual gizmos.
Definition at line 49 of file WM_gizmo_types.h.
Enumerator | |
---|---|
WM_GIZMOGROUP_INIT_SETUP | Gizmo-group has been initialized. |
WM_GIZMOGROUP_INIT_REFRESH |
Definition at line 158 of file WM_gizmo_types.h.
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 93 of file WM_gizmo_types.h.
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 506 of file WM_gizmo_types.h.
wmGizmoMapType.type_update_flag Gizmo-map type update flag
Definition at line 168 of file WM_gizmo_types.h.
enum eWM_GizmoFlagState |
Enumerator | |
---|---|
WM_GIZMO_STATE_HIGHLIGHT | While hovered. |
WM_GIZMO_STATE_MODAL | While dragging. |
WM_GIZMO_STATE_SELECT |
Definition at line 37 of file WM_gizmo_types.h.
enum eWM_GizmoFlagTweak |
Gizmo tweak flag. Bit-flag passed to gizmo while tweaking.
Enumerator | |
---|---|
WM_GIZMO_TWEAK_PRECISE | |
WM_GIZMO_TWEAK_SNAP |
Definition at line 187 of file WM_gizmo_types.h.
ENUM_OPERATORS | ( | eWM_GizmoFlag | , |
WM_GIZMO_NO_TOOLTIP | |||
) |
ENUM_OPERATORS | ( | eWM_GizmoFlagGroupTypeFlag | , |
WM_GIZMOGROUPTYPE_VR_REDRAWS | |||
) |