Skip to main content

ViewportExt

Trait ViewportExt 

Source
pub trait ViewportExt: IsA<Viewport> + 'static {
    // Provided methods
    fn bin_window(&self) -> Option<Window> { ... }
    fn shadow_type(&self) -> ShadowType { ... }
    fn view_window(&self) -> Option<Window> { ... }
    fn set_shadow_type(&self, type_: ShadowType) { ... }
    fn connect_shadow_type_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Viewport methods.

§Implementors

Viewport

Provided Methods§

Source

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

Gets the bin window of the Viewport.

§Returns

a gdk::Window

Source

fn shadow_type(&self) -> ShadowType

Gets the shadow type of the Viewport. See set_shadow_type().

§Returns

the shadow type

Source

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

Gets the view window of the Viewport.

§Returns

a gdk::Window

Source

fn set_shadow_type(&self, type_: ShadowType)

Sets the shadow type of the viewport.

§type_

the new shadow type.

Source

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