Skip to main content

GtkMountOperationExt

Trait GtkMountOperationExt 

Source
pub trait GtkMountOperationExt: IsA<MountOperation> + 'static {
    // Provided methods
    fn parent(&self) -> Option<Window> { ... }
    fn screen(&self) -> Option<Screen> { ... }
    fn is_showing(&self) -> bool { ... }
    fn set_parent(&self, parent: Option<&impl IsA<Window>>) { ... }
    fn set_screen(&self, screen: &Screen) { ... }
    fn connect_is_showing_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_parent_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_screen_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all MountOperation methods.

§Implementors

MountOperation

Provided Methods§

Source

fn parent(&self) -> Option<Window>

Gets the transient parent used by the MountOperation

§Returns

the transient parent for windows shown by self

Source

fn screen(&self) -> Option<Screen>

Gets the screen on which windows of the MountOperation will be shown.

§Returns

the screen on which windows of self are shown

Source

fn is_showing(&self) -> bool

Returns whether the MountOperation is currently displaying a window.

§Returns

true if self is currently displaying a window

Source

fn set_parent(&self, parent: Option<&impl IsA<Window>>)

Sets the transient parent for windows shown by the MountOperation.

§parent

transient parent of the window, or None

Source

fn set_screen(&self, screen: &Screen)

Sets the screen to show windows of the MountOperation on.

§screen

a gdk::Screen

Source

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

Source

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

Source

fn connect_screen_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".

Implementors§