Struct native_windows_gui::DynLayoutBuilder
source · [−]pub struct DynLayoutBuilder { /* private fields */ }
Expand description
Builder for a DynLayout
struct
Implementations
sourceimpl 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 RefUnwindSafe for DynLayoutBuilder
impl !Send for DynLayoutBuilder
impl !Sync for DynLayoutBuilder
impl Unpin for DynLayoutBuilder
impl UnwindSafe for DynLayoutBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more