kubi/kubi-ui/src/measure.rs

16 lines
297 B
Rust
Raw Normal View History

2023-11-21 07:08:22 -06:00
use glam::Vec2;
2023-11-28 04:32:09 -06:00
#[derive(Default)]
#[non_exhaustive]
pub struct Hints {
pub inner_content_size: Option<Vec2>,
pub inner_content_size_cache: Option<Vec<Vec2>>,
}
#[derive(Default)]
2023-11-21 07:08:22 -06:00
pub struct Response {
2023-11-28 04:32:09 -06:00
pub size: Vec2,
pub hints: Hints,
pub user_data: Option<Box<dyn std::any::Any>>,
2023-11-21 07:08:22 -06:00
}