Add docstring to ui.with_layout
This commit is contained in:
parent
f07bdf0433
commit
5667e7eb51
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue