Struct native_windows_gui::DynLayout [−][src]
pub struct DynLayout { /* fields omitted */ }
Implementations
Set the layout parent. The handle must be a window object otherwise the function will panic
Add a children control to the layout.
This is a simplified interface over add_child_item
Panic:
- If the layout is not initialized
- If the control is not window-like (HWND handle)
Add a children control to the layout.
Panic: - If the layout is not initialized - If the control is not window-like (HWND handle)
Remove the children control in the layout. See also remove_child_by_pos
.
Note that the child control won’t be hidden after being removed from the control.
This method won’t do anything if there is no control at the specified position.
Panic:
- If the layout is not initialized
Check if a window control is a children of the layout
Panic:
- If the layout is not initialized
- If the child is not a window-like control
Resize the layout as if the parent window had the specified size.
Arguments: w: New width of the layout h: New height of the layout
Panic:
- The layout must have been successfully built otherwise this function will panic.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DynLayout
impl !UnwindSafe for DynLayout
Blanket Implementations
Mutably borrows from an owned value. Read more