Trait RelmSetChildExt

Source
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§

Source

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Set a child for the container or remove it using None.

Source

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

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for AspectFrame

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for Button

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for Expander

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for FlowBoxChild

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for Frame

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for LinkButton

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for ListBoxRow

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for Overlay

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for Popover

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for Revealer

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for ScrolledWindow

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for ToggleButton

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for Window

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for WindowHandle

Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for ApplicationWindow

Available on crate feature libadwaita only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for Bin

Available on crate feature libadwaita only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for BreakpointBin

Available on crate features libadwaita and gnome_45 only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for Clamp

Available on crate feature libadwaita only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for ClampScrollable

Available on crate feature libadwaita only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for NavigationPage

Available on crate features libadwaita and gnome_45 only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for NavigationSplitView

Available on crate features libadwaita and gnome_45 only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for OverlaySplitView

Available on crate features libadwaita and gnome_45 only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for SplitButton

Available on crate feature libadwaita only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for StatusPage

Available on crate feature libadwaita only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for ToastOverlay

Available on crate feature libadwaita only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for ToolbarView

Available on crate features libadwaita and gnome_45 only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Source§

impl RelmSetChildExt for Window

Available on crate feature libadwaita only.
Source§

fn container_set_child(&self, widget: Option<&impl AsRef<Self::Child>>)

Source§

fn container_get_child(&self) -> Option<Self::Child>

Implementors§