libadwaita::prelude

Trait BreakpointBinExt

source
pub trait BreakpointBinExt: IsA<BreakpointBin> + 'static {
    // Provided methods
    fn add_breakpoint(&self, breakpoint: Breakpoint) { ... }
    fn child(&self) -> Option<Widget> { ... }
    fn current_breakpoint(&self) -> Option<Breakpoint> { ... }
    fn remove_breakpoint(&self, breakpoint: &Breakpoint) { ... }
    fn set_child(&self, child: Option<&impl IsA<Widget>>) { ... }
    fn connect_child_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_current_breakpoint_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Available on crate feature v1_4 only.
Expand description

Trait containing all BreakpointBin methods.

§Implementors

BreakpointBin

Provided Methods§

source

fn add_breakpoint(&self, breakpoint: Breakpoint)

Adds @breakpoint to @self.

§breakpoint

the breakpoint to add

source

fn child(&self) -> Option<Widget>

Gets the child widget of @self.

§Returns

the child widget of @self

source

fn current_breakpoint(&self) -> Option<Breakpoint>

Gets the current breakpoint.

§Returns

the current breakpoint

source

fn remove_breakpoint(&self, breakpoint: &Breakpoint)

Available on crate feature v1_5 only.

Removes @breakpoint from @self.

§breakpoint

a breakpoint to remove

source

fn set_child(&self, child: Option<&impl IsA<Widget>>)

Sets the child widget of @self.

§child

the child widget

source

fn connect_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_current_breakpoint_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

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.

Implementors§