pub trait RelmSetChildExt: ContainerChild {
// Required methods
fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>);
fn container_get_child(&self) -> Option<Self::Child>;
}
Expand description
Widget types which allow to set or unset their child.
Required Methods§
Sourcefn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)
fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)
Set a child for the container or remove it using None
.
Sourcefn container_get_child(&self) -> Option<Self::Child>
fn container_get_child(&self) -> Option<Self::Child>
Get the child of a container.
Returns None
if the container has no child.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl RelmSetChildExt for ApplicationWindow
impl RelmSetChildExt for ApplicationWindow
Source§impl RelmSetChildExt for AspectFrame
impl RelmSetChildExt for AspectFrame
Source§impl RelmSetChildExt for Button
impl RelmSetChildExt for Button
Source§impl RelmSetChildExt for Expander
impl RelmSetChildExt for Expander
Source§impl RelmSetChildExt for FlowBoxChild
impl RelmSetChildExt for FlowBoxChild
Source§impl RelmSetChildExt for Frame
impl RelmSetChildExt for Frame
Source§impl RelmSetChildExt for LinkButton
impl RelmSetChildExt for LinkButton
Source§impl RelmSetChildExt for ListBoxRow
impl RelmSetChildExt for ListBoxRow
Source§impl RelmSetChildExt for Overlay
impl RelmSetChildExt for Overlay
Source§impl RelmSetChildExt for Popover
impl RelmSetChildExt for Popover
Source§impl RelmSetChildExt for Revealer
impl RelmSetChildExt for Revealer
Source§impl RelmSetChildExt for ScrolledWindow
impl RelmSetChildExt for ScrolledWindow
Source§impl RelmSetChildExt for ToggleButton
impl RelmSetChildExt for ToggleButton
Source§impl RelmSetChildExt for Window
impl RelmSetChildExt for Window
Source§impl RelmSetChildExt for WindowHandle
impl RelmSetChildExt for WindowHandle
Source§impl RelmSetChildExt for ApplicationWindow
Available on crate feature libadwaita
only.
impl RelmSetChildExt for ApplicationWindow
Available on crate feature
libadwaita
only.Source§impl RelmSetChildExt for Bin
Available on crate feature libadwaita
only.
impl RelmSetChildExt for Bin
Available on crate feature
libadwaita
only.Source§impl RelmSetChildExt for BreakpointBin
Available on crate features libadwaita
and gnome_45
only.
impl RelmSetChildExt for BreakpointBin
Available on crate features
libadwaita
and gnome_45
only.Source§impl RelmSetChildExt for Clamp
Available on crate feature libadwaita
only.
impl RelmSetChildExt for Clamp
Available on crate feature
libadwaita
only.Source§impl RelmSetChildExt for ClampScrollable
Available on crate feature libadwaita
only.
impl RelmSetChildExt for ClampScrollable
Available on crate feature
libadwaita
only.Source§impl RelmSetChildExt for OverlaySplitView
Available on crate features libadwaita
and gnome_45
only.
impl RelmSetChildExt for OverlaySplitView
Available on crate features
libadwaita
and gnome_45
only.Source§impl RelmSetChildExt for SplitButton
Available on crate feature libadwaita
only.
impl RelmSetChildExt for SplitButton
Available on crate feature
libadwaita
only.Source§impl RelmSetChildExt for StatusPage
Available on crate feature libadwaita
only.
impl RelmSetChildExt for StatusPage
Available on crate feature
libadwaita
only.Source§impl RelmSetChildExt for ToastOverlay
Available on crate feature libadwaita
only.
impl RelmSetChildExt for ToastOverlay
Available on crate feature
libadwaita
only.Source§impl RelmSetChildExt for ToolbarView
Available on crate features libadwaita
and gnome_45
only.
impl RelmSetChildExt for ToolbarView
Available on crate features
libadwaita
and gnome_45
only.Source§impl RelmSetChildExt for Window
Available on crate feature libadwaita
only.
impl RelmSetChildExt for Window
Available on crate feature
libadwaita
only.