use crate::animation::Animatable;
use crate::geometry::Size;
use crate::layout::LayoutGuide;
pub trait ViewHandle: Animatable {
fn layout_guide(&self) -> LayoutGuide<f32>;
fn size<F>(&self, callback: F)
where
F: FnOnce(Size<f32>) + Send + 'static;
fn size_with_buffer<F>(&self, buffer: &mut Self::CommandBuffer, callback: F)
where
F: FnOnce(Size<f32>) + Send + 'static;
}