pub trait DocumentWorkspaceImpl: WorkspaceImpl {
    // Provided methods
    fn create_frame(&self, position: &Position) -> Frame { ... }
    fn add_widget(&self, widget: &Widget, position: &Position) -> bool { ... }
}

Provided Methods§

source

fn create_frame(&self, position: &Position) -> Frame

source

fn add_widget(&self, widget: &Widget, position: &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.

Object Safety§

This trait is not object safe.

Implementors§