Trait libpanel::prelude::DocumentWorkspaceExt

source ·
pub trait DocumentWorkspaceExt: IsA<DocumentWorkspace> + Sealed + '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 { ... }
}
Expand description

Trait containing all DocumentWorkspace methods.

§Implementors

DocumentWorkspace

Provided Methods§

source

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

Requests the workspace add widget to the dock at position.

§widget

a Widget

§position

a Position or None

§Returns

true if widget was added; otherwise false and widget will have [ObjectExt::ref_sink()][crate::glib::prelude::ObjectExt::ref_sink()] called and unref’d from an idle callback.

source

fn dock(&self) -> Dock

Get the Dock for the workspace.

§Returns

a Dock

source

fn grid(&self) -> Grid

Get the document grid for the workspace.

§Returns

a Grid

source

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

Gets the statusbar for the workspace.

§Returns

a Statusbar

source

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

Gets the titlebar for the workspace.

§Returns

a gtk::Widget or None

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

This signal is used to add a Widget to the document workspace, generally in the document grid.

§widget

a Widget

§position

a Position

§Returns

true if the widget was added and no more signal handlers will be notified.

source

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

Creates a new Frame to be added to the document grid.

§position

the position of the frame

§Returns

a Frame

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

Object Safety§

This trait is not object safe.

Implementors§