Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/gizmo/WM_gizmo_types.h
| Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | typedef enum eWM_GizmoFlagGroupTypeFlag { | ||||
| * | * | ||||
| * The result for the user is tweak events delay the gizmo from flashing under the users cursor, | * 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 | * 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 tweak event. | * with click drag events by popping up under the cursor and catching the tweak event. | ||||
| */ | */ | ||||
| WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK = (1 << 9), | WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK = (1 << 9), | ||||
| /** | /** | ||||
| * Redraw the region's gizmos on mouse moves. | |||||
| */ | |||||
| WM_GIZMOGROUPTYPE_ATTACHED_TO_CURSOR = (1 << 9), | |||||
| /** | |||||
| * Cause continuous redraws, i.e. set the region redraw flag on every main loop iteration. This | * 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, | * should really be avoided by using proper region redraw tagging, notifiers and the message-bus, | ||||
| * however for VR it's sometimes needed. | * however for VR it's sometimes needed. | ||||
| */ | */ | ||||
| WM_GIZMOGROUPTYPE_VR_REDRAWS = (1 << 10), | WM_GIZMOGROUPTYPE_VR_REDRAWS = (1 << 10), | ||||
| } eWM_GizmoFlagGroupTypeFlag; | } eWM_GizmoFlagGroupTypeFlag; | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 311 Lines • ▼ Show 20 Lines | |||||
| } wmGizmoGroupType; | } wmGizmoGroupType; | ||||
| typedef struct wmGizmoGroup { | typedef struct wmGizmoGroup { | ||||
| struct wmGizmoGroup *next, *prev; | struct wmGizmoGroup *next, *prev; | ||||
| struct wmGizmoGroupType *type; | struct wmGizmoGroupType *type; | ||||
| ListBase gizmos; | ListBase gizmos; | ||||
| struct PointerRNA *ptr; | |||||
| struct IDProperty *properties; | |||||
| struct wmGizmoMap *parent_gzmap; | struct wmGizmoMap *parent_gzmap; | ||||
| /** Python stores the class instance here. */ | /** Python stores the class instance here. */ | ||||
| void *py_instance; | void *py_instance; | ||||
| /** Errors and warnings storage. */ | /** Errors and warnings storage. */ | ||||
| struct ReportList *reports; | struct ReportList *reports; | ||||
| /** Has the same result as hiding all gizmos individually. */ | /** Has the same result as hiding all gizmos individually. */ | ||||
| Show All 34 Lines | |||||