Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/WM_types.h
| Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Lines | typedef struct wmGesture { | ||||
| rcti winrct; | rcti winrct; | ||||
| /** optional, amount of points stored. */ | /** optional, amount of points stored. */ | ||||
| int points; | int points; | ||||
| /** optional, maximum amount of points stored. */ | /** optional, maximum amount of points stored. */ | ||||
| int points_alloc; | int points_alloc; | ||||
| int modal_state; | int modal_state; | ||||
| /** optional, draw the active side of the straightline gesture. */ | /** optional, draw the active side of the straightline gesture. */ | ||||
| bool draw_active_side; | bool draw_active_side; | ||||
| /** | /** | ||||
| * For modal operators which may be running idle, waiting for an event to activate the gesture. | * For modal operators which may be running idle, waiting for an event to activate the gesture. | ||||
campbellbarton: There is no need to store the size here, rectangle can be moved while maintaining it's current… | |||||
| * Typically this is set when the user is click-dragging the gesture | * Typically this is set when the user is click-dragging the gesture | ||||
| * (box and circle select for eg). | * (box and circle select for eg). | ||||
| */ | */ | ||||
| uint is_active : 1; | uint is_active : 1; | ||||
| /** Previous value of is-active (use to detect first run & edge cases). */ | /** Previous value of is-active (use to detect first run & edge cases). */ | ||||
| uint is_active_prev : 1; | uint is_active_prev : 1; | ||||
| /** Use for gestures that support both immediate or delayed activation. */ | /** Use for gestures that support both immediate or delayed activation. */ | ||||
| uint wait_for_input : 1; | uint wait_for_input : 1; | ||||
| /** Use for gestures that can be moved, like box selection */ | |||||
| uint move : 1; | |||||
| /** | /** | ||||
| * customdata | * customdata | ||||
| * - for border is a #rcti. | * - for border is a #rcti. | ||||
| * - for circle is recti, (xmin, ymin) is center, xmax radius. | * - for circle is recti, (xmin, ymin) is center, xmax radius. | ||||
| * - for lasso is short array. | * - for lasso is short array. | ||||
| * - for straight line is a recti: (xmin,ymin) is start, (xmax, ymax) is end. | * - for straight line is a recti: (xmin,ymin) is start, (xmax, ymax) is end. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 431 Lines • Show Last 20 Lines | |||||
There is no need to store the size here, rectangle can be moved while maintaining it's current size.