libadwaita::prelude

Trait BreakpointBinExt

Source
pub trait BreakpointBinExt:
    IsA<BreakpointBin>
    + Sealed
    + '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§