hUI/hui/src/measure.rs

18 lines
360 B
Rust
Raw Normal View History

2024-02-27 13:31:12 -06:00
//! element measurement, hints and responses
2024-02-17 14:43:46 -06:00
use glam::Vec2;
#[derive(Default)]
#[non_exhaustive]
pub struct Hints {
pub inner_content_size: Option<Vec2>,
pub inner_content_size_cache: Option<Vec<Vec2>>,
}
#[derive(Default)]
pub struct Response {
pub size: Vec2,
pub hints: Hints,
pub user_data: Option<Box<dyn std::any::Any>>,
}