Trait libpanel::prelude::PanelGridExt
source · pub trait PanelGridExt: IsA<Grid> + Sealed + '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§
sourcefn agree_to_close_async<P: FnOnce(Result<(), Error>) + 'static>(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
fn agree_to_close_async<P: FnOnce(Result<(), Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
Request to close, asynchronously. This will display the save dialog.
§callback
callback called when ready
fn agree_to_close_future( &self, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
sourcefn foreach_frame<P: FnMut(&Frame)>(&self, callback: P)
fn foreach_frame<P: FnMut(&Frame)>(&self, callback: P)
sourcefn column(&self, column: u32) -> GridColumn
fn column(&self, column: u32) -> GridColumn
sourcefn most_recent_column(&self) -> GridColumn
fn most_recent_column(&self) -> GridColumn
sourcefn most_recent_frame(&self) -> Frame
fn most_recent_frame(&self) -> Frame
sourcefn insert_column(&self, position: u32)
fn insert_column(&self, position: u32)
sourcefn connect_create_frame<F: Fn(&Self) -> Frame + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_create_frame<F: Fn(&Self) -> Frame + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.