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
//! Interaction modifiers for controlling view interactivity.
//!
//! This module provides modifiers for controlling how views respond to user interactions
//! such as touch events and hit testing.
use ;
use MetadataKey;
/// Controls whether a view responds to hit testing (touch/click events).
///
/// When `enabled` is false, touch events pass through the view to views behind it.
/// This modifier does NOT affect the visual appearance of the view.
///
/// # Example
///
/// ```rust
/// use waterui::prelude::*;
///
/// // Make a view transparent to touch events
/// let passthrough = text!("Click through me")
/// .hittable(false);
///
/// // Reactive hit testing control
/// let can_interact = binding::<bool>(true);
/// button("Click me").action(|| {})
/// .hittable(can_interact);
/// ```