1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Add docstring to ui.with_layout

This commit is contained in:
Emil Ernerfeldt
2021-04-15 22:23:15 +02:00
parent f07bdf0433
commit 5667e7eb51

View File

@@ -1397,6 +1397,10 @@ impl Ui {
)
}
/// The new layout will take up all available space.
///
/// Consider using [`Self::allocate_ui_with_layout`] instead,
/// or the helpers [`Self::horizontal]`, [`Self::vertical`], etc.
pub fn with_layout<R>(
&mut self,
layout: Layout,