pub struct DynLayoutBuilder { /* private fields */ }
Expand description
Builder for a DynLayout
struct
Implementations§
Source§impl DynLayoutBuilder
impl DynLayoutBuilder
Sourcepub fn parent<W: Into<ControlHandle>>(self, p: W) -> DynLayoutBuilder
pub fn parent<W: Into<ControlHandle>>(self, p: W) -> DynLayoutBuilder
Set the layout parent. The handle must be a window object otherwise the function will panic
Sourcepub fn child<W: Into<ControlHandle>>(
self,
m: (i32, i32),
s: (i32, i32),
c: W,
) -> DynLayoutBuilder
pub fn child<W: Into<ControlHandle>>( self, m: (i32, i32), s: (i32, i32), c: W, ) -> DynLayoutBuilder
Add a children to the layout at the position col
and row
.
This is a shortcut over child_item
for item with default span.
The handle must be a window object otherwise the function will panic
Sourcepub fn child_item(self, item: DynLayoutItem) -> DynLayoutBuilder
pub fn child_item(self, item: DynLayoutItem) -> DynLayoutBuilder
Add a children to the layout The handle must be a window object otherwise the function will panic
Auto Trait Implementations§
impl Freeze for DynLayoutBuilder
impl RefUnwindSafe for DynLayoutBuilder
impl !Send for DynLayoutBuilder
impl !Sync for DynLayoutBuilder
impl Unpin for DynLayoutBuilder
impl UnwindSafe for DynLayoutBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more