Improve docstring of `Ui::new_child`
This commit is contained in:
parent
00cb50ebad
commit
5cc35d2212
|
|
@ -222,6 +222,14 @@ impl Ui {
|
|||
}
|
||||
|
||||
/// Create a child `Ui` with the properties of the given builder.
|
||||
///
|
||||
/// This is a very low-level function.
|
||||
/// Usually you are better off using [`Self::scope_builder`].
|
||||
///
|
||||
/// Note that calling this does not allocate any space in the parent `Ui`,
|
||||
/// so after adding widgets to the child `Ui` you probably want to allocate
|
||||
/// the [`Ui::min_rect`] of the child in the parent `Ui` using e.g.
|
||||
/// [`Ui::advance_cursor_after_rect`].
|
||||
pub fn new_child(&mut self, ui_builder: UiBuilder) -> Self {
|
||||
let UiBuilder {
|
||||
id_salt,
|
||||
|
|
|
|||
Loading…
Reference in New Issue