pub trait Layout {
    fn width_for_height(&self, height: usize) -> usize;
    fn height_for_width(&self, width: usize) -> usize;
    fn prefered_size(&self) -> Vec2;
}
Expand description

A layout trait

It uses height to width management like Gtk

Required Methods

Given a height, how much width would this like to have at minimum.

Given a width, how much height would this like to have at minimum.

What would this widget like to have in an ideal world.

This should be the minimum which isn’t too small

Implementations on Foreign Types

Implementors