Trait relm4::RelmSetChildExt
source · pub trait RelmSetChildExt: ContainerChild {
// Required methods
fn container_set_child(&self, widget: Option<&impl AsRef<Widget>>);
fn container_get_child(&self) -> Option<Widget>;
}
Expand description
Widget types which allow to set or unset their child.
Required Methods§
sourcefn container_set_child(&self, widget: Option<&impl AsRef<Widget>>)
fn container_set_child(&self, widget: Option<&impl AsRef<Widget>>)
Set a child for the container or remove it using None
.
sourcefn container_get_child(&self) -> Option<Widget>
fn container_get_child(&self) -> Option<Widget>
Get the child of a container.
Returns None
if the container has no child.