mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-23 07:38:42 -06:00
18 lines
360 B
Rust
18 lines
360 B
Rust
//! element measurement, hints and responses
|
|
|
|
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>>,
|
|
}
|