gtk4::prelude

Trait OrientableExt

Source
pub trait OrientableExt: IsA<Orientable> + 'static {
    // Provided methods
    fn orientation(&self) -> Orientation { ... }
    fn set_orientation(&self, orientation: Orientation) { ... }
    fn connect_orientation_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Provided Methods§

Source

fn orientation(&self) -> Orientation

Retrieves the orientation of the @self.

§Returns

the orientation of the @self

Source

fn set_orientation(&self, orientation: Orientation)

Sets the orientation of the @self.

§orientation

the orientable’s new orientation

Source

fn connect_orientation_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", so this trait is not object safe.

Implementors§