Trait FrameExt

Source
pub trait FrameExt:
    IsA<Frame>
    + Sealed
    + 'static {
    // Provided methods
    fn child(&self) -> Option<Widget> { ... }
    fn label(&self) -> Option<GString> { ... }
    fn label_align(&self) -> f32 { ... }
    fn label_widget(&self) -> Option<Widget> { ... }
    fn set_child(&self, child: Option<&impl IsA<Widget>>) { ... }
    fn set_label(&self, label: Option<&str>) { ... }
    fn set_label_align(&self, xalign: f32) { ... }
    fn set_label_widget(&self, label_widget: Option<&impl IsA<Widget>>) { ... }
    fn connect_child_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_label_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_label_widget_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_label_xalign_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

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

Source

fn label(&self) -> Option<GString>

Source

fn label_align(&self) -> f32

Source

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

Source

fn set_child(&self, child: Option<&impl IsA<Widget>>)

Source

fn set_label(&self, label: Option<&str>)

Source

fn set_label_align(&self, xalign: f32)

Source

fn set_label_widget(&self, label_widget: Option<&impl IsA<Widget>>)

Source

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

Source

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

Source

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

Source

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

Source§

impl<O: IsA<Frame>> FrameExt for O