Trait ButtonExt

Source
pub trait ButtonExt: IsA<Button> + 'static {
Show 22 methods // Provided methods fn can_shrink(&self) -> bool { ... } fn child(&self) -> Option<Widget> { ... } fn has_frame(&self) -> bool { ... } fn icon_name(&self) -> Option<GString> { ... } fn label(&self) -> Option<GString> { ... } fn uses_underline(&self) -> bool { ... } fn set_can_shrink(&self, can_shrink: bool) { ... } fn set_child(&self, child: Option<&impl IsA<Widget>>) { ... } fn set_has_frame(&self, has_frame: bool) { ... } fn set_icon_name(&self, icon_name: &str) { ... } fn set_label(&self, label: &str) { ... } fn set_use_underline(&self, use_underline: bool) { ... } fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn emit_activate(&self) { ... } fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn emit_clicked(&self) { ... } fn connect_can_shrink_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_child_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_has_frame_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_label_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn can_shrink(&self) -> bool

Available on crate feature v4_12 only.
Source

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

Source

fn has_frame(&self) -> bool

Source

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

Source

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

Source

fn uses_underline(&self) -> bool

Source

fn set_can_shrink(&self, can_shrink: bool)

Available on crate feature v4_12 only.
Source

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

Source

fn set_has_frame(&self, has_frame: bool)

Source

fn set_icon_name(&self, icon_name: &str)

Source

fn set_label(&self, label: &str)

Source

fn set_use_underline(&self, use_underline: bool)

Source

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

Source

fn emit_activate(&self)

Source

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

Source

fn emit_clicked(&self)

Source

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

Available on crate feature v4_12 only.
Source

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

Source

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

Source

fn connect_icon_name_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_use_underline_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<Button>> ButtonExt for O