bevy_ui::measurement

Trait Measure

Source
pub trait Measure:
    Send
    + Sync
    + 'static {
    // Required method
    fn measure(&mut self, measure_args: MeasureArgs<'_>, style: &Style) -> Vec2;
}
Expand description

A Measure is used to compute the size of a ui node when the size of that node is based on its content.

Required Methods§

Source

fn measure(&mut self, measure_args: MeasureArgs<'_>, style: &Style) -> Vec2

Calculate the size of the node given the constraints.

Implementors§