Browse Source

Add Ui::available_height

Closes #553
pull/621/head
Emil Ernerfeldt 3 years ago
parent
commit
22a13c75bb
  1. 4
      egui/src/ui.rs

4
egui/src/ui.rs

@ -470,6 +470,10 @@ impl Ui {
self.available_size().x
}
pub fn available_height(&self) -> f32 {
self.available_size().y
}
/// In case of a wrapping layout, how much space is left on this row/column?
pub fn available_size_before_wrap(&self) -> Vec2 {
self.placer.available_rect_before_wrap().size()

Loading…
Cancel
Save