PanelGridExt

Trait PanelGridExt 

Source
pub trait PanelGridExt: IsA<Grid> + 'static {
    // Provided methods
    fn add(&self, widget: &impl IsA<Widget>) { ... }
    fn agree_to_close_async<P: FnOnce(Result<(), Error>) + 'static>(
        &self,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P,
    ) { ... }
    fn agree_to_close_future(
        &self,
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... }
    fn foreach_frame<P: FnMut(&Frame)>(&self, callback: P) { ... }
    fn column(&self, column: u32) -> GridColumn { ... }
    fn most_recent_column(&self) -> GridColumn { ... }
    fn most_recent_frame(&self) -> Frame { ... }
    fn n_columns(&self) -> u32 { ... }
    fn insert_column(&self, position: u32) { ... }
    fn connect_create_frame<F: Fn(&Self) -> Frame + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn add(&self, widget: &impl IsA<Widget>)

Source

fn agree_to_close_async<P: FnOnce(Result<(), Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

Source

fn agree_to_close_future( &self, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

Source

fn foreach_frame<P: FnMut(&Frame)>(&self, callback: P)

Source

fn column(&self, column: u32) -> GridColumn

Source

fn most_recent_column(&self) -> GridColumn

Source

fn most_recent_frame(&self) -> Frame

Source

fn n_columns(&self) -> u32

Source

fn insert_column(&self, position: u32)

Source

fn connect_create_frame<F: Fn(&Self) -> Frame + '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§

Source§

impl<O: IsA<Grid>> PanelGridExt for O