DocumentWorkspaceExt

Trait DocumentWorkspaceExt 

Source
pub trait DocumentWorkspaceExt: IsA<DocumentWorkspace> + 'static {
    // Provided methods
    fn add_widget(
        &self,
        widget: &impl IsA<Widget>,
        position: Option<&Position>,
    ) -> bool { ... }
    fn dock(&self) -> Dock { ... }
    fn grid(&self) -> Grid { ... }
    fn statusbar(&self) -> Option<Statusbar> { ... }
    fn titlebar(&self) -> Option<Widget> { ... }
    fn set_titlebar(&self, titlebar: &impl IsA<Widget>) { ... }
    fn connect_add_widget<F: Fn(&Self, &Widget, &Position) -> bool + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_create_frame<F: Fn(&Self, &Position) -> Frame + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_dock_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_grid_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_statusbar_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn add_widget( &self, widget: &impl IsA<Widget>, position: Option<&Position>, ) -> bool

Source

fn dock(&self) -> Dock

Source

fn grid(&self) -> Grid

Source

fn statusbar(&self) -> Option<Statusbar>

Source

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

Source

fn set_titlebar(&self, titlebar: &impl IsA<Widget>)

Source

fn connect_add_widget<F: Fn(&Self, &Widget, &Position) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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

Source

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

Source

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

Source

fn connect_statusbar_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§