pub trait AdwWindowExt: IsA<Window> + Sealed + 'static {
    // Provided methods
    fn add_breakpoint(&self, breakpoint: Breakpoint) { ... }
    fn content(&self) -> Option<Widget> { ... }
    fn current_breakpoint(&self) -> Option<Breakpoint> { ... }
    fn dialogs(&self) -> ListModel { ... }
    fn visible_dialog(&self) -> Option<Dialog> { ... }
    fn set_content(&self, content: Option<&impl IsA<Widget>>) { ... }
    fn connect_content_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_current_breakpoint_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_dialogs_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_visible_dialog_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Window methods.

§Implementors

AboutWindow, PreferencesWindow, Window

Provided Methods§

source

fn add_breakpoint(&self, breakpoint: Breakpoint)

Available on crate feature v1_4 only.

Adds @breakpoint to @self.

§breakpoint

the breakpoint to add

source

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

Gets the content widget of @self.

This method should always be used instead of [GtkWindowExtManual::child()][crate::gtk::prelude::GtkWindowExtManual::child()].

§Returns

the content widget of @self

source

fn current_breakpoint(&self) -> Option<Breakpoint>

Available on crate feature v1_4 only.

Gets the current breakpoint.

§Returns

the current breakpoint

source

fn dialogs(&self) -> ListModel

Available on crate feature v1_5 only.

Returns a gio::ListModel that contains the open dialogs of @self.

This can be used to keep an up-to-date view.

§Returns

a list model for the dialogs of @self

source

fn visible_dialog(&self) -> Option<Dialog>

Available on crate feature v1_5 only.

Returns the currently visible dialog in @self, if there’s one.

§Returns

the visible dialog

source

fn set_content(&self, content: Option<&impl IsA<Widget>>)

Sets the content widget of @self.

This method should always be used instead of [GtkWindowExtManual::set_child()][crate::gtk::prelude::GtkWindowExtManual::set_child()].

§content

the content widget

source

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

source

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

Available on crate feature v1_4 only.
source

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

Available on crate feature v1_5 only.
source

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

Available on crate feature v1_5 only.

Object Safety§

This trait is not object safe.

Implementors§