|
Blender V5.3
|
#include <WM_types.hh>
Public Attributes | |
| wmGesture * | next |
| wmGesture * | prev |
| int | event_type |
| uint8_t | event_modifier |
| short | event_keymodifier |
| int | type |
| rcti | winrct |
| int | points |
| int | points_alloc |
| int | modal_state |
| bool | draw_active_side |
| int2 | mval |
| float2 | init_mval_view |
| uint | is_active: 1 |
| uint | is_active_prev: 1 |
| uint | wait_for_input: 1 |
| uint | move: 1 |
| uint | use_snap: 1 |
| uint | use_flip: 1 |
| uint | use_smooth: 1 |
| void * | customdata |
| wmGenericUserData | user_data |
| ui::View2DEdgePanData * | edge_pan_data |
wmGesture is registered to #wmWindow.gesture, handled by operator callbacks.
Definition at line 663 of file WM_types.hh.
| void* blender::wmGesture::customdata |
customdata
Definition at line 722 of file WM_types.hh.
Referenced by blender::draw_filled_lasso(), blender::draw_lasso_smooth_stroke_indicator(), blender::draw_start_vertex_circle(), blender::gesture_polyline_valid_points(), blender::wm_gesture_draw_circle(), blender::wm_gesture_draw_cross(), blender::wm_gesture_draw_lasso(), blender::wm_gesture_draw_line(), blender::wm_gesture_draw_polyline(), and blender::wm_gesture_draw_rect().
| bool blender::wmGesture::draw_active_side |
Optional, draw the active side of the straight-line gesture.
Definition at line 681 of file WM_types.hh.
Referenced by blender::wm_gesture_draw_line().
| ui::View2DEdgePanData* blender::wmGesture::edge_pan_data |
Definition at line 726 of file WM_types.hh.
| short blender::wmGesture::event_keymodifier |
#wmEvent.keymodifier.
Definition at line 670 of file WM_types.hh.
| uint8_t blender::wmGesture::event_modifier |
#wmEvent.modifier.
Definition at line 668 of file WM_types.hh.
| int blender::wmGesture::event_type |
#wmEvent.type.
Definition at line 666 of file WM_types.hh.
| float2 blender::wmGesture::init_mval_view |
Mouse position the gesture started at in view space. Used by edge panning.
Definition at line 685 of file WM_types.hh.
| uint blender::wmGesture::is_active |
For modal operators which may be running idle, waiting for an event to activate the gesture. Typically this is set when the user is click-dragging the gesture (box and circle select for eg).
Definition at line 692 of file WM_types.hh.
Referenced by blender::wm_gesture_draw().
| uint blender::wmGesture::is_active_prev |
Previous value of is-active (use to detect first run & edge cases).
Definition at line 694 of file WM_types.hh.
| int blender::wmGesture::modal_state |
Definition at line 679 of file WM_types.hh.
| uint blender::wmGesture::move |
Use for gestures that can be moved, like box selection.
Definition at line 698 of file WM_types.hh.
| int2 blender::wmGesture::mval |
Latest mouse position relative to area. Currently only used by lasso drawing code.
Definition at line 683 of file WM_types.hh.
Referenced by blender::draw_lasso_smooth_stroke_indicator(), blender::draw_start_vertex_circle(), blender::gesture_polyline_valid_points(), and blender::wm_gesture_draw_polyline().
| wmGesture* blender::wmGesture::next |
Definition at line 664 of file WM_types.hh.
Referenced by blender::wm_gesture_draw().
| int blender::wmGesture::points |
Optional, amount of points stored.
Definition at line 676 of file WM_types.hh.
Referenced by blender::draw_filled_lasso(), blender::draw_lasso_smooth_stroke_indicator(), blender::draw_start_vertex_circle(), blender::gesture_polyline_can_apply(), blender::gesture_polyline_valid_points(), blender::wm_gesture_draw_lasso(), and blender::wm_gesture_draw_polyline().
| int blender::wmGesture::points_alloc |
Optional, maximum amount of points stored.
Definition at line 678 of file WM_types.hh.
| wmGesture * blender::wmGesture::prev |
Definition at line 664 of file WM_types.hh.
| int blender::wmGesture::type |
Gesture type define.
Definition at line 672 of file WM_types.hh.
Referenced by blender::draw_filled_lasso(), blender::wm_gesture_draw(), and blender::wm_gesture_draw_lasso().
| uint blender::wmGesture::use_flip |
For gestures that support flip, stores if flip is enabled using the modal keymap toggle.
Definition at line 708 of file WM_types.hh.
Referenced by blender::wm_gesture_draw_line().
| uint blender::wmGesture::use_smooth |
For gestures that support smoothing, stores if smoothing is enabled using the modal keymap toggle.
Definition at line 713 of file WM_types.hh.
Referenced by blender::wm_gesture_draw_lasso().
| uint blender::wmGesture::use_snap |
For gestures that support snapping, stores if snapping is enabled using the modal keymap toggle.
Definition at line 703 of file WM_types.hh.
| wmGenericUserData blender::wmGesture::user_data |
Free pointer to use for operator allocations (if set, its freed on exit).
Definition at line 725 of file WM_types.hh.
| uint blender::wmGesture::wait_for_input |
Use for gestures that support both immediate or delayed activation.
Definition at line 696 of file WM_types.hh.
| rcti blender::wmGesture::winrct |
Bounds of region to draw gesture within.
Definition at line 674 of file WM_types.hh.
Referenced by blender::draw_filled_lasso(), and blender::wm_gesture_draw().