1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
//! Flutter counterpart: `gestures/debug.dart`.
use ;
static DEBUG_PRINT_HIT_TEST_RESULTS: AtomicBool = new;
static DEBUG_PRINT_MOUSE_HOVER_EVENTS: AtomicBool = new;
static DEBUG_PRINT_GESTURE_ARENA_DIAGNOSTICS: AtomicBool = new;
static DEBUG_PRINT_RECOGNIZER_CALLBACKS_TRACE: AtomicBool = new;
static DEBUG_PRINT_RESAMPLING_MARGIN: AtomicBool = new;
/// Whether to print the results of each hit test to the console.
///
/// When this is set, in debug mode, any time a hit test is triggered by the
/// `GestureBinding` the results are dumped to the console.
///
/// This has no effect in release builds.
///
/// In Flutter this is a library-level `bool`. Assignment is
/// [`set_debug_print_hit_test_results`].
/// Sets [`debug_print_hit_test_results`].
/// Whether to print the details of each mouse hover event to the console.
///
/// When this is set, in debug mode, any time a mouse hover event is triggered
/// by the `GestureBinding`, the results are dumped to the console.
///
/// This has no effect in release builds, and only applies to mouse hover
/// events.
///
/// In Flutter this is a library-level `bool`. Assignment is
/// [`set_debug_print_mouse_hover_events`].
/// Sets [`debug_print_mouse_hover_events`].
/// Prints information about gesture recognizers and gesture arenas.
///
/// This flag only has an effect in debug mode.
///
/// See also:
///
/// * [`crate::GestureArenaManager`], the class that manages gesture arenas.
/// * [`debug_print_recognizer_callbacks_trace`], for debugging issues with
/// gesture recognizers.
///
/// In Flutter this is a library-level `bool`. Assignment is
/// [`set_debug_print_gesture_arena_diagnostics`].
/// Sets [`debug_print_gesture_arena_diagnostics`].
/// Logs a message every time a gesture recognizer callback is invoked.
///
/// This flag only has an effect in debug mode.
///
/// This is specifically used by `GestureRecognizer.invokeCallback`. Gesture
/// recognizers that do not use this method to invoke callbacks may not honor
/// the [`debug_print_recognizer_callbacks_trace`] flag.
///
/// See also:
///
/// * [`debug_print_gesture_arena_diagnostics`], for debugging issues with gesture
/// arenas.
///
/// In Flutter this is a library-level `bool`. Assignment is
/// [`set_debug_print_recognizer_callbacks_trace`].
/// Sets [`debug_print_recognizer_callbacks_trace`].
/// Whether to print the resampling margin to the console.
///
/// When this is set, in debug mode, any time resampling is triggered by the
/// `GestureBinding` the resampling margin is dumped to the console. The
/// resampling margin is the delta between the time of the last received
/// touch event and the current sample time. Positive value indicates that
/// resampling is effective and the resampling offset can potentially be
/// reduced for improved latency. Negative value indicates that resampling
/// is failing and resampling offset needs to be increased for smooth
/// touch event processing.
///
/// This has no effect in release builds.
///
/// In Flutter this is a library-level `bool`. Assignment is
/// [`set_debug_print_resampling_margin`].
/// Sets [`debug_print_resampling_margin`].
/// Returns true if none of the gestures library debug variables have been changed.
///
/// This function is used by the test framework to ensure that debug variables
/// haven't been inadvertently changed.
///
/// See [the gestures library](https://api.flutter.dev/flutter/gestures/gestures-library.html) for a complete
/// list.