layer_shika_domain/value_objects/popup_size.rs
1#[derive(Debug, Clone, Default)]
2pub enum PopupSize {
3 /// Fixed logical size
4 Fixed { width: f32, height: f32 },
5
6 /// Minimum size (can grow with content)
7 Minimum { width: f32, height: f32 },
8
9 /// Maximum size (can shrink below content)
10 Maximum { width: f32, height: f32 },
11
12 /// Constrained range
13 Range {
14 min_width: f32,
15 min_height: f32,
16 max_width: f32,
17 max_height: f32,
18 },
19
20 /// Automatic based on content (default: use 2×2 initialization)
21 #[default]
22 Content,
23
24 /// Match parent popup size
25 MatchParent,
26}